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.001443/0.001442, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 71.89 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1214, allocations: 62.45 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006575/0.1281, allocations: 4.539 MB / 486 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.1312, allocations: 1.655 MB / 487.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006606/0.1319, allocations: 15.94 kB / 487.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.133, allocations: 301.9 kB / 488 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007175/0.1337, allocations: 158.5 kB / 488.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006825/0.1344, allocations: 271.6 kB / 488.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.1355, allocations: 0.842 MB / 489.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005541/0.1361, allocations: 398.2 kB / 489.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004986/0.1366, allocations: 302.7 kB / 489.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003421/0.137, allocations: 346.3 kB / 490.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.1371, allocations: 80 kB / 490.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.945e-05/0.1372, allocations: 80 kB / 490.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.1373, allocations: 171.3 kB / 490.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002899/0.1376, allocations: 374 kB / 490.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.1386, allocations: 0.9303 MB / 491.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1387, allocations: 0 / 491.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1387, allocations: 0 / 491.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.146e-05/0.1387, allocations: 0 / 491.9 MB, free: 10.05 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.001714/0.1404, allocations: 1.021 MB / 492.9 MB, free: 8.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1405, allocations: 8.031 kB / 492.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.1406, allocations: 87.91 kB / 493 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000778/0.1414, allocations: 0.4936 MB / 493.5 MB, free: 8.355 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.1414, allocations: 45.69 kB / 493.5 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.658e-05/0.1415, allocations: 60.38 kB / 493.6 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009841/0.1425, allocations: 0.5914 MB / 494.2 MB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.1426, allocations: 11.84 kB / 494.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.114e-05/0.1426, allocations: 27.98 kB / 494.2 MB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.1426, allocations: 16 kB / 494.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008224/0.1435, allocations: 425 kB / 494.6 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002927/0.1464, allocations: 2.136 MB / 496.8 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.1474, allocations: 0.5624 MB / 497.3 MB, free: 4.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.1478, allocations: 175.8 kB / 497.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.1478, allocations: 0 / 497.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1478, allocations: 42.56 kB / 497.6 MB, free: 4.109 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.253e-06/0.1478, allocations: 0 / 497.6 MB, free: 4.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.00216/0.15, allocations: 1.134 MB / 498.7 MB, free: 2.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.1501, allocations: 55.41 kB / 498.7 MB, free: 2.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005826/0.1507, allocations: 0.5145 MB / 499.3 MB, free: 2.312 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.1507, allocations: 37.7 kB / 499.3 MB, free: 2.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002804/0.151, allocations: 348.1 kB / 499.6 MB, free: 1.922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.742e-05/0.1511, allocations: 118.3 kB / 499.7 MB, free: 1.805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.1512, allocations: 70.14 kB / 499.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1513, allocations: 366.8 kB / 0.4885 GB, free: 1.363 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.1517, allocations: 146.5 kB / 0.4886 GB, free: 1.219 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.152, allocations: 220.9 kB / 0.4888 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006144/0.1526, allocations: 363.9 kB / 0.4892 GB, free: 0.582 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.1526, allocations: 7.938 kB / 0.4892 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008361/0.1535, allocations: 477.3 kB / 0.4896 GB, free: 100 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1535, allocations: 8 kB / 0.4896 GB, free: 92 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1535, allocations: 0 / 0.4896 GB, free: 92 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001541/0.1537, allocations: 28.84 kB / 0.4896 GB, free: 60 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.1541, allocations: 99.88 kB / 0.4897 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.1553, allocations: 1.384 MB / 0.4911 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002774/0.1556, allocations: 19.98 kB / 0.4911 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.1556, allocations: 16 kB / 0.4911 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004207/0.1561, allocations: 257 kB / 0.4914 GB, free: 14.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000267/0.1563, allocations: 210.9 kB / 0.4916 GB, free: 13.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004829/0.1568, allocations: 328 kB / 0.4919 GB, free: 13.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.169e-06/0.1568, allocations: 4 kB / 0.4919 GB, free: 13.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0006939/0.1575, allocations: 446.2 kB / 0.4923 GB, free: 13.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1576, allocations: 8 kB / 0.4923 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.1576, allocations: 0 / 0.4923 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001046/0.1577, allocations: 33.19 kB / 0.4924 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003392/0.158, allocations: 87.89 kB / 0.4924 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009459/0.159, allocations: 1.383 MB / 0.4938 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002195/0.1592, allocations: 23.88 kB / 0.4938 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.1593, allocations: 16 kB / 0.4938 GB, free: 11.41 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.0001524/0.1594, allocations: 206 kB / 0.494 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.411e-05/0.1595, allocations: 55.44 kB / 0.4941 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.1596, allocations: 57.28 kB / 0.4941 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1596, allocations: 4 kB / 0.4941 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.1597, allocations: 7.875 kB / 0.4941 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1597, allocations: 7.984 kB / 0.4942 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.1613, allocations: 1.055 MB / 0.4952 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1613, allocations: 4 kB / 0.4952 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.1617, allocations: 67.89 kB / 0.4953 GB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.141e-05/0.1618, allocations: 20.86 kB / 0.4953 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.1618, allocations: 12.06 kB / 0.4953 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009058/0.1627, allocations: 1.382 MB / 0.4966 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.1628, allocations: 4 kB / 0.4966 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009893/0.1637, allocations: 0.6239 MB / 0.4972 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.1639, allocations: 140.4 kB / 0.4974 GB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.064e-05/0.1639, allocations: 4 kB / 0.4974 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002619/0.1642, allocations: 27.97 kB / 0.4974 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.1643, allocations: 27.95 kB / 0.4974 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.1643, allocations: 8 kB / 0.4974 GB, free: 7.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004541/0.1648, allocations: 366.9 kB / 0.4978 GB, free: 7.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1648, allocations: 0 / 0.4978 GB, free: 7.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007332/0.1655, allocations: 180 kB / 0.498 GB, free: 6.922 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.0002294/0.1658, allocations: 107.1 kB / 0.4981 GB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.1672, allocations: 0.7516 MB / 0.4988 GB, free: 6.027 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1672, allocations: 3.938 kB / 0.4988 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004184/0.1676, allocations: 266.6 kB / 0.4991 GB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/0.1683, allocations: 112.2 kB / 0.4992 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.1706, allocations: 1.266 MB / 0.5004 GB, free: 4.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.1711, allocations: 0.8863 MB / 0.5013 GB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002313/0.1713, allocations: 68.36 kB / 0.5013 GB, free: 3.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1714, allocations: 39.44 kB / 0.5014 GB, free: 3.312 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1714, allocations: 4 kB / 0.5014 GB, free: 3.309 MB / 382.1 MB Notification: Performance of Templates: time 0.232/0.4034, allocations: 5.481 MB / 0.5067 GB, free: 39.59 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 -s cvode -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)