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.001109/0.001109, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2168/0.2168, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 78.81 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1313, allocations: 62.44 MB / 480 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.006718/0.1381, allocations: 4.022 MB / 484 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003649/0.1418, allocations: 1.499 MB / 485.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007385/0.1426, allocations: 15.94 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009853/0.1436, allocations: 258.5 kB / 485.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005822/0.1442, allocations: 134.8 kB / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000621/0.1449, allocations: 191.7 kB / 486.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.1459, allocations: 0.6349 MB / 486.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005054/0.1465, allocations: 272.2 kB / 487 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005475/0.147, allocations: 235 kB / 487.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004722/0.1475, allocations: 262.7 kB / 487.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.1476, allocations: 64 kB / 487.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.1478, allocations: 60 kB / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.1479, allocations: 135.5 kB / 487.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003499/0.1483, allocations: 290.5 kB / 488 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008365/0.1491, allocations: 0.6891 MB / 488.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.1491, allocations: 0 / 488.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1492, allocations: 0 / 488.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.144e-05/0.1492, allocations: 0 / 488.7 MB, free: 12.53 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.002297/0.1515, allocations: 0.8299 MB / 489.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.077e-05/0.1516, allocations: 8.031 kB / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.1518, allocations: 68.17 kB / 489.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009718/0.1528, allocations: 399.6 kB / 490 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/0.1529, allocations: 33.38 kB / 490.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.707e-05/0.153, allocations: 52.28 kB / 490.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008729/0.1539, allocations: 467.2 kB / 490.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.1539, allocations: 0 / 490.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.304e-05/0.1539, allocations: 16 kB / 490.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.154, allocations: 15.94 kB / 490.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005903/0.1546, allocations: 303.8 kB / 490.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002437/0.157, allocations: 1.669 MB / 492.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008774/0.1579, allocations: 390 kB / 492.9 MB, free: 8.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.1582, allocations: 120.9 kB / 493.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.1582, allocations: 3.938 kB / 493.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.1582, allocations: 38.55 kB / 493.1 MB, free: 7.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.1582, allocations: 0 / 493.1 MB, free: 7.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001701/0.1599, allocations: 0.8971 MB / 494 MB, free: 6.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.16, allocations: 51.41 kB / 494.1 MB, free: 6.891 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004696/0.1605, allocations: 393.7 kB / 494.4 MB, free: 6.504 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.1605, allocations: 33.7 kB / 494.5 MB, free: 6.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.1607, allocations: 271.8 kB / 494.7 MB, free: 6.191 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.661e-05/0.1608, allocations: 98.73 kB / 494.8 MB, free: 6.094 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.161, allocations: 61.59 kB / 494.9 MB, free: 6.027 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.1612, allocations: 346.8 kB / 495.2 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.1614, allocations: 96.81 kB / 495.3 MB, free: 5.582 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.1617, allocations: 158.6 kB / 495.5 MB, free: 5.402 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/0.1622, allocations: 254.7 kB / 495.7 MB, free: 5.129 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1622, allocations: 4 kB / 495.7 MB, free: 5.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000711/0.1629, allocations: 354 kB / 496.1 MB, free: 4.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.1629, allocations: 7.938 kB / 496.1 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1629, allocations: 4 kB / 496.1 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001757/0.1631, allocations: 24.84 kB / 496.1 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/0.1634, allocations: 67.91 kB / 496.2 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.1648, allocations: 1.38 MB / 497.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.165, allocations: 8 kB / 497.6 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.165, allocations: 23.92 kB / 497.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002662/0.1653, allocations: 204.1 kB / 497.8 MB, free: 2.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000188/0.1655, allocations: 144.9 kB / 497.9 MB, free: 2.742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003518/0.1659, allocations: 247.8 kB / 498.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.495e-06/0.1659, allocations: 0 / 498.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005248/0.1664, allocations: 325.8 kB / 498.5 MB, free: 2.145 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.1664, allocations: 4.25 kB / 498.5 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1664, allocations: 8 kB / 498.5 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.03e-05/0.1665, allocations: 24.84 kB / 498.5 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.1668, allocations: 63.91 kB / 498.6 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009162/0.1677, allocations: 1.39 MB / 500 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.1679, allocations: 8 kB / 500 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.1679, allocations: 8 kB / 0.4883 GB, free: 0.5 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.0001398/0.1681, allocations: 212 kB / 0.4885 GB, free: 296 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.419e-05/0.1681, allocations: 39.53 kB / 0.4885 GB, free: 256 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.522e-05/0.1682, allocations: 39.52 kB / 0.4886 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1682, allocations: 4 kB / 0.4886 GB, free: 204 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1683, allocations: 0 / 0.4886 GB, free: 204 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1683, allocations: 3.984 kB / 0.4886 GB, free: 200 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.1695, allocations: 0.8518 MB / 0.4894 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1695, allocations: 0 / 0.4894 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.1698, allocations: 51.91 kB / 0.4894 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.634e-05/0.1699, allocations: 28.91 kB / 0.4895 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.1699, allocations: 7.938 kB / 0.4895 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009223/0.1708, allocations: 1.375 MB / 0.4908 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.1709, allocations: 3.984 kB / 0.4908 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007774/0.1716, allocations: 489.5 kB / 0.4913 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.769e-05/0.1718, allocations: 120.7 kB / 0.4914 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.552e-05/0.1718, allocations: 7.984 kB / 0.4914 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.172, allocations: 16 kB / 0.4914 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.1721, allocations: 27.91 kB / 0.4915 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.1721, allocations: 4 kB / 0.4915 GB, free: 12.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003618/0.1725, allocations: 283.2 kB / 0.4917 GB, free: 12.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1725, allocations: 0 / 0.4917 GB, free: 12.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005899/0.1731, allocations: 140 kB / 0.4919 GB, free: 12.57 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.0001577/0.1733, allocations: 103.2 kB / 0.492 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.1744, allocations: 0.5985 MB / 0.4926 GB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1745, allocations: 4.875 kB / 0.4926 GB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000354/0.1748, allocations: 226.7 kB / 0.4928 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006193/0.1755, allocations: 83.53 kB / 0.4929 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.1773, allocations: 1.029 MB / 0.4939 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.1777, allocations: 0.8347 MB / 0.4947 GB, free: 9.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000185/0.1779, allocations: 47.25 kB / 0.4947 GB, free: 9.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.504e-05/0.178, allocations: 27.44 kB / 0.4947 GB, free: 9.516 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.178, allocations: 0 / 0.4947 GB, free: 9.516 MB / 382.1 MB Notification: Performance of Templates: time 0.0093/0.1873, allocations: 4.078 MB / 0.4987 GB, free: 5.465 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)