Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.005872/0.005872, allocations: 102.8 kB / 15.74 MB, free: 6.5 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.512/1.512, allocations: 222.9 MB / 239.4 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 191.9 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03701/0.03701, allocations: 8.787 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003592/0.003592, allocations: 80.14 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1505, allocations: 51.55 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.007591/0.1581, allocations: 2.871 MB / 0.5057 GB, free: 7.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.1604, allocations: 0.6583 MB / 0.5063 GB, free: 6.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004687/0.1609, allocations: 7.938 kB / 0.5063 GB, free: 6.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.1613, allocations: 47.52 kB / 0.5064 GB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007038/0.1621, allocations: 95.17 kB / 0.5065 GB, free: 6.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003779/0.1625, allocations: 83.89 kB / 0.5066 GB, free: 6.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008274/0.1633, allocations: 378.4 kB / 0.5069 GB, free: 5.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004162/0.1638, allocations: 136.5 kB / 0.5071 GB, free: 5.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003308/0.1641, allocations: 135.5 kB / 0.5072 GB, free: 5.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003589/0.1645, allocations: 151.4 kB / 0.5073 GB, free: 5.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.1646, allocations: 47.94 kB / 0.5074 GB, free: 5.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.1648, allocations: 36 kB / 0.5074 GB, free: 5.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.1649, allocations: 71.77 kB / 0.5075 GB, free: 5.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003773/0.1653, allocations: 171.2 kB / 0.5076 GB, free: 5.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008038/0.1661, allocations: 414.4 kB / 0.508 GB, free: 4.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1661, allocations: 0 / 0.508 GB, free: 4.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1661, allocations: 0 / 0.508 GB, free: 4.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.1662, allocations: 0 / 0.508 GB, free: 4.711 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00162/0.1678, allocations: 0.6039 MB / 0.5086 GB, free: 4.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.146e-05/0.1679, allocations: 16.02 kB / 0.5086 GB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.168, allocations: 62.73 kB / 0.5087 GB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.1682, allocations: 32.75 kB / 0.5087 GB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006534/0.1688, allocations: 275.8 kB / 0.509 GB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.437e-05/0.1689, allocations: 25.03 kB / 0.509 GB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002518/0.1691, allocations: 28.38 kB / 0.509 GB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000922/0.1701, allocations: 282 kB / 0.5093 GB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.1701, allocations: 0 / 0.5093 GB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.1702, allocations: 12 kB / 0.5093 GB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1702, allocations: 4 kB / 0.5093 GB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008935/0.1711, allocations: 214.5 kB / 0.5095 GB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002768/0.1739, allocations: 1.033 MB / 0.5105 GB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006/0.1745, allocations: 146.5 kB / 0.5107 GB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.1748, allocations: 88.75 kB / 0.5108 GB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.1749, allocations: 0 / 0.5108 GB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.1749, allocations: 30.56 kB / 0.5108 GB, free: 1.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.933e-06/0.175, allocations: 4 kB / 0.5108 GB, free: 1.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002448/0.1774, allocations: 0.6871 MB / 0.5115 GB, free: 0.9219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.1775, allocations: 63.33 kB / 0.5115 GB, free: 0.8477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.1779, allocations: 195.2 kB / 0.5117 GB, free: 0.6484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.178, allocations: 33.64 kB / 0.5117 GB, free: 0.6094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.1782, allocations: 188.4 kB / 0.5119 GB, free: 432 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.869e-05/0.1783, allocations: 67.39 kB / 0.512 GB, free: 364 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.1784, allocations: 37.72 kB / 0.512 GB, free: 320 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002541/0.1787, allocations: 334.8 kB / 0.5123 GB, free: 15.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002965/0.179, allocations: 59.97 kB / 0.5124 GB, free: 15.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.1794, allocations: 104.2 kB / 0.5125 GB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006371/0.1801, allocations: 165.8 kB / 0.5127 GB, free: 15.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1801, allocations: 0 / 0.5127 GB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009022/0.181, allocations: 232.1 kB / 0.5129 GB, free: 15.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.181, allocations: 8 kB / 0.5129 GB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1811, allocations: 0 / 0.5129 GB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002126/0.1813, allocations: 24.84 kB / 0.5129 GB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.1816, allocations: 43.91 kB / 0.513 GB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001931/0.1836, allocations: 1.375 MB / 0.5143 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.1838, allocations: 12.14 kB / 0.5143 GB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.1839, allocations: 8 kB / 0.5143 GB, free: 13.78 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000301/0.1842, allocations: 149.7 kB / 0.5145 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.555e-05/0.1843, allocations: 19.84 kB / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.527e-05/0.1844, allocations: 21.86 kB / 0.5145 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1844, allocations: 0 / 0.5145 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.1844, allocations: 0 / 0.5145 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1844, allocations: 3.938 kB / 0.5145 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.186, allocations: 0.6178 MB / 0.5151 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.186, allocations: 0 / 0.5151 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003327/0.1864, allocations: 35.97 kB / 0.5151 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001236/0.1865, allocations: 24.8 kB / 0.5152 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.528e-05/0.1866, allocations: 12.05 kB / 0.5152 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/0.1882, allocations: 1.367 MB / 0.5165 GB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.1883, allocations: 0 / 0.5165 GB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.1894, allocations: 373.8 kB / 0.5169 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.1895, allocations: 97.05 kB / 0.517 GB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.1896, allocations: 4 kB / 0.517 GB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.1899, allocations: 11.98 kB / 0.517 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.057e-05/0.1899, allocations: 15.92 kB / 0.517 GB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.19, allocations: 4 kB / 0.517 GB, free: 10.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002511/0.1902, allocations: 152.2 kB / 0.5171 GB, free: 10.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.845e-06/0.1903, allocations: 0 / 0.5171 GB, free: 10.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006182/0.1909, allocations: 59.94 kB / 0.5172 GB, free: 10.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001541/0.1924, allocations: 0.9039 MB / 0.5181 GB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000991/0.1935, allocations: 270.5 kB / 0.5183 GB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1935, allocations: 3.938 kB / 0.5183 GB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005397/0.194, allocations: 199 kB / 0.5185 GB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006614/0.1947, allocations: 37.03 kB / 0.5186 GB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005932/0.2007, allocations: 2.563 MB / 0.5211 GB, free: 6.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.2013, allocations: 0.7593 MB / 0.5218 GB, free: 5.637 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.2015, allocations: 17.55 kB / 0.5218 GB, free: 5.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.2017, allocations: 79.41 kB / 0.5219 GB, free: 5.543 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2018, allocations: 0 / 0.5219 GB, free: 5.543 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04573/0.2475, allocations: 4.69 MB / 0.5265 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.32, allocations: 0.9375 kB / 0.5265 GB, free: 0.9648 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.TestDCPMMachine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)