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.001371/0.00137, allocations: 114 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 46.1 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 79.56 kB / 417 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1548, allocations: 62.44 MB / 479.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.006108/0.161, allocations: 4.05 MB / 483.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002471/0.1635, allocations: 1.468 MB / 485 MB, free: 72 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000286/0.1638, allocations: 11.94 kB / 485 MB, free: 60 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000721/0.1645, allocations: 235 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002524/0.1648, allocations: 107.2 kB / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.1652, allocations: 171.8 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006375/0.1658, allocations: 0.6271 MB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003819/0.1662, allocations: 276.2 kB / 486.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003218/0.1665, allocations: 239 kB / 486.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.1668, allocations: 262.7 kB / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.536e-05/0.1669, allocations: 64 kB / 487 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.751e-05/0.167, allocations: 60 kB / 487 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.847e-05/0.1671, allocations: 131.5 kB / 487.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000231/0.1673, allocations: 290.5 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000637/0.168, allocations: 0.6891 MB / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.168, allocations: 0 / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.168, allocations: 0 / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.168, allocations: 0 / 488.1 MB, free: 12.93 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.001311/0.1693, allocations: 0.8338 MB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1694, allocations: 8.031 kB / 489 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.1695, allocations: 68.19 kB / 489 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.17, allocations: 403.6 kB / 489.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.1701, allocations: 37.38 kB / 489.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.1701, allocations: 52.22 kB / 489.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007877/0.1709, allocations: 463.2 kB / 490 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.171, allocations: 0 / 490 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.171, allocations: 23.94 kB / 490 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.171, allocations: 16 kB / 490 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005827/0.1716, allocations: 299.8 kB / 490.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.1741, allocations: 1.669 MB / 492 MB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008075/0.1749, allocations: 391.4 kB / 492.4 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.1751, allocations: 112.8 kB / 492.5 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.1752, allocations: 0 / 492.5 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.1752, allocations: 38.56 kB / 492.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.062e-06/0.1752, allocations: 4 kB / 492.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001622/0.1768, allocations: 0.8916 MB / 493.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.1769, allocations: 55.41 kB / 493.4 MB, free: 7.293 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004931/0.1774, allocations: 401.7 kB / 493.8 MB, free: 6.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.1774, allocations: 29.7 kB / 493.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.1776, allocations: 279.8 kB / 494.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.859e-05/0.1777, allocations: 86.75 kB / 494.2 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1778, allocations: 57.61 kB / 494.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.178, allocations: 346.8 kB / 494.6 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.1782, allocations: 100.8 kB / 494.7 MB, free: 5.984 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.1784, allocations: 154.6 kB / 494.9 MB, free: 5.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004246/0.1789, allocations: 259.7 kB / 495.1 MB, free: 5.531 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1789, allocations: 4 kB / 495.1 MB, free: 5.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005936/0.1795, allocations: 349.8 kB / 495.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1795, allocations: 7.938 kB / 495.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1795, allocations: 4 kB / 495.5 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001312/0.1796, allocations: 29.06 kB / 495.5 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1799, allocations: 67.89 kB / 495.6 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.1811, allocations: 1.38 MB / 497 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.1813, allocations: 8 kB / 497 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.1813, allocations: 15.94 kB / 497 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002792/0.1816, allocations: 212.2 kB / 497.2 MB, free: 3.312 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002315/0.1818, allocations: 152.8 kB / 497.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003351/0.1822, allocations: 235.6 kB / 497.6 MB, free: 2.879 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.493e-06/0.1822, allocations: 0 / 497.6 MB, free: 2.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005092/0.1827, allocations: 330.1 kB / 497.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.1827, allocations: 11.98 kB / 497.9 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-06/0.1827, allocations: 0 / 497.9 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.575e-05/0.1828, allocations: 20.95 kB / 497.9 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.1831, allocations: 72.09 kB / 498 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009689/0.184, allocations: 1.39 MB / 499.4 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.1842, allocations: 8 kB / 499.4 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.1842, allocations: 15.98 kB / 499.4 MB, free: 0.8906 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.0001397/0.1844, allocations: 196.4 kB / 499.6 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.2e-05/0.1844, allocations: 39.53 kB / 499.6 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.316e-05/0.1845, allocations: 43.58 kB / 499.7 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1845, allocations: 4 kB / 499.7 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1846, allocations: 0 / 499.7 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.1846, allocations: 0 / 499.7 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.1858, allocations: 0.848 MB / 0.4888 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1858, allocations: 0 / 0.4888 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002607/0.186, allocations: 55.91 kB / 0.4889 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.523e-05/0.1861, allocations: 20.86 kB / 0.4889 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.1862, allocations: 7.922 kB / 0.4889 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009246/0.1871, allocations: 1.383 MB / 0.4902 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.1871, allocations: 3.984 kB / 0.4902 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007154/0.1878, allocations: 497.2 kB / 0.4907 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.313e-05/0.1879, allocations: 116.7 kB / 0.4908 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.188, allocations: 8 kB / 0.4908 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.1882, allocations: 11.98 kB / 0.4908 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.137e-05/0.1883, allocations: 23.91 kB / 0.4909 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1883, allocations: 4 kB / 0.4909 GB, free: 13.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.1886, allocations: 279.2 kB / 0.4911 GB, free: 13.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1886, allocations: 0 / 0.4911 GB, free: 13.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005197/0.1891, allocations: 144 kB / 0.4913 GB, free: 12.96 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.0001348/0.1893, allocations: 110.7 kB / 0.4914 GB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.1903, allocations: 0.6068 MB / 0.492 GB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.1903, allocations: 0 / 0.492 GB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.1907, allocations: 218.5 kB / 0.4922 GB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006707/0.1913, allocations: 78.64 kB / 0.4923 GB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.1932, allocations: 1.223 MB / 0.4934 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.1936, allocations: 0.8425 MB / 0.4943 GB, free: 9.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001754/0.1938, allocations: 43.25 kB / 0.4943 GB, free: 9.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.287e-05/0.1939, allocations: 31.44 kB / 0.4943 GB, free: 9.723 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1939, allocations: 0 / 0.4943 GB, free: 9.723 MB / 382.1 MB Notification: Performance of Templates: time 0.008446/0.2023, allocations: 4.059 MB / 0.4983 GB, free: 5.691 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)