Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.041/1.041, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573e-05/1.704e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006829/0.006846, allocations: 8.11 MB / 281.1 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003616/0.01046, allocations: 2.676 MB / 283.8 MB, free: 6.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006485/0.01111, allocations: 35.81 kB / 283.8 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.01232, allocations: 0.5238 MB / 284.3 MB, free: 6.117 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006761/0.01299, allocations: 480.2 kB / 284.8 MB, free: 5.645 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004892/0.01348, allocations: 367.4 kB / 285.2 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.01457, allocations: 1.557 MB / 286.7 MB, free: 3.723 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004999/0.01507, allocations: 392 kB / 287.1 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007835/0.01586, allocations: 0.8728 MB / 288 MB, free: 2.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004458/0.0163, allocations: 466.6 kB / 288.4 MB, free: 1.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.01644, allocations: 140 kB / 288.6 MB, free: 1.844 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.01666, allocations: 180 kB / 288.7 MB, free: 1.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.01681, allocations: 294.8 kB / 289 MB, free: 1.379 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000319/0.01713, allocations: 450.9 kB / 289.5 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1374/0.1545, allocations: 0.9561 MB / 290.4 MB, free: 18.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1545, allocations: 0 / 290.4 MB, free: 18.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1545, allocations: 0 / 290.4 MB, free: 18.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.647e-05/0.1546, allocations: 0 / 290.4 MB, free: 18.82 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002089/0.1567, allocations: 1.568 MB / 292 MB, free: 18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.1567, allocations: 11.66 kB / 292 MB, free: 18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004993/0.1572, allocations: 270.5 kB / 292.3 MB, free: 17.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009885/0.1582, allocations: 0.7325 MB / 293 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.585e-05/0.1583, allocations: 75.25 kB / 293.1 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.1584, allocations: 107.8 kB / 293.2 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.1595, allocations: 0.8648 MB / 294 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/0.1595, allocations: 8.469 kB / 294.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.1596, allocations: 39.72 kB / 294.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.1596, allocations: 24.97 kB / 294.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00064/0.1603, allocations: 356.9 kB / 294.5 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003628/0.1639, allocations: 3.948 MB / 298.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.1644, allocations: 277.1 kB / 298.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.1646, allocations: 87.59 kB / 298.8 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.1646, allocations: 10.25 kB / 298.8 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.1646, allocations: 47.91 kB / 298.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.1646, allocations: 0 / 298.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001391/0.166, allocations: 0.922 MB / 299.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.1661, allocations: 134 kB / 299.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008498/0.1669, allocations: 0.818 MB / 300.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.1669, allocations: 34.48 kB / 300.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003357/0.1673, allocations: 0.6694 MB / 301.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.526e-05/0.1674, allocations: 148.9 kB / 301.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.1675, allocations: 148.6 kB / 301.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.458e-05/0.1676, allocations: 0.5026 MB / 302.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.1677, allocations: 98.7 kB / 302.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.168, allocations: 0.6215 MB / 302.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004937/0.1685, allocations: 0.6517 MB / 303.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.1685, allocations: 3.406 kB / 303.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008008/0.1693, allocations: 0.6195 MB / 304.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1693, allocations: 10.31 kB / 304.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.1693, allocations: 10.91 kB / 304.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001584/0.1695, allocations: 41.98 kB / 304.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003415/0.1698, allocations: 165.9 kB / 304.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005939/0.1704, allocations: 1.743 MB / 306.2 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.1707, allocations: 42.05 kB / 306.2 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.1707, allocations: 37.58 kB / 306.2 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002302/0.1709, allocations: 224.5 kB / 306.4 MB, free: 9.723 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003088/0.1713, allocations: 0.6172 MB / 307.1 MB, free: 9.004 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004561/0.1717, allocations: 0.6607 MB / 307.7 MB, free: 8.363 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.691e-06/0.1717, allocations: 7.656 kB / 307.7 MB, free: 8.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006449/0.1724, allocations: 0.6171 MB / 308.4 MB, free: 8.164 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1724, allocations: 13.66 kB / 308.4 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1724, allocations: 11 kB / 308.4 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.814e-05/0.1725, allocations: 36.25 kB / 308.4 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.1727, allocations: 159.2 kB / 308.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004385/0.1732, allocations: 1.755 MB / 310.3 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.1734, allocations: 35.22 kB / 310.4 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.1734, allocations: 37.81 kB / 310.4 MB, free: 6.367 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0001173/0.1736, allocations: 322.9 kB / 310.7 MB, free: 6.074 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.942e-05/0.1737, allocations: 99.09 kB / 310.8 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003797/0.174, allocations: 317.3 kB / 311.1 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.174, allocations: 2.562 kB / 311.1 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.174, allocations: 5.188 kB / 311.1 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.174, allocations: 3.281 kB / 311.1 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.1752, allocations: 1.106 MB / 312.2 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1752, allocations: 3.844 kB / 312.2 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.1754, allocations: 73.83 kB / 312.3 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-05/0.1754, allocations: 34.27 kB / 312.3 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.1754, allocations: 10.44 kB / 312.4 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003785/0.1758, allocations: 1.734 MB / 314.1 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1758, allocations: 0 / 314.1 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004565/0.1763, allocations: 0.6023 MB / 314.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.1764, allocations: 117.7 kB / 314.8 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.1764, allocations: 15.69 kB / 314.8 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.1766, allocations: 15.06 kB / 314.8 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.1767, allocations: 29.06 kB / 314.9 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.1767, allocations: 17.66 kB / 314.9 MB, free: 2.945 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003621/0.177, allocations: 0.5006 MB / 315.4 MB, free: 2.738 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1771, allocations: 0 / 315.4 MB, free: 2.738 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000669/0.1777, allocations: 347.5 kB / 315.7 MB, free: 2.707 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.0001746/0.1779, allocations: 127.2 kB / 315.8 MB, free: 2.609 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008181/0.1787, allocations: 0.9084 MB / 316.8 MB, free: 2.148 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1787, allocations: 1.781 kB / 316.8 MB, free: 2.148 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.1789, allocations: 287.7 kB / 317 MB, free: 1.957 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.1795, allocations: 236.6 kB / 317.3 MB, free: 1.891 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.1815, allocations: 1.691 MB / 319 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.413e-05/0.1815, allocations: 171 kB / 319.1 MB, free: 456 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002571/0.1818, allocations: 127.7 kB / 319.2 MB, free: 356 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.003e-05/0.1819, allocations: 56.5 kB / 319.3 MB, free: 300 kB / 266.7 MB Notification: Performance of SimCode: time 1.252e-06/0.1819, allocations: 0 / 319.3 MB, free: 300 kB / 266.7 MB Notification: Performance of Templates: time 0.01418/0.1961, allocations: 10.62 MB / 329.9 MB, free: 6.18 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4608313748613]