Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002071/0.002071, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002234/0.002234, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 177 MB / 204.5 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] 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(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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.242e-05/3.463e-05, allocations: 6.312 kB / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01757/0.0176, allocations: 7.269 MB / 279.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008579/0.02618, allocations: 2.567 MB / 282.1 MB, free: 7.906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001543/0.02773, allocations: 35.81 kB / 282.1 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002714/0.03044, allocations: 0.5121 MB / 282.6 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002251/0.03269, allocations: 484.2 kB / 283.1 MB, free: 6.879 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001362/0.03405, allocations: 363.4 kB / 283.4 MB, free: 6.523 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003286/0.03734, allocations: 1.557 MB / 285 MB, free: 4.965 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.03855, allocations: 399.9 kB / 285.4 MB, free: 4.547 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002075/0.04062, allocations: 0.8495 MB / 286.2 MB, free: 3.695 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007829/0.04141, allocations: 446.5 kB / 286.7 MB, free: 3.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.0416, allocations: 140 kB / 286.8 MB, free: 3.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003515/0.04196, allocations: 175.9 kB / 287 MB, free: 2.949 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.04224, allocations: 298.8 kB / 287.3 MB, free: 2.656 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005426/0.04278, allocations: 450.8 kB / 287.7 MB, free: 2.215 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002151/0.04493, allocations: 1.725 MB / 289.4 MB, free: 496 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.04494, allocations: 4 kB / 289.4 MB, free: 492 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.04494, allocations: 0 / 289.4 MB, free: 492 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.04495, allocations: 0 / 289.4 MB, free: 492 kB / 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.1084/0.1533, allocations: 1.45 MB / 290.9 MB, free: 28.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1534, allocations: 13.33 kB / 290.9 MB, free: 28.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007393/0.1541, allocations: 272.2 kB / 291.2 MB, free: 28.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.1554, allocations: 0.749 MB / 291.9 MB, free: 28.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.729e-05/0.1555, allocations: 69.41 kB / 292 MB, free: 28.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.1556, allocations: 108.4 kB / 292.1 MB, free: 28.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.1571, allocations: 1.059 MB / 293.1 MB, free: 27.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.1572, allocations: 7.016 kB / 293.2 MB, free: 27.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.467e-05/0.1573, allocations: 43.84 kB / 293.2 MB, free: 27.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.1573, allocations: 27.75 kB / 293.2 MB, free: 27.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.1584, allocations: 0.6326 MB / 293.9 MB, free: 27.53 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004308/0.1627, allocations: 3.614 MB / 297.5 MB, free: 25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009731/0.1637, allocations: 411.4 kB / 297.9 MB, free: 24.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002905/0.164, allocations: 153.5 kB / 298 MB, free: 24.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.164, allocations: 8.016 kB / 298 MB, free: 24.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.164, allocations: 47.73 kB / 298.1 MB, free: 24.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.953e-06/0.164, allocations: 1.219 kB / 298.1 MB, free: 24.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002343/0.1664, allocations: 1.183 MB / 299.3 MB, free: 24.06 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.1664, allocations: 137.6 kB / 299.4 MB, free: 23.9 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.1674, allocations: 0.8276 MB / 300.2 MB, free: 23.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.1675, allocations: 35.11 kB / 300.3 MB, free: 23.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003169/0.1678, allocations: 0.6122 MB / 300.9 MB, free: 23.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.943e-05/0.1679, allocations: 154.4 kB / 301 MB, free: 22.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.168, allocations: 136.4 kB / 301.1 MB, free: 22.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.1681, allocations: 337.7 kB / 301.5 MB, free: 22.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.1684, allocations: 176.5 kB / 301.7 MB, free: 22.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.1688, allocations: 0.5653 MB / 302.2 MB, free: 21.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000724/0.1696, allocations: 0.6841 MB / 302.9 MB, free: 21.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.1696, allocations: 1.906 kB / 302.9 MB, free: 21.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001179/0.1707, allocations: 0.7763 MB / 303.7 MB, free: 20.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1708, allocations: 9.625 kB / 303.7 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.1708, allocations: 13.72 kB / 303.7 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.1709, allocations: 31.56 kB / 303.7 MB, free: 20.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.1715, allocations: 174.8 kB / 303.9 MB, free: 20.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007423/0.1723, allocations: 1.266 MB / 305.2 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005923/0.1728, allocations: 40.8 kB / 305.2 MB, free: 19.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.764e-05/0.1729, allocations: 33.53 kB / 305.2 MB, free: 19.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005047/0.1734, allocations: 349.7 kB / 305.6 MB, free: 19.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004046/0.1738, allocations: 0.5506 MB / 306.1 MB, free: 18.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006364/0.1744, allocations: 0.6656 MB / 306.8 MB, free: 18.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.402e-06/0.1744, allocations: 3.594 kB / 306.8 MB, free: 18.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001026/0.1755, allocations: 0.7652 MB / 307.6 MB, free: 17.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.1755, allocations: 7.594 kB / 307.6 MB, free: 17.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1755, allocations: 15.41 kB / 307.6 MB, free: 17.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-05/0.1756, allocations: 33.77 kB / 307.6 MB, free: 17.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004712/0.1761, allocations: 170.5 kB / 307.8 MB, free: 17.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005507/0.1766, allocations: 1.261 MB / 309.1 MB, free: 16.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005204/0.1771, allocations: 35.7 kB / 309.1 MB, free: 16.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.1772, allocations: 36 kB / 309.1 MB, free: 16.39 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.0001353/0.1773, allocations: 231.9 kB / 309.3 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.1774, allocations: 107.6 kB / 309.5 MB, free: 16.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006892/0.1781, allocations: 424.3 kB / 309.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-06/0.1781, allocations: 4 kB / 309.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1781, allocations: 3.938 kB / 309.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1781, allocations: 0 / 309.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.1797, allocations: 1.142 MB / 311 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1797, allocations: 0 / 311 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.18, allocations: 79.89 kB / 311.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.802e-05/0.1801, allocations: 20.8 kB / 311.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.1801, allocations: 12 kB / 311.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005364/0.1806, allocations: 1.248 MB / 312.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1806, allocations: 4.031 kB / 312.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008568/0.1815, allocations: 0.7189 MB / 313.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.1817, allocations: 122.6 kB / 313.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.302e-05/0.1818, allocations: 20 kB / 313.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003957/0.1822, allocations: 15.98 kB / 313.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.264e-05/0.1823, allocations: 31.94 kB / 313.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.1823, allocations: 16 kB / 313.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000552/0.1828, allocations: 0.5535 MB / 313.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1828, allocations: 0 / 313.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001056/0.1839, allocations: 344 kB / 314.2 MB, free: 11.14 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.0001796/0.1841, allocations: 136.9 kB / 314.3 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.1853, allocations: 0.9217 MB / 315.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1853, allocations: 4 kB / 315.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003334/0.1857, allocations: 283.9 kB / 315.5 MB, free: 9.766 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.1867, allocations: 239.5 kB / 315.8 MB, free: 9.555 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.1888, allocations: 1.738 MB / 317.5 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.1891, allocations: 435.4 kB / 317.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004005/0.1895, allocations: 118.9 kB / 318 MB, free: 7.184 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1897, allocations: 56.5 kB / 318.1 MB, free: 7.129 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1897, allocations: 0 / 318.1 MB, free: 7.129 MB / 266.7 MB Notification: Performance of Templates: time 0.01798/0.2076, allocations: 10.54 MB / 328.6 MB, free: 12.85 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.907878622994758]