Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9946/0.9946, allocations: 173.4 MB / 201.2 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 3.938 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.595e-05, allocations: 6.25 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008214/0.00824, allocations: 8.093 MB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0046/0.01284, allocations: 2.657 MB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008359/0.01368, allocations: 31.81 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.01508, allocations: 0.5121 MB / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.01618, allocations: 484.2 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006767/0.01685, allocations: 367.4 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001507/0.01836, allocations: 1.565 MB / 281.7 MB, free: 8.656 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005991/0.01896, allocations: 384 kB / 282.1 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001195/0.02015, allocations: 0.8612 MB / 282.9 MB, free: 7.398 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000952/0.02111, allocations: 470.5 kB / 283.4 MB, free: 6.938 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002068/0.02131, allocations: 144 kB / 283.5 MB, free: 6.797 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000302/0.02162, allocations: 175.9 kB / 283.7 MB, free: 6.625 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.02177, allocations: 294.8 kB / 284 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004398/0.02221, allocations: 462.8 kB / 284.4 MB, free: 5.883 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.02343, allocations: 0.9494 MB / 285.4 MB, free: 4.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.02344, allocations: 4 kB / 285.4 MB, free: 4.926 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.02344, allocations: 0 / 285.4 MB, free: 4.926 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.568e-05/0.02348, allocations: 0 / 285.4 MB, free: 4.926 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.002065/0.02554, allocations: 1.569 MB / 287 MB, free: 3.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.02558, allocations: 12.86 kB / 287 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005017/0.02608, allocations: 272 kB / 287.2 MB, free: 3.039 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.02717, allocations: 0.7396 MB / 288 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.611e-05/0.02721, allocations: 74.38 kB / 288.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.02733, allocations: 104.3 kB / 288.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009856/0.02832, allocations: 0.8288 MB / 289 MB, free: 1.191 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.02834, allocations: 3.984 kB / 289 MB, free: 1.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.475e-05/0.0284, allocations: 48 kB / 289 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/0.02842, allocations: 24 kB / 289.1 MB, free: 1.117 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005765/0.029, allocations: 351.6 kB / 289.4 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.136/0.165, allocations: 3.944 MB / 293.4 MB, free: 25.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006448/0.1656, allocations: 275.5 kB / 293.6 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.1658, allocations: 89.98 kB / 293.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.1658, allocations: 7.031 kB / 293.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.1659, allocations: 40.55 kB / 293.8 MB, free: 25.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 5.651e-06/0.1659, allocations: 2.484 kB / 293.8 MB, free: 25.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001599/0.1675, allocations: 0.927 MB / 294.7 MB, free: 25.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.1675, allocations: 108.2 kB / 294.8 MB, free: 25.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000935/0.1684, allocations: 0.8187 MB / 295.6 MB, free: 25.12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.1685, allocations: 31.44 kB / 295.6 MB, free: 25.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00034/0.1688, allocations: 0.6646 MB / 296.3 MB, free: 24.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.766e-05/0.1689, allocations: 154.8 kB / 296.5 MB, free: 24.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.1691, allocations: 146.4 kB / 296.6 MB, free: 24.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.945e-05/0.1691, allocations: 0.4992 MB / 297.1 MB, free: 24.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.1693, allocations: 93.77 kB / 297.2 MB, free: 24.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.1696, allocations: 0.5915 MB / 297.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.1701, allocations: 0.6639 MB / 298.4 MB, free: 22.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1701, allocations: 3.062 kB / 298.4 MB, free: 22.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008025/0.1709, allocations: 0.6331 MB / 299.1 MB, free: 22.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.171, allocations: 9.719 kB / 299.1 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.171, allocations: 10.28 kB / 299.1 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000152/0.1711, allocations: 33.05 kB / 299.1 MB, free: 22.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/0.1715, allocations: 169.6 kB / 299.3 MB, free: 22.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00072/0.1722, allocations: 1.748 MB / 301 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.1726, allocations: 37.48 kB / 301.1 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/0.1726, allocations: 33.88 kB / 301.1 MB, free: 21.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002876/0.1729, allocations: 223.4 kB / 301.3 MB, free: 20.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002996/0.1732, allocations: 0.5863 MB / 301.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004639/0.1737, allocations: 0.6516 MB / 302.6 MB, free: 19.78 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.75e-06/0.1737, allocations: 3.656 kB / 302.6 MB, free: 19.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0007401/0.1744, allocations: 0.6226 MB / 303.2 MB, free: 19.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1744, allocations: 10.95 kB / 303.2 MB, free: 19.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.1744, allocations: 10.88 kB / 303.2 MB, free: 19.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.957e-05/0.1745, allocations: 35.52 kB / 303.3 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003419/0.1749, allocations: 166.6 kB / 303.4 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005096/0.1754, allocations: 1.744 MB / 305.2 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.1757, allocations: 37.11 kB / 305.2 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.1758, allocations: 33.91 kB / 305.2 MB, free: 17.75 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.0001415/0.1759, allocations: 326.2 kB / 305.6 MB, free: 17.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/0.176, allocations: 104.4 kB / 305.7 MB, free: 17.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004321/0.1764, allocations: 308.9 kB / 306 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.1764, allocations: 4.062 kB / 306 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1764, allocations: 2.078 kB / 306 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1764, allocations: 1.969 kB / 306 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.1779, allocations: 1.117 MB / 307.1 MB, free: 16.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.1779, allocations: 10.05 kB / 307.1 MB, free: 16.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.1781, allocations: 70.08 kB / 307.2 MB, free: 16.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-05/0.1782, allocations: 29.16 kB / 307.2 MB, free: 16.55 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.1782, allocations: 10.14 kB / 307.2 MB, free: 16.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004626/0.1787, allocations: 1.736 MB / 308.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1787, allocations: 6.281 kB / 308.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005512/0.1793, allocations: 0.6019 MB / 309.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.1794, allocations: 126 kB / 309.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/0.1795, allocations: 10.25 kB / 309.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.1797, allocations: 20.84 kB / 309.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.1797, allocations: 32.36 kB / 309.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1797, allocations: 10.44 kB / 309.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004858/0.1802, allocations: 0.5057 MB / 310.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1802, allocations: 0 / 310.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009912/0.1812, allocations: 345.8 kB / 310.6 MB, free: 14.02 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.0001889/0.1814, allocations: 124.1 kB / 310.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009676/0.1824, allocations: 0.9026 MB / 311.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1824, allocations: 0 / 311.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.1826, allocations: 295.5 kB / 311.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000677/0.1832, allocations: 237.7 kB / 312.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.1855, allocations: 1.699 MB / 313.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.1856, allocations: 174.2 kB / 314 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002988/0.1859, allocations: 118.8 kB / 314.1 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.569e-05/0.186, allocations: 64.42 kB / 314.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.186, allocations: 0 / 314.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of Templates: time 0.0138/0.1998, allocations: 10.56 MB / 324.7 MB, free: 3.102 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.2895201933570206]