Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002377/0.00238, allocations: 183 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.271/2.271, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001131, allocations: 97.53 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004034/0.000404, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3547, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01275/0.3675, allocations: 6.358 MB / 381 MB, free: 40.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007466/0.375, allocations: 2.508 MB / 383.5 MB, free: 38.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.3768, allocations: 26.41 kB / 383.5 MB, free: 38.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003009/0.3798, allocations: 463 kB / 384 MB, free: 38.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.3831, allocations: 467.9 kB / 384.4 MB, free: 37.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.3845, allocations: 157.6 kB / 384.6 MB, free: 37.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004042/0.3885, allocations: 1.002 MB / 385.6 MB, free: 36.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.3901, allocations: 421.9 kB / 386 MB, free: 36.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.3917, allocations: 427.1 kB / 386.4 MB, free: 36.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001485/0.3932, allocations: 460.6 kB / 386.9 MB, free: 36.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005542/0.3938, allocations: 59.34 kB / 386.9 MB, free: 36.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.395, allocations: 104.7 kB / 387 MB, free: 36.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003222/0.3954, allocations: 178.7 kB / 387.2 MB, free: 36.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007714/0.3962, allocations: 254.1 kB / 387.5 MB, free: 35.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002849/0.3991, allocations: 1.281 MB / 388.7 MB, free: 34.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3991, allocations: 4 kB / 388.7 MB, free: 34.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3991, allocations: 0 / 388.7 MB, free: 34.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.474e-05/0.3992, allocations: 0 / 388.7 MB, free: 34.68 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.004055/0.4033, allocations: 1.231 MB / 390 MB, free: 33.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.756e-05/0.4034, allocations: 16.03 kB / 390 MB, free: 33.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005689/0.404, allocations: 148.1 kB / 390.1 MB, free: 33.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009749/0.405, allocations: 158.4 kB / 390.3 MB, free: 33.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002551/0.4075, allocations: 0.6873 MB / 391 MB, free: 32.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.4077, allocations: 78 kB / 391 MB, free: 32.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003088/0.408, allocations: 92 kB / 391.1 MB, free: 32.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003701/0.4118, allocations: 0.919 MB / 392.1 MB, free: 31.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.475e-05/0.4119, allocations: 4 kB / 392.1 MB, free: 31.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.4121, allocations: 40 kB / 392.1 MB, free: 31.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.303e-05/0.4121, allocations: 28 kB / 392.1 MB, free: 31.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003045/0.4152, allocations: 0.6246 MB / 392.7 MB, free: 30.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00981/0.4251, allocations: 3.89 MB / 396.6 MB, free: 26.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.4262, allocations: 354.1 kB / 397 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.198e-05/0.4263, allocations: 4.531 kB / 397 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.207e-05/0.4264, allocations: 42.5 kB / 397 MB, free: 25.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 3.536e-06/0.4264, allocations: 0 / 397 MB, free: 25.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.00451/0.4309, allocations: 1.223 MB / 398.3 MB, free: 24.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.431, allocations: 81.11 kB / 398.3 MB, free: 24.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.4331, allocations: 0.7627 MB / 399.1 MB, free: 23.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.636e-05/0.4333, allocations: 33.7 kB / 399.1 MB, free: 23.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005965/0.4339, allocations: 0.5742 MB / 399.7 MB, free: 23.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.4341, allocations: 138.1 kB / 399.8 MB, free: 23.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.742e-05/0.4342, allocations: 12 kB / 399.9 MB, free: 23.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.4343, allocations: 342.8 kB / 400.2 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000698/0.435, allocations: 145.9 kB / 400.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008376/0.4359, allocations: 464 kB / 400.8 MB, free: 21.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008257/0.4367, allocations: 228 kB / 401 MB, free: 21.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.4367, allocations: 4 kB / 401 MB, free: 21.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002306/0.4391, allocations: 0.6501 MB / 401.7 MB, free: 21.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.4391, allocations: 8.938 kB / 401.7 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/0.4392, allocations: 12 kB / 401.7 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000259/0.4395, allocations: 36.84 kB / 401.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.4407, allocations: 168 kB / 401.9 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.4422, allocations: 1.284 MB / 403.2 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.4438, allocations: 47.95 kB / 403.2 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.4439, allocations: 35.94 kB / 403.2 MB, free: 19.36 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008235/0.4448, allocations: 253.5 kB / 403.5 MB, free: 19.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002924/0.4451, allocations: 82.97 kB / 403.6 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/0.4467, allocations: 394.2 kB / 404 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.4468, allocations: 4 kB / 404 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.4468, allocations: 0 / 404 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.4468, allocations: 7.984 kB / 404 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.4506, allocations: 1.242 MB / 405.2 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.4507, allocations: 4 kB / 405.2 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007578/0.4514, allocations: 80.11 kB / 405.3 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001936/0.4517, allocations: 20.86 kB / 405.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.988e-05/0.4517, allocations: 12 kB / 405.3 MB, free: 17.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/0.4531, allocations: 1.28 MB / 406.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.4532, allocations: 0 / 406.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/0.4556, allocations: 0.7332 MB / 407.3 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005821/0.4562, allocations: 184.1 kB / 407.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.4565, allocations: 8 kB / 407.5 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000913/0.4574, allocations: 27.98 kB / 407.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.4576, allocations: 35.86 kB / 407.6 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.4576, allocations: 8 kB / 407.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001304/0.459, allocations: 0.5107 MB / 408.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.459, allocations: 0 / 408.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001636/0.4607, allocations: 184 kB / 408.3 MB, free: 13.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002551/0.4633, allocations: 1.774 MB / 410.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.4651, allocations: 0.5117 MB / 410.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/0.4652, allocations: 4 kB / 410.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008035/0.466, allocations: 271.3 kB / 410.8 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/0.4681, allocations: 200.1 kB / 411 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02011/0.4883, allocations: 11.77 MB / 422.8 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.4896, allocations: 1.02 MB / 423.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.4907, allocations: 363.3 kB / 424.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.292e-06/0.4908, allocations: 0 / 424.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.118/3.609, allocations: 19.38 MB / 443.6 MB, free: 10.2 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat