Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001521/0.001521, 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.001128/0.001128, allocations: 161 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.03/1.03, allocations: 177.1 MB / 205 MB, free: 5.652 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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.62e-07/8.62e-07, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.469e-05/1.555e-05, allocations: 6.25 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007695/0.00771, allocations: 9.585 MB / 282.6 MB, free: 7.898 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004273/0.01198, allocations: 3.1 MB / 285.7 MB, free: 4.789 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007196/0.0127, allocations: 35.81 kB / 285.7 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.01388, allocations: 0.5703 MB / 286.3 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009501/0.01483, allocations: 0.6085 MB / 286.9 MB, free: 3.566 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.01532, allocations: 315.4 kB / 287.2 MB, free: 3.258 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.01685, allocations: 1.836 MB / 289 MB, free: 1.418 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005446/0.01739, allocations: 437.2 kB / 289.5 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.147/0.1644, allocations: 1.037 MB / 290.5 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.1657, allocations: 0.566 MB / 291.1 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003855/0.1661, allocations: 158.9 kB / 291.2 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00042/0.1665, allocations: 197.5 kB / 291.4 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001996/0.1667, allocations: 340.9 kB / 291.8 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006642/0.1674, allocations: 0.5645 MB / 292.3 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00157/0.169, allocations: 1.164 MB / 293.5 MB, free: 16.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.169, allocations: 4.344 kB / 293.5 MB, free: 16.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.169, allocations: 0 / 293.5 MB, free: 16.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.704e-05/0.169, allocations: 0.5625 kB / 293.5 MB, free: 16.43 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002156/0.1712, allocations: 1.861 MB / 295.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.1712, allocations: 9.281 kB / 295.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004975/0.1717, allocations: 297.9 kB / 295.7 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.1727, allocations: 0.7661 MB / 296.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.1728, allocations: 165.4 kB / 296.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.173, allocations: 120.2 kB / 296.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.1743, allocations: 1.366 MB / 298.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.1743, allocations: 8.594 kB / 298.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.927e-05/0.1744, allocations: 48.8 kB / 298.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.405e-05/0.1744, allocations: 25.66 kB / 298.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000801/0.1752, allocations: 424.7 kB / 298.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003616/0.1788, allocations: 3.332 MB / 301.9 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007449/0.1796, allocations: 408.5 kB / 302.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.1798, allocations: 141.7 kB / 302.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.1798, allocations: 12.91 kB / 302.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002884/0.1801, allocations: 237.8 kB / 302.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 1.663e-06/0.1801, allocations: 0 / 302.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002153/0.1823, allocations: 1.461 MB / 304.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.943e-05/0.1824, allocations: 476.4 kB / 304.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009078/0.1833, allocations: 0.947 MB / 305.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.1833, allocations: 43.52 kB / 305.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/0.1836, allocations: 0.7333 MB / 306.3 MB, free: 10 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1837, allocations: 248.2 kB / 306.6 MB, free: 9.812 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.1839, allocations: 200.7 kB / 306.8 MB, free: 9.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.255e-05/0.1839, allocations: 0.518 MB / 307.3 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.1841, allocations: 179.8 kB / 307.5 MB, free: 9.121 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004174/0.1845, allocations: 1.222 MB / 308.7 MB, free: 7.703 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005619/0.1851, allocations: 0.8791 MB / 309.6 MB, free: 6.902 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.1851, allocations: 3.188 kB / 309.6 MB, free: 6.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00104/0.1861, allocations: 1.002 MB / 310.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.1862, allocations: 61.12 kB / 310.6 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.1862, allocations: 16.75 kB / 310.6 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003696/0.1866, allocations: 149 kB / 310.8 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003494/0.1869, allocations: 207.6 kB / 311 MB, free: 6.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/0.1889, allocations: 4.361 MB / 315.3 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.1893, allocations: 61.02 kB / 315.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.1893, allocations: 45.47 kB / 315.5 MB, free: 2.379 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001915/0.1895, allocations: 231.4 kB / 315.7 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.1896, allocations: 140.2 kB / 315.8 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006023/0.1902, allocations: 0.5148 MB / 316.3 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1902, allocations: 6.344 kB / 316.3 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.1902, allocations: 0 / 316.3 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000535/0.1907, allocations: 0.7866 MB / 317.1 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001401/0.1921, allocations: 1.413 MB / 318.5 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1921, allocations: 3.562 kB / 318.5 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.1924, allocations: 102.7 kB / 318.6 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/0.1926, allocations: 119.7 kB / 318.8 MB, free: 300 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.1926, allocations: 19.27 kB / 318.8 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002184/0.1948, allocations: 4.169 MB / 322.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1948, allocations: 0 / 322.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008985/0.1957, allocations: 0.8277 MB / 323.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.1959, allocations: 159.2 kB / 323.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.467e-05/0.196, allocations: 23.98 kB / 323.9 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/0.1963, allocations: 35.98 kB / 324 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.824e-05/0.1964, allocations: 60.33 kB / 324 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.1964, allocations: 22.41 kB / 324.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005389/0.197, allocations: 0.568 MB / 324.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.197, allocations: 0 / 324.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007168/0.1977, allocations: 308 kB / 324.9 MB, free: 9.938 MB / 282.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,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001721/0.1979, allocations: 132.6 kB / 325.1 MB, free: 9.809 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009882/0.1988, allocations: 1.072 MB / 326.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1988, allocations: 4 kB / 326.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.1993, allocations: 0.5728 MB / 326.7 MB, free: 8.105 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.2, allocations: 299.9 kB / 327 MB, free: 7.844 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.2028, allocations: 2.063 MB / 329.1 MB, free: 5.746 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.203, allocations: 209.7 kB / 329.3 MB, free: 5.516 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002953/0.2033, allocations: 128.6 kB / 329.4 MB, free: 5.387 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.2034, allocations: 68.5 kB / 329.5 MB, free: 5.32 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2034, allocations: 0 / 329.5 MB, free: 5.32 MB / 282.7 MB Notification: Performance of Templates: time 0.01946/0.2228, allocations: 17.23 MB / 346.7 MB, free: 4.512 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.686713976785541]