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: translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00173/0.001731, allocations: 100.1 kB / 15.88 MB, free: 8 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.215/2.215, allocations: 222.9 MB / 239.5 MB, free: 4.746 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.002094/0.002094, allocations: 184.1 kB / 289.8 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03668/0.03668, allocations: 8.803 MB / 348.7 MB, free: 4.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002411/0.002411, allocations: 76.64 kB / 411.1 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1314, allocations: 51.57 MB / 462.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.006354/0.1378, allocations: 2.896 MB / 465.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.1395, allocations: 0.6428 MB / 466.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002175/0.1397, allocations: 4 kB / 466.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.14, allocations: 39.7 kB / 466.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003741/0.1404, allocations: 87.3 kB / 466.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000252/0.1407, allocations: 75.89 kB / 466.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.1412, allocations: 354.4 kB / 466.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.1416, allocations: 116.1 kB / 466.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.1418, allocations: 131.4 kB / 466.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.1421, allocations: 135.4 kB / 467.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.681e-05/0.1422, allocations: 24 kB / 467.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.915e-05/0.1423, allocations: 23.94 kB / 467.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.144e-05/0.1424, allocations: 55.77 kB / 467.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.1426, allocations: 163.2 kB / 467.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004463/0.1431, allocations: 319.5 kB / 467.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.1431, allocations: 4 kB / 467.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1431, allocations: 4 kB / 467.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1431, allocations: 0 / 467.7 MB, free: 9.789 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001365/0.1445, allocations: 0.5771 MB / 468.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.813e-05/0.1446, allocations: 8.031 kB / 468.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.1447, allocations: 36.56 kB / 468.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000467/0.1452, allocations: 275.6 kB / 468.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.1452, allocations: 25.03 kB / 468.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.216e-05/0.1453, allocations: 40.36 kB / 468.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008796/0.1462, allocations: 270.2 kB / 468.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.1463, allocations: 3.984 kB / 468.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.132e-05/0.1463, allocations: 16 kB / 468.9 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.1463, allocations: 4 kB / 468.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007976/0.1471, allocations: 206.5 kB / 469.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.1497, allocations: 1.044 MB / 470.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006128/0.1504, allocations: 154.5 kB / 470.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.1507, allocations: 76.81 kB / 470.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.126e-05/0.1507, allocations: 7.938 kB / 470.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.1508, allocations: 34.56 kB / 470.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.505e-06/0.1508, allocations: 0 / 470.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002245/0.153, allocations: 0.6752 MB / 471.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.1531, allocations: 51.41 kB / 471.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.1534, allocations: 207.1 kB / 471.3 MB, free: 5.824 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.1535, allocations: 29.7 kB / 471.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.1537, allocations: 188.1 kB / 471.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.96e-05/0.1538, allocations: 67.03 kB / 471.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.1539, allocations: 33.72 kB / 471.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1541, allocations: 334.8 kB / 472 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.1543, allocations: 63.91 kB / 472 MB, free: 5.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/0.1547, allocations: 106.5 kB / 472.1 MB, free: 4.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000541/0.1552, allocations: 161.9 kB / 472.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1552, allocations: 4 kB / 472.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007956/0.156, allocations: 230.1 kB / 472.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1561, allocations: 4 kB / 472.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1561, allocations: 0 / 472.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002174/0.1563, allocations: 24.84 kB / 472.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.1567, allocations: 48.03 kB / 472.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.1581, allocations: 1.276 MB / 473.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.1583, allocations: 12.16 kB / 473.9 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.1584, allocations: 8 kB / 473.9 MB, free: 3.062 MB / 302.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.0002319/0.1586, allocations: 149.7 kB / 474.1 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.609e-05/0.1587, allocations: 19.72 kB / 474.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.27e-05/0.1587, allocations: 17.88 kB / 474.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1588, allocations: 3.938 kB / 474.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1588, allocations: 4 kB / 474.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.1588, allocations: 15.92 kB / 474.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001229/0.16, allocations: 0.6023 MB / 474.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.1601, allocations: 4 kB / 474.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.1603, allocations: 31.98 kB / 474.7 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001172/0.1605, allocations: 28.84 kB / 474.8 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.1605, allocations: 8 kB / 474.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.1617, allocations: 1.272 MB / 476.1 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1617, allocations: 3.938 kB / 476.1 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008276/0.1626, allocations: 373.8 kB / 476.4 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.909e-05/0.1627, allocations: 88.92 kB / 476.5 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.1627, allocations: 8 kB / 476.5 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002266/0.1629, allocations: 11.97 kB / 476.5 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.982e-05/0.163, allocations: 19.92 kB / 476.6 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.1631, allocations: 4 kB / 476.6 MB, free: 160 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.1632, allocations: 144.5 kB / 476.7 MB, free: 16 kB / 302.1 MB Notification: Performance of sort global known variables: time 3.266e-06/0.1633, allocations: 0 / 476.7 MB, free: 16 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005755/0.1638, allocations: 63.98 kB / 476.8 MB, free: 15.95 MB / 318.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.0001576/0.164, allocations: 99.77 kB / 476.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008041/0.1648, allocations: 268.5 kB / 477.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1648, allocations: 256 / 477.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.1653, allocations: 194.6 kB / 477.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007359/0.166, allocations: 38.59 kB / 477.3 MB, free: 15.33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.1679, allocations: 0.8294 MB / 478.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.1683, allocations: 0.7596 MB / 478.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.074e-05/0.1684, allocations: 19.44 kB / 479 MB, free: 13.66 MB / 318.1 MB Notification: Performance of SimCode: time 4.068e-06/0.1684, allocations: 0 / 479 MB, free: 13.66 MB / 318.1 MB Notification: Performance of Templates: time 0.00858/0.177, allocations: 4.09 MB / 483 MB, free: 9.57 MB / 318.1 MB make -j1 -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.makefile (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 & ./HanserModelica_HanserModelica.Rotational.TestDCPMMachine -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)