Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009066/0.000907, allocations: 95.88 kB / 16.95 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009535/0.0009536, allocations: 180.5 kB / 17.84 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.4 MB / 224 MB, free: 13.03 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006719/0.0006722, allocations: 12 kB / 280.9 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1253, allocations: 47.58 MB / 328.5 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01249/0.1379, allocations: 7.088 MB / 335.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007315/0.1454, allocations: 2.496 MB / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.1479, allocations: 23.94 kB / 338.1 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002899/0.1508, allocations: 473.3 kB / 338.5 MB, free: 9.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002913/0.1538, allocations: 381.1 kB / 338.9 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.1551, allocations: 155.8 kB / 339.1 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003117/0.1582, allocations: 1.33 MB / 340.4 MB, free: 7.977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.1595, allocations: 423.2 kB / 340.8 MB, free: 7.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.1608, allocations: 446 kB / 341.2 MB, free: 7.109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.1619, allocations: 0.4938 MB / 341.7 MB, free: 6.613 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002905/0.1622, allocations: 72 kB / 341.8 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007271/0.163, allocations: 103.9 kB / 341.9 MB, free: 6.441 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002974/0.1633, allocations: 183.1 kB / 342.1 MB, free: 6.262 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006284/0.1639, allocations: 261.1 kB / 342.3 MB, free: 6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.1657, allocations: 1.355 MB / 343.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.1657, allocations: 4 kB / 343.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1658, allocations: 0 / 343.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.1658, allocations: 0 / 343.7 MB, free: 4.637 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002234/0.168, allocations: 1.266 MB / 345 MB, free: 3.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.326e-05/0.1681, allocations: 12.03 kB / 345 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002291/0.1683, allocations: 152.1 kB / 345.1 MB, free: 3.148 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007/0.1691, allocations: 190.3 kB / 345.3 MB, free: 2.961 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.1703, allocations: 0.703 MB / 346 MB, free: 2.215 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.052e-05/0.1704, allocations: 74 kB / 346.1 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.1705, allocations: 95.91 kB / 346.2 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.1721, allocations: 0.9385 MB / 347.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/0.1722, allocations: 0 / 347.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.532e-05/0.1722, allocations: 44 kB / 347.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.1723, allocations: 27.98 kB / 347.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.1735, allocations: 0.6364 MB / 347.8 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005272/0.1788, allocations: 3.95 MB / 351.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00072/0.1796, allocations: 433.5 kB / 352.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005336/0.1801, allocations: 257.4 kB / 352.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.1802, allocations: 4.328 kB / 352.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.1802, allocations: 42.88 kB / 352.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.084e-06/0.1802, allocations: 4 kB / 352.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002865/0.1831, allocations: 1.419 MB / 353.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.1832, allocations: 85.06 kB / 354 MB, free: 9.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.1843, allocations: 0.8175 MB / 354.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.1843, allocations: 33.7 kB / 354.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004361/0.1848, allocations: 0.5564 MB / 355.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.1849, allocations: 161.7 kB / 355.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.185, allocations: 16 kB / 355.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.1852, allocations: 330 kB / 355.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/0.1855, allocations: 169.9 kB / 356.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005182/0.186, allocations: 463.9 kB / 356.5 MB, free: 7.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004167/0.1865, allocations: 241.7 kB / 356.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1865, allocations: 8 kB / 356.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001291/0.1878, allocations: 0.767 MB / 357.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.1878, allocations: 8 kB / 357.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.1878, allocations: 12 kB / 357.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002739/0.1881, allocations: 81.92 kB / 357.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/0.1886, allocations: 159.8 kB / 357.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.1911, allocations: 2.876 MB / 360.7 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006007/0.1917, allocations: 35.98 kB / 360.7 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.1918, allocations: 36 kB / 360.7 MB, free: 2.648 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005025/0.1923, allocations: 261.5 kB / 361 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.1924, allocations: 86.97 kB / 361.1 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009579/0.1934, allocations: 499.7 kB / 361.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1934, allocations: 7.938 kB / 361.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.1934, allocations: 0 / 361.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1934, allocations: 7.938 kB / 361.6 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/0.1957, allocations: 1.45 MB / 363 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.1957, allocations: 4.125 kB / 363 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.196, allocations: 72.12 kB / 363.1 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002198/0.1962, allocations: 81.56 kB / 363.2 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.1963, allocations: 8 kB / 363.2 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002533/0.1988, allocations: 2.848 MB / 366 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.1988, allocations: 4.031 kB / 366 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.2002, allocations: 0.7767 MB / 366.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003348/0.2005, allocations: 208.2 kB / 367 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.767e-05/0.2006, allocations: 16 kB / 367 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003723/0.201, allocations: 27.97 kB / 367.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.412e-05/0.2011, allocations: 31.95 kB / 367.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.387e-05/0.2011, allocations: 16 kB / 367.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008387/0.202, allocations: 0.5615 MB / 367.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.202, allocations: 0 / 367.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000978/0.203, allocations: 204 kB / 367.9 MB, free: 11.07 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001641/0.2046, allocations: 1.353 MB / 369.2 MB, free: 9.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.2059, allocations: 0.6903 MB / 369.9 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.2059, allocations: 0 / 369.9 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006716/0.2066, allocations: 437.8 kB / 370.3 MB, free: 8.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.2079, allocations: 215.2 kB / 370.5 MB, free: 8.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/0.2195, allocations: 5.223 MB / 375.8 MB, free: 2.758 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009109/0.2205, allocations: 1.013 MB / 376.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006008/0.2211, allocations: 103.3 kB / 376.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005801/0.2217, allocations: 375.3 kB / 377.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of SimCode: time 1.513e-06/0.2218, allocations: 0 / 377.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2594/0.4812, allocations: 17.53 MB / 394.8 MB, free: 45.68 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/0.4814, allocations: 226.6 kB / 395 MB, free: 45.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.424/2.905, allocations: 0 / 395 MB, free: 45.43 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat