Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 105.8 kB / 17.32 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001279, allocations: 205.8 kB / 18.26 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2786/0.2786, allocations: 46.1 MB / 343.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 77.05 kB / 417 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1352, allocations: 62.44 MB / 479.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006931/0.1422, allocations: 4.551 MB / 484 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003382/0.1456, allocations: 1.624 MB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005104/0.1461, allocations: 19.88 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.1472, allocations: 262.7 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005003/0.1478, allocations: 123 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005945/0.1484, allocations: 243.8 kB / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.1494, allocations: 0.8419 MB / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005954/0.15, allocations: 394.2 kB / 487.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004776/0.1505, allocations: 298.8 kB / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003659/0.1509, allocations: 342.3 kB / 488.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.681e-05/0.151, allocations: 80 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.1511, allocations: 80 kB / 488.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.1513, allocations: 179.3 kB / 488.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003321/0.1517, allocations: 374 kB / 488.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.1527, allocations: 0.9032 MB / 489.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1527, allocations: 0 / 489.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1527, allocations: 0 / 489.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.1527, allocations: 0 / 489.7 MB, free: 11.27 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001828/0.1546, allocations: 1.017 MB / 490.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.1546, allocations: 8.031 kB / 490.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.1548, allocations: 83.91 kB / 490.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007129/0.1555, allocations: 497.5 kB / 491.3 MB, free: 9.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/0.1555, allocations: 49.62 kB / 491.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.1557, allocations: 64.38 kB / 491.5 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.1569, allocations: 0.5914 MB / 492 MB, free: 8.867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/0.157, allocations: 7.906 kB / 492 MB, free: 8.859 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.139e-05/0.157, allocations: 24 kB / 492.1 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.1571, allocations: 20 kB / 492.1 MB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008593/0.1579, allocations: 417 kB / 492.5 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003283/0.1612, allocations: 2.164 MB / 494.7 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.1625, allocations: 0.5546 MB / 495.2 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003732/0.1629, allocations: 172.8 kB / 495.4 MB, free: 5.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.367e-05/0.1629, allocations: 4 kB / 495.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/0.163, allocations: 38.56 kB / 495.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.404e-06/0.163, allocations: 0 / 495.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002388/0.1654, allocations: 1.142 MB / 496.6 MB, free: 4.113 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.1654, allocations: 59.34 kB / 496.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006084/0.166, allocations: 0.5106 MB / 497.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.225e-05/0.1661, allocations: 33.7 kB / 497.2 MB, free: 3.488 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.1663, allocations: 348 kB / 497.5 MB, free: 3.141 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.943e-05/0.1664, allocations: 118.3 kB / 497.6 MB, free: 3.023 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.1666, allocations: 78.12 kB / 497.7 MB, free: 2.941 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1667, allocations: 362.8 kB / 498.1 MB, free: 2.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000311/0.1671, allocations: 146.5 kB / 498.2 MB, free: 2.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004409/0.1675, allocations: 220.9 kB / 498.4 MB, free: 2.184 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006667/0.1682, allocations: 359.9 kB / 498.8 MB, free: 1.801 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.1682, allocations: 3.938 kB / 498.8 MB, free: 1.797 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008825/0.1691, allocations: 485.2 kB / 499.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.1691, allocations: 8.281 kB / 499.3 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.1691, allocations: 4 kB / 499.3 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.1693, allocations: 20.86 kB / 499.3 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.1697, allocations: 107.8 kB / 499.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/0.171, allocations: 1.38 MB / 0.489 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.1713, allocations: 28.11 kB / 0.4891 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.1714, allocations: 12 kB / 0.4891 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003836/0.1717, allocations: 257 kB / 0.4893 GB, free: 15.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002902/0.172, allocations: 202.9 kB / 0.4895 GB, free: 15.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004976/0.1726, allocations: 336 kB / 0.4898 GB, free: 14.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.983e-06/0.1726, allocations: 0 / 0.4898 GB, free: 14.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007798/0.1734, allocations: 449.9 kB / 0.4903 GB, free: 14.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.1734, allocations: 4 kB / 0.4903 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1734, allocations: 7.938 kB / 0.4903 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.302e-05/0.1735, allocations: 25.19 kB / 0.4903 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003499/0.1739, allocations: 99.83 kB / 0.4904 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.1749, allocations: 1.379 MB / 0.4917 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.1751, allocations: 23.92 kB / 0.4918 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.1752, allocations: 12 kB / 0.4918 GB, free: 12.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0002014/0.1754, allocations: 200.1 kB / 0.492 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.834e-05/0.1755, allocations: 55.41 kB / 0.492 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.1756, allocations: 61.28 kB / 0.4921 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1756, allocations: 7.938 kB / 0.4921 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.1756, allocations: 3.938 kB / 0.4921 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1756, allocations: 0 / 0.4921 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.1773, allocations: 1.061 MB / 0.4931 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.1773, allocations: 4 kB / 0.4931 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.1776, allocations: 71.89 kB / 0.4932 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.281e-05/0.1777, allocations: 28.91 kB / 0.4932 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.1778, allocations: 4 kB / 0.4932 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009255/0.1787, allocations: 1.382 MB / 0.4946 GB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1787, allocations: 4.031 kB / 0.4946 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.1798, allocations: 0.6187 MB / 0.4952 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.1799, allocations: 136.4 kB / 0.4953 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.237e-05/0.18, allocations: 8 kB / 0.4953 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.1802, allocations: 31.98 kB / 0.4953 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.991e-05/0.1803, allocations: 15.97 kB / 0.4954 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.1803, allocations: 15.98 kB / 0.4954 GB, free: 8.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004533/0.1808, allocations: 366.9 kB / 0.4957 GB, free: 8.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.1808, allocations: 0 / 0.4957 GB, free: 8.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006274/0.1814, allocations: 179.9 kB / 0.4959 GB, free: 8.137 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * 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 (32): * Single equations (assignments): 31 * 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.0001686/0.1816, allocations: 111.2 kB / 0.496 GB, free: 8.016 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.1831, allocations: 0.7552 MB / 0.4967 GB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1831, allocations: 3.938 kB / 0.4967 GB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004375/0.1835, allocations: 270.8 kB / 0.497 GB, free: 6.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007752/0.1843, allocations: 119.2 kB / 0.4971 GB, free: 6.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.1867, allocations: 1.539 MB / 0.4986 GB, free: 5.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/0.1874, allocations: 0.8902 MB / 0.4995 GB, free: 4.348 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002677/0.1877, allocations: 60.38 kB / 0.4995 GB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.1878, allocations: 35.44 kB / 0.4996 GB, free: 4.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1878, allocations: 0 / 0.4996 GB, free: 4.25 MB / 382.1 MB Notification: Performance of Templates: time 0.2457/0.4335, allocations: 5.439 MB / 0.5049 GB, free: 40.76 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)