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.0009152/0.0009152, allocations: 97.11 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001292, allocations: 206.6 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.7 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2648/0.2648, allocations: 46.19 MB / 345.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002823, allocations: 4 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1328, allocations: 63.57 MB / 483.1 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005602/0.1384, allocations: 4.128 MB / 487.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003154/0.1416, allocations: 1.605 MB / 488.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007989/0.1424, allocations: 15.94 kB / 488.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1435, allocations: 250.6 kB / 489.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007106/0.1443, allocations: 131 kB / 489.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006803/0.1449, allocations: 243.7 kB / 489.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.146, allocations: 0.7873 MB / 490.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005874/0.1466, allocations: 353.9 kB / 490.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004215/0.147, allocations: 234.8 kB / 490.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003957/0.1475, allocations: 270.3 kB / 491.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.1476, allocations: 35.94 kB / 491.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.1477, allocations: 32 kB / 491.1 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.1478, allocations: 111.4 kB / 491.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003598/0.1482, allocations: 339.7 kB / 491.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007824/0.149, allocations: 0.8327 MB / 492.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.149, allocations: 0 / 492.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.149, allocations: 0 / 492.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.686e-05/0.149, allocations: 0 / 492.4 MB, free: 10.75 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.001607/0.1507, allocations: 0.9078 MB / 493.3 MB, free: 9.785 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1507, allocations: 8.875 kB / 493.3 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.1509, allocations: 84 kB / 493.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007477/0.1517, allocations: 497.5 kB / 493.9 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.1517, allocations: 45.69 kB / 493.9 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.1518, allocations: 64.28 kB / 494 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.1529, allocations: 0.607 MB / 494.6 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.153, allocations: 4 kB / 494.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/0.153, allocations: 24 kB / 494.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.153, allocations: 16 kB / 494.7 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009561/0.154, allocations: 452.9 kB / 495.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003304/0.1573, allocations: 2.187 MB / 497.3 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.1585, allocations: 0.6102 MB / 497.9 MB, free: 5.012 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003532/0.1589, allocations: 183.5 kB / 498.1 MB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.1589, allocations: 4 kB / 498.1 MB, free: 4.828 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.159, allocations: 42.56 kB / 498.1 MB, free: 4.777 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.764e-06/0.159, allocations: 0 / 498.1 MB, free: 4.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002363/0.1613, allocations: 1.196 MB / 499.3 MB, free: 3.504 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.1614, allocations: 59.41 kB / 499.4 MB, free: 3.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006438/0.162, allocations: 0.5184 MB / 499.9 MB, free: 2.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.1621, allocations: 29.7 kB / 499.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.1623, allocations: 355.9 kB / 0.4885 GB, free: 2.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.579e-05/0.1624, allocations: 118.4 kB / 0.4887 GB, free: 2.402 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.853e-05/0.1625, allocations: 37.7 kB / 0.4887 GB, free: 2.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1626, allocations: 366.8 kB / 0.489 GB, free: 1.992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003261/0.163, allocations: 148.8 kB / 0.4892 GB, free: 1.848 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003656/0.1633, allocations: 232.9 kB / 0.4894 GB, free: 1.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.164, allocations: 391.9 kB / 0.4898 GB, free: 1.172 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1641, allocations: 3.938 kB / 0.4898 GB, free: 1.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009895/0.1651, allocations: 0.4934 MB / 0.4903 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001321/0.1652, allocations: 160.9 kB / 0.4904 GB, free: 484 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.1652, allocations: 3.938 kB / 0.4904 GB, free: 480 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.1654, allocations: 24.84 kB / 0.4904 GB, free: 452 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00044/0.1659, allocations: 111.8 kB / 0.4906 GB, free: 340 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.1672, allocations: 1.285 MB / 0.4918 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004189/0.1677, allocations: 32.17 kB / 0.4918 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.1677, allocations: 19.94 kB / 0.4919 GB, free: 14.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.1677, allocations: 4 kB / 0.4919 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006709/0.1684, allocations: 360.4 kB / 0.4922 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1684, allocations: 4 kB / 0.4922 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.384e-05/0.1685, allocations: 24.84 kB / 0.4922 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004145/0.1689, allocations: 99.89 kB / 0.4923 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008678/0.1698, allocations: 1.288 MB / 0.4936 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.1701, allocations: 12 kB / 0.4936 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.1701, allocations: 19.98 kB / 0.4936 GB, free: 12.92 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.0003014/0.1704, allocations: 269.1 kB / 0.4939 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/0.1705, allocations: 59.28 kB / 0.4939 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.1706, allocations: 57.28 kB / 0.494 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.1706, allocations: 4 kB / 0.494 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1707, allocations: 0 / 0.494 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1707, allocations: 0 / 0.494 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/0.1724, allocations: 1.088 MB / 0.4951 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1724, allocations: 0 / 0.4951 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003535/0.1728, allocations: 83.95 kB / 0.4951 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.872e-05/0.1729, allocations: 16.84 kB / 0.4951 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.1729, allocations: 12 kB / 0.4952 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009163/0.1738, allocations: 1.288 MB / 0.4964 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1738, allocations: 4 kB / 0.4964 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.175, allocations: 0.658 MB / 0.4971 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.1751, allocations: 136.4 kB / 0.4972 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.39e-05/0.1752, allocations: 11.98 kB / 0.4972 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003048/0.1755, allocations: 31.98 kB / 0.4972 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.1756, allocations: 19.97 kB / 0.4973 GB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.1756, allocations: 12 kB / 0.4973 GB, free: 8.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004407/0.176, allocations: 366.9 kB / 0.4976 GB, free: 8.578 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.176, allocations: 4 kB / 0.4976 GB, free: 8.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006096/0.1767, allocations: 176 kB / 0.4978 GB, free: 8.402 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.0001297/0.1768, allocations: 113.7 kB / 0.4979 GB, free: 8.281 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.1782, allocations: 0.7682 MB / 0.4986 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.1782, allocations: 0 / 0.4986 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004748/0.1787, allocations: 291.6 kB / 0.4989 GB, free: 7.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007582/0.1794, allocations: 102.1 kB / 0.499 GB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.182, allocations: 1.633 MB / 0.5006 GB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005501/0.1825, allocations: 0.8941 MB / 0.5015 GB, free: 4.496 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002945/0.1828, allocations: 64.52 kB / 0.5016 GB, free: 4.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.183, allocations: 35.44 kB / 0.5016 GB, free: 4.395 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.183, allocations: 0 / 0.5016 GB, free: 4.395 MB / 382.1 MB Notification: Performance of Templates: time 0.2623/0.4453, allocations: 5.142 MB / 0.5066 GB, free: 39.89 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)