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.0008339/0.000834, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009427/0.0009427, allocations: 201.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002732, allocations: 7.984 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1265, allocations: 63.56 MB / 483.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005599/0.1322, allocations: 4.136 MB / 487.2 MB, free: 16 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00358/0.1358, allocations: 1.597 MB / 488.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008196/0.1367, allocations: 19.88 kB / 488.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008545/0.1375, allocations: 250.7 kB / 489.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006796/0.1382, allocations: 131 kB / 489.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000594/0.1388, allocations: 239.8 kB / 489.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009616/0.1398, allocations: 0.7834 MB / 490.2 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005496/0.1404, allocations: 353.9 kB / 490.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003642/0.1407, allocations: 230.8 kB / 490.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.1411, allocations: 282.3 kB / 491.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.268e-05/0.1411, allocations: 35.94 kB / 491.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.1412, allocations: 32 kB / 491.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.1414, allocations: 111.4 kB / 491.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002855/0.1417, allocations: 331.7 kB / 491.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007171/0.1424, allocations: 0.8366 MB / 492.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1424, allocations: 0 / 492.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1424, allocations: 0 / 492.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.1424, allocations: 0 / 492.4 MB, free: 10.78 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.00158/0.144, allocations: 0.9117 MB / 493.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.1441, allocations: 8.875 kB / 493.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.1442, allocations: 91.92 kB / 493.4 MB, free: 9.715 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/0.1449, allocations: 481.5 kB / 493.9 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.1449, allocations: 49.67 kB / 493.9 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.698e-05/0.1451, allocations: 68.28 kB / 494 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1462, allocations: 0.607 MB / 494.6 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.1462, allocations: 8 kB / 494.6 MB, free: 8.457 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/0.1463, allocations: 20 kB / 494.6 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.1463, allocations: 16 kB / 494.7 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009467/0.1472, allocations: 448.9 kB / 495.1 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003306/0.1506, allocations: 2.187 MB / 497.3 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.1519, allocations: 0.6169 MB / 497.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.1523, allocations: 172.8 kB / 498.1 MB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.1523, allocations: 8 kB / 498.1 MB, free: 4.859 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.1524, allocations: 42.56 kB / 498.1 MB, free: 4.809 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.615e-06/0.1524, allocations: 3.938 kB / 498.1 MB, free: 4.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002539/0.1549, allocations: 1.199 MB / 499.3 MB, free: 3.527 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.155, allocations: 59.39 kB / 499.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006518/0.1556, allocations: 0.5184 MB / 499.9 MB, free: 2.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1557, allocations: 29.7 kB / 499.9 MB, free: 2.898 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/0.1559, allocations: 352 kB / 0.4885 GB, free: 2.547 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.049e-05/0.156, allocations: 114.4 kB / 0.4887 GB, free: 2.434 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.141e-05/0.1561, allocations: 41.69 kB / 0.4887 GB, free: 2.387 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.1563, allocations: 362.8 kB / 0.489 GB, free: 2.023 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.1567, allocations: 152.8 kB / 0.4892 GB, free: 1.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.1571, allocations: 232.8 kB / 0.4894 GB, free: 1.613 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007261/0.1578, allocations: 387.9 kB / 0.4898 GB, free: 1.203 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.1578, allocations: 3.938 kB / 0.4898 GB, free: 1.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001003/0.1588, allocations: 0.4975 MB / 0.4903 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.1589, allocations: 164.7 kB / 0.4904 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.159, allocations: 3.938 kB / 0.4904 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001605/0.1591, allocations: 24.86 kB / 0.4905 GB, free: 476 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004346/0.1596, allocations: 103.9 kB / 0.4906 GB, free: 372 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/0.1607, allocations: 1.285 MB / 0.4918 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.1611, allocations: 32.02 kB / 0.4918 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.072e-05/0.1612, allocations: 19.83 kB / 0.4919 GB, free: 14.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.834e-06/0.1612, allocations: 8.125 kB / 0.4919 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006657/0.1619, allocations: 356.5 kB / 0.4922 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.1619, allocations: 4.062 kB / 0.4922 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.762e-05/0.162, allocations: 20.84 kB / 0.4922 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/0.1623, allocations: 99.83 kB / 0.4923 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.1634, allocations: 1.295 MB / 0.4936 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.1637, allocations: 19.98 kB / 0.4936 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.1637, allocations: 12 kB / 0.4936 GB, free: 12.95 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.0003882/0.1641, allocations: 265.1 kB / 0.4939 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.054e-05/0.1642, allocations: 59.28 kB / 0.4939 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.1643, allocations: 57.28 kB / 0.494 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1644, allocations: 4 kB / 0.494 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1644, allocations: 0 / 0.494 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1644, allocations: 3.984 kB / 0.494 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.1662, allocations: 1.092 MB / 0.4951 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1662, allocations: 0 / 0.4951 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.1666, allocations: 75.91 kB / 0.4951 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.111e-05/0.1667, allocations: 24.91 kB / 0.4952 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.1667, allocations: 8 kB / 0.4952 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009054/0.1676, allocations: 1.288 MB / 0.4964 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1676, allocations: 0 / 0.4964 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.1688, allocations: 0.6618 MB / 0.4971 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.169, allocations: 136.4 kB / 0.4972 GB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.169, allocations: 8 kB / 0.4972 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002986/0.1693, allocations: 35.98 kB / 0.4972 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.313e-05/0.1694, allocations: 27.94 kB / 0.4973 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.1695, allocations: 8 kB / 0.4973 GB, free: 8.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004983/0.17, allocations: 366.9 kB / 0.4976 GB, free: 8.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.17, allocations: 0 / 0.4976 GB, free: 8.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006772/0.1707, allocations: 180 kB / 0.4978 GB, free: 8.426 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.000148/0.1708, allocations: 107.2 kB / 0.4979 GB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.1724, allocations: 0.7686 MB / 0.4986 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1724, allocations: 3.938 kB / 0.4986 GB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005036/0.1729, allocations: 287.2 kB / 0.4989 GB, free: 7.219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007969/0.1737, allocations: 102.1 kB / 0.499 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002642/0.1763, allocations: 1.64 MB / 0.5006 GB, free: 5.441 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.1769, allocations: 0.8863 MB / 0.5015 GB, free: 4.523 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002739/0.1772, allocations: 64.36 kB / 0.5015 GB, free: 4.457 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.1774, allocations: 39.44 kB / 0.5016 GB, free: 4.418 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.1774, allocations: 0 / 0.5016 GB, free: 4.418 MB / 382.1 MB Notification: Performance of Templates: time 0.2212/0.3986, allocations: 5.135 MB / 0.5066 GB, free: 39.48 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)