Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009965/0.0009964, allocations: 95.59 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000981/0.0009812, allocations: 205.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.578/1.578, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2507/0.2507, allocations: 45.91 MB / 344 MB, free: 12.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 8 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1497, allocations: 63.47 MB / 481.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.004777/0.1546, allocations: 3.321 MB / 484.7 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.1569, allocations: 1.399 MB / 486.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/0.1571, allocations: 11.94 kB / 486.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004752/0.1576, allocations: 206.9 kB / 486.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.1579, allocations: 151.5 kB / 486.5 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003244/0.1582, allocations: 119.9 kB / 486.6 MB, free: 252 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005319/0.1588, allocations: 419.7 kB / 487 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000337/0.1591, allocations: 199.3 kB / 487.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.1594, allocations: 179.2 kB / 487.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.1597, allocations: 214.8 kB / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.1597, allocations: 28 kB / 487.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.791e-05/0.1598, allocations: 24 kB / 487.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.229e-05/0.1599, allocations: 83.61 kB / 487.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.902e-05/0.16, allocations: 121.4 kB / 487.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004435/0.1604, allocations: 0.5378 MB / 488.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1604, allocations: 0 / 488.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1604, allocations: 0 / 488.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1605, allocations: 4 kB / 488.4 MB, free: 14.45 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001147/0.1616, allocations: 0.7519 MB / 489.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.1616, allocations: 8.031 kB / 489.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.187e-05/0.1617, allocations: 59.25 kB / 489.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004837/0.1622, allocations: 394.6 kB / 489.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.1623, allocations: 36.94 kB / 489.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.729e-05/0.1624, allocations: 48 kB / 489.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007973/0.1632, allocations: 455 kB / 490.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.1632, allocations: 3.984 kB / 490.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.1632, allocations: 16 kB / 490.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.1633, allocations: 12 kB / 490.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006007/0.1639, allocations: 319.8 kB / 490.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.1662, allocations: 1.689 MB / 492.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008814/0.1671, allocations: 431.4 kB / 492.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.1671, allocations: 4 kB / 492.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.1671, allocations: 38.56 kB / 492.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.1671, allocations: 0 / 492.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.0017/0.1688, allocations: 0.9051 MB / 493.5 MB, free: 9.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.1689, allocations: 59.36 kB / 493.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004827/0.1694, allocations: 389.7 kB / 493.9 MB, free: 8.551 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.1694, allocations: 33.7 kB / 494 MB, free: 8.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.1697, allocations: 279.8 kB / 494.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.933e-05/0.1697, allocations: 90.72 kB / 494.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.346e-05/0.1698, allocations: 4 kB / 494.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1699, allocations: 346.8 kB / 494.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.1702, allocations: 103.8 kB / 494.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.1704, allocations: 155.4 kB / 494.9 MB, free: 7.516 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.1707, allocations: 112 kB / 495 MB, free: 7.406 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1707, allocations: 4 kB / 495 MB, free: 7.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006358/0.1713, allocations: 362.9 kB / 495.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003681/0.1717, allocations: 0.7032 MB / 496.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1717, allocations: 96 / 496.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.1719, allocations: 32.72 kB / 496.1 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.1722, allocations: 71.91 kB / 496.2 MB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.1733, allocations: 1.288 MB / 497.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.1735, allocations: 20.23 kB / 497.5 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.1735, allocations: 16 kB / 497.5 MB, free: 4.719 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/0.1736, allocations: 4 kB / 497.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004332/0.174, allocations: 260.5 kB / 497.8 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-06/0.174, allocations: 4 kB / 497.8 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.794e-05/0.1741, allocations: 25.08 kB / 497.8 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.1743, allocations: 63.91 kB / 497.9 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009434/0.1753, allocations: 1.299 MB / 499.2 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.1754, allocations: 8 kB / 499.2 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.1755, allocations: 8 kB / 499.2 MB, free: 2.918 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002625/0.1757, allocations: 257 kB / 499.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.285e-05/0.1758, allocations: 43.48 kB / 499.5 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.919e-05/0.1759, allocations: 43.7 kB / 499.5 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1759, allocations: 4 kB / 499.5 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1759, allocations: 0 / 499.5 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1759, allocations: 0 / 499.5 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.1772, allocations: 0.8573 MB / 0.4887 GB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1772, allocations: 0 / 0.4887 GB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.1775, allocations: 55.91 kB / 0.4887 GB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.821e-05/0.1775, allocations: 20.92 kB / 0.4887 GB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.1776, allocations: 8 kB / 0.4887 GB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009262/0.1785, allocations: 1.284 MB / 0.49 GB, free: 144 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1785, allocations: 0 / 0.49 GB, free: 144 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007825/0.1793, allocations: 0.5201 MB / 0.4905 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.557e-05/0.1794, allocations: 124.6 kB / 0.4906 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.1794, allocations: 8 kB / 0.4906 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.1797, allocations: 24.05 kB / 0.4906 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.1797, allocations: 19.97 kB / 0.4907 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.1797, allocations: 8 kB / 0.4907 GB, free: 15.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003171/0.1801, allocations: 275.2 kB / 0.4909 GB, free: 15.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1801, allocations: 0 / 0.4909 GB, free: 15.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000537/0.1806, allocations: 148 kB / 0.4911 GB, free: 14.97 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001395/0.1808, allocations: 103.2 kB / 0.4912 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009889/0.1818, allocations: 0.5957 MB / 0.4918 GB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1818, allocations: 0.75 kB / 0.4918 GB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.1821, allocations: 234.6 kB / 0.492 GB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.1826, allocations: 72.75 kB / 0.4921 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.1845, allocations: 1.272 MB / 0.4933 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.1849, allocations: 0.8466 MB / 0.4941 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.1851, allocations: 47.25 kB / 0.4942 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.458e-05/0.1852, allocations: 27.44 kB / 0.4942 GB, free: 11.68 MB / 382.1 MB Notification: Performance of SimCode: time 3.116e-06/0.1852, allocations: 0 / 0.4942 GB, free: 11.68 MB / 382.1 MB Notification: Performance of Templates: time 0.007969/0.1932, allocations: 3.724 MB / 0.4978 GB, free: 7.977 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)