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.001593/0.001593, allocations: 113.4 kB / 17.99 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 217.7 kB / 18.92 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2415/0.2415, allocations: 46.11 MB / 344.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 84.25 kB / 417.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.144, allocations: 62.45 MB / 480.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.006587/0.1506, allocations: 4.043 MB / 484.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003143/0.1538, allocations: 1.468 MB / 485.7 MB, free: 44 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004679/0.1543, allocations: 11.94 kB / 485.7 MB, free: 32 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000869/0.1553, allocations: 234.9 kB / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.1556, allocations: 107.2 kB / 486.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004695/0.1561, allocations: 171.8 kB / 486.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007412/0.1569, allocations: 0.6384 MB / 486.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004531/0.1573, allocations: 268.2 kB / 487.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000433/0.1578, allocations: 239 kB / 487.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.1581, allocations: 262.7 kB / 487.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.31e-05/0.1582, allocations: 63.94 kB / 487.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.487e-05/0.1583, allocations: 60 kB / 487.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.1584, allocations: 131.5 kB / 487.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000266/0.1587, allocations: 294.5 kB / 488.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006334/0.1593, allocations: 0.5573 MB / 488.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1593, allocations: 0 / 488.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1594, allocations: 0 / 488.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.1594, allocations: 0 / 488.7 MB, free: 13.04 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.001502/0.1609, allocations: 0.8338 MB / 489.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.1609, allocations: 8.031 kB / 489.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.1611, allocations: 64.19 kB / 489.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006249/0.1617, allocations: 407.6 kB / 490 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/0.1618, allocations: 33.38 kB / 490.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.98e-05/0.1618, allocations: 48.28 kB / 490.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008578/0.1627, allocations: 463.3 kB / 490.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.1627, allocations: 3.984 kB / 490.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.293e-05/0.1628, allocations: 16 kB / 490.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1628, allocations: 12 kB / 490.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006193/0.1634, allocations: 307.8 kB / 490.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.1662, allocations: 1.669 MB / 492.6 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008868/0.1671, allocations: 389.8 kB / 492.9 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.1673, allocations: 120.8 kB / 493.1 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.1673, allocations: 3.938 kB / 493.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.1674, allocations: 34.56 kB / 493.1 MB, free: 8.434 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 2.705e-06/0.1674, allocations: 0 / 493.1 MB, free: 8.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001879/0.1693, allocations: 0.8956 MB / 494 MB, free: 7.465 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.1694, allocations: 51.41 kB / 494 MB, free: 7.402 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005299/0.1699, allocations: 397.7 kB / 494.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.1699, allocations: 33.7 kB / 494.5 MB, free: 6.973 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.1702, allocations: 279.7 kB / 494.7 MB, free: 6.691 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.452e-05/0.1702, allocations: 94.75 kB / 494.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.1704, allocations: 57.61 kB / 494.9 MB, free: 6.535 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1706, allocations: 346.8 kB / 495.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.1708, allocations: 96.81 kB / 495.3 MB, free: 6.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/0.171, allocations: 158.6 kB / 495.5 MB, free: 5.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/0.1715, allocations: 251.7 kB / 495.7 MB, free: 5.641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1715, allocations: 0 / 495.7 MB, free: 5.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006872/0.1722, allocations: 358 kB / 496.1 MB, free: 5.281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1723, allocations: 7.938 kB / 496.1 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.1723, allocations: 4.094 kB / 496.1 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.1725, allocations: 28.78 kB / 496.1 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.1728, allocations: 67.91 kB / 496.2 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.1741, allocations: 1.38 MB / 497.6 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/0.1743, allocations: 11.98 kB / 497.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.1744, allocations: 19.94 kB / 497.6 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003617/0.1747, allocations: 208.1 kB / 497.8 MB, free: 3.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002164/0.175, allocations: 141 kB / 497.9 MB, free: 3.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003889/0.1754, allocations: 239.6 kB / 498.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.623e-06/0.1754, allocations: 0 / 498.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005873/0.176, allocations: 334 kB / 498.5 MB, free: 2.652 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.176, allocations: 4.25 kB / 498.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.176, allocations: 8 kB / 498.5 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001016/0.1761, allocations: 24.84 kB / 498.5 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00025/0.1764, allocations: 63.91 kB / 498.6 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.1776, allocations: 1.39 MB / 500 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.1778, allocations: 8 kB / 500 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.1778, allocations: 8 kB / 500 MB, free: 1.008 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 (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.0001919/0.178, allocations: 204.5 kB / 0.4885 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.687e-05/0.1781, allocations: 43.47 kB / 0.4885 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.1782, allocations: 43.5 kB / 0.4886 GB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1782, allocations: 4 kB / 0.4886 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1782, allocations: 0 / 0.4886 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1783, allocations: 0 / 0.4886 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.1796, allocations: 0.844 MB / 0.4894 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1797, allocations: 0 / 0.4894 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.1799, allocations: 51.91 kB / 0.4894 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.156e-05/0.18, allocations: 28.91 kB / 0.4895 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.1801, allocations: 7.938 kB / 0.4895 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.1812, allocations: 1.382 MB / 0.4908 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1812, allocations: 0 / 0.4908 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008145/0.182, allocations: 489.3 kB / 0.4913 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1821, allocations: 120.7 kB / 0.4914 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/0.1822, allocations: 4 kB / 0.4914 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.1824, allocations: 23.92 kB / 0.4914 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.1825, allocations: 23.92 kB / 0.4915 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.1825, allocations: 4 kB / 0.4915 GB, free: 13.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004488/0.1829, allocations: 283.2 kB / 0.4917 GB, free: 13.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.183, allocations: 0 / 0.4917 GB, free: 13.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006116/0.1836, allocations: 140 kB / 0.4919 GB, free: 13.07 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 (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.0001741/0.1838, allocations: 103.7 kB / 0.492 GB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.185, allocations: 0.5985 MB / 0.4925 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.185, allocations: 4.875 kB / 0.4925 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003622/0.1853, allocations: 230.6 kB / 0.4928 GB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006637/0.186, allocations: 71.7 kB / 0.4928 GB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.1882, allocations: 1.249 MB / 0.4941 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/0.1888, allocations: 0.8347 MB / 0.4949 GB, free: 9.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.8e-05/0.1889, allocations: 31.38 kB / 0.4949 GB, free: 9.852 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1889, allocations: 8 kB / 0.4949 GB, free: 9.844 MB / 382.1 MB Notification: Performance of Templates: time 0.0114/0.2003, allocations: 7.161 MB / 0.5019 GB, free: 2.684 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)