Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.0009633/0.0009637, allocations: 94.33 kB / 16.3 MB, free: 5.992 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.001028/0.001028, allocations: 184.3 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002815, allocations: 6 kB / 300.8 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01041/0.1223, allocations: 9.328 MB / 360.6 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00639/0.1287, allocations: 3.151 MB / 363.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.1299, allocations: 39.88 kB / 363.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.1314, allocations: 0.5091 MB / 364.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001788/0.1332, allocations: 0.705 MB / 365 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006667/0.1339, allocations: 259.6 kB / 365.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002538/0.1364, allocations: 1.547 MB / 366.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009457/0.1374, allocations: 0.6713 MB / 367.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008948/0.1383, allocations: 0.6381 MB / 368.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007931/0.1391, allocations: 0.7077 MB / 368.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.1392, allocations: 96 kB / 368.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.1396, allocations: 143.9 kB / 369 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.1398, allocations: 274.9 kB / 369.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003308/0.1401, allocations: 384.8 kB / 369.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001765/0.1419, allocations: 2.049 MB / 371.7 MB, free: 7.078 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1419, allocations: 4 kB / 371.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1419, allocations: 0 / 371.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.833e-05/0.142, allocations: 0 / 371.7 MB, free: 7.074 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00274/0.1447, allocations: 1.752 MB / 373.5 MB, free: 5.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1447, allocations: 12.03 kB / 373.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002223/0.145, allocations: 219.9 kB / 373.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005797/0.1456, allocations: 245.5 kB / 373.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.147, allocations: 1.004 MB / 374.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-05/0.147, allocations: 119.1 kB / 375.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/0.1472, allocations: 163.9 kB / 375.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.1495, allocations: 1.464 MB / 376.7 MB, free: 1.914 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.607e-05/0.1496, allocations: 15.86 kB / 376.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.1497, allocations: 60 kB / 376.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-05/0.1498, allocations: 40 kB / 376.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.1516, allocations: 0.9746 MB / 377.8 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007846/0.1595, allocations: 6.524 MB / 384.3 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008237/0.1603, allocations: 400.1 kB / 384.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.15e-05/0.1604, allocations: 8.438 kB / 384.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005905/0.161, allocations: 272.8 kB / 385 MB, free: 9.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.234e-06/0.161, allocations: 0 / 385 MB, free: 9.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00319/0.1642, allocations: 1.778 MB / 386.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1643, allocations: 166.8 kB / 386.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/0.1658, allocations: 1.191 MB / 388.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.1658, allocations: 41.7 kB / 388.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006558/0.1665, allocations: 0.8635 MB / 389 MB, free: 5.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.1667, allocations: 205.2 kB / 389.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.644e-05/0.1667, allocations: 24 kB / 389.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1669, allocations: 349.9 kB / 389.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004261/0.1673, allocations: 230.5 kB / 389.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009264/0.1682, allocations: 0.7956 MB / 390.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006568/0.1689, allocations: 403.5 kB / 391 MB, free: 2.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/0.1689, allocations: 4 kB / 391 MB, free: 2.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001806/0.1707, allocations: 1.177 MB / 392.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.292e-05/0.1708, allocations: 49.59 kB / 392.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.1708, allocations: 20.06 kB / 392.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002151/0.171, allocations: 69.83 kB / 392.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007712/0.1718, allocations: 271.5 kB / 392.6 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/0.1739, allocations: 2.591 MB / 395.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009203/0.1748, allocations: 76.09 kB / 395.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.746e-05/0.1749, allocations: 60 kB / 395.3 MB, free: 14.17 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006491/0.1756, allocations: 365.8 kB / 395.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.1757, allocations: 134.4 kB / 395.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.1767, allocations: 0.5528 MB / 396.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/0.1768, allocations: 8 kB / 396.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1768, allocations: 0 / 396.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.1768, allocations: 3.984 kB / 396.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.1794, allocations: 1.83 MB / 398.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1794, allocations: 4 kB / 398.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000435/0.1799, allocations: 107.8 kB / 398.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001419/0.18, allocations: 41.7 kB / 398.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.18, allocations: 16 kB / 398.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.1818, allocations: 2.564 MB / 400.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.1818, allocations: 7.953 kB / 400.9 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.1834, allocations: 1.121 MB / 402 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003859/0.1838, allocations: 243.4 kB / 402.3 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/0.1839, allocations: 19.98 kB / 402.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004717/0.1844, allocations: 35.98 kB / 402.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.931e-05/0.1845, allocations: 51.83 kB / 402.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.1845, allocations: 23.98 kB / 402.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.1856, allocations: 0.7719 MB / 403.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1856, allocations: 4 kB / 403.2 MB, free: 5.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001173/0.1868, allocations: 304 kB / 403.5 MB, free: 5.379 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002263/0.1891, allocations: 2.622 MB / 406.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.1907, allocations: 0.933 MB / 407 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1907, allocations: 0 / 407 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006292/0.1913, allocations: 474.5 kB / 407.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.1926, allocations: 309.3 kB / 407.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2126/0.4053, allocations: 20.62 MB / 428.4 MB, free: 62.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009289/0.4063, allocations: 1.211 MB / 429.6 MB, free: 62.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008263/0.4071, allocations: 176.4 kB / 429.8 MB, free: 62.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006543/0.4078, allocations: 0.5659 MB / 430.3 MB, free: 62.05 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4078, allocations: 0 / 430.3 MB, free: 62.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04917/0.457, allocations: 24.86 MB / 455.2 MB, free: 46.67 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/0.4572, allocations: 228.7 kB / 455.4 MB, free: 46.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.538/2.996, allocations: 0 / 455.4 MB, free: 46.43 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat