Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001238/0.001238, allocations: 88.25 kB / 22.22 MB, free: 2.281 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.0009517/0.0009517, allocations: 166.9 kB / 25.61 MB, free: 8.898 MB / 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 0.9739/0.9739, allocations: 177 MB / 205.9 MB, free: 4.441 MB / 186.7 MB " [Timeout remaining time 179] 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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 274.1 MB, free: 4.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.438e-05, allocations: 3.5 kB / 274.1 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007785/0.007809, allocations: 9.359 MB / 283.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004705/0.01251, allocations: 3.073 MB / 286.6 MB, free: 7.773 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009569/0.01347, allocations: 31.88 kB / 286.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.015, allocations: 0.5703 MB / 287.2 MB, free: 7.168 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.01621, allocations: 0.6162 MB / 287.8 MB, free: 6.547 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005744/0.01678, allocations: 315.5 kB / 288.1 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001806/0.01859, allocations: 1.832 MB / 289.9 MB, free: 4.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006024/0.01919, allocations: 433.2 kB / 290.4 MB, free: 3.953 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001436/0.02063, allocations: 1.052 MB / 291.4 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008669/0.02149, allocations: 0.5609 MB / 292 MB, free: 2.336 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000218/0.02171, allocations: 156 kB / 292.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003071/0.02202, allocations: 196 kB / 292.3 MB, free: 1.992 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.0222, allocations: 334.7 kB / 292.6 MB, free: 1.664 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005363/0.02274, allocations: 0.5651 MB / 293.2 MB, free: 1.098 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001498/0.02423, allocations: 1.152 MB / 294.4 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.02424, allocations: 0 / 294.4 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02424, allocations: 0 / 294.4 MB, free: 15.94 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.471e-05/0.02428, allocations: 0 / 294.4 MB, free: 15.94 MB / 282.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.002055/0.02633, allocations: 1.882 MB / 296.2 MB, free: 14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.02636, allocations: 8.031 kB / 296.2 MB, free: 13.99 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004328/0.0268, allocations: 295.9 kB / 296.5 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008014/0.0276, allocations: 0.7179 MB / 297.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.02771, allocations: 171.8 kB / 297.4 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.02782, allocations: 124.3 kB / 297.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000978/0.0288, allocations: 1.301 MB / 298.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.02883, allocations: 7.938 kB / 298.9 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.777e-05/0.02889, allocations: 48 kB / 298.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.0289, allocations: 24 kB / 298.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004288/0.02933, allocations: 341.6 kB / 299.3 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00353/0.03286, allocations: 3.359 MB / 302.6 MB, free: 7.195 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00065/0.03351, allocations: 390.4 kB / 303 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.03365, allocations: 129.5 kB / 303.1 MB, free: 6.676 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.03368, allocations: 8.5 kB / 303.1 MB, free: 6.668 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.03392, allocations: 221.5 kB / 303.3 MB, free: 6.43 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 2.676e-06/0.03392, allocations: 0 / 303.3 MB, free: 6.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.001839/0.03576, allocations: 1.2 MB / 304.5 MB, free: 5.188 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.03589, allocations: 475.3 kB / 305 MB, free: 4.613 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006506/0.03654, allocations: 0.9224 MB / 305.9 MB, free: 3.668 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.03658, allocations: 41.7 kB / 306 MB, free: 3.621 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.03694, allocations: 0.7441 MB / 306.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.03706, allocations: 238 kB / 307 MB, free: 2.633 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.03724, allocations: 208.3 kB / 307.2 MB, free: 2.422 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.03737, allocations: 0.5159 MB / 307.7 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.03751, allocations: 157.9 kB / 307.8 MB, free: 1.73 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007654/0.03828, allocations: 1.201 MB / 309 MB, free: 136 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000545/0.03883, allocations: 0.8347 MB / 309.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.03883, allocations: 7.938 kB / 309.9 MB, free: 15.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0009007/0.03973, allocations: 0.9203 MB / 310.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.03977, allocations: 67.41 kB / 310.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.03979, allocations: 12 kB / 310.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000316/0.0401, allocations: 150.3 kB / 311 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003559/0.04046, allocations: 199.7 kB / 311.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.04317, allocations: 4.29 MB / 315.5 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.04362, allocations: 64 kB / 315.6 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.052e-05/0.04366, allocations: 39.98 kB / 315.6 MB, free: 9.055 MB / 298.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.0002233/0.04388, allocations: 232.3 kB / 315.8 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.04399, allocations: 131.3 kB / 316 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006254/0.04462, allocations: 487.2 kB / 316.4 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.04463, allocations: 11.94 kB / 316.4 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.04463, allocations: 0 / 316.4 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005459/0.04517, allocations: 0.738 MB / 317.2 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001437/0.04661, allocations: 1.226 MB / 318.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.04661, allocations: 0 / 318.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.04687, allocations: 103.9 kB / 318.5 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002366/0.0471, allocations: 115.4 kB / 318.6 MB, free: 5.809 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.04713, allocations: 12 kB / 318.6 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/0.04951, allocations: 4.101 MB / 322.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.04951, allocations: 11.97 kB / 322.7 MB, free: 1.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000699/0.05021, allocations: 0.754 MB / 323.5 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002277/0.05044, allocations: 179 kB / 323.7 MB, free: 488 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.997e-05/0.05052, allocations: 20 kB / 323.7 MB, free: 468 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.0508, allocations: 31.97 kB / 323.7 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.172e-05/0.05088, allocations: 52.41 kB / 323.8 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.0509, allocations: 23.98 kB / 323.8 MB, free: 360 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003726/0.05128, allocations: 0.5171 MB / 324.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.05128, allocations: 0 / 324.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007702/0.05205, allocations: 307.9 kB / 324.6 MB, free: 15.52 MB / 314.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.0002299/0.05228, allocations: 143 kB / 324.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.05332, allocations: 1.029 MB / 325.8 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.05332, allocations: 4 kB / 325.8 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004309/0.05375, allocations: 0.5581 MB / 326.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007558/0.05451, allocations: 293 kB / 326.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.05728, allocations: 2.044 MB / 328.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.05743, allocations: 205.7 kB / 328.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006234/0.05805, allocations: 136.6 kB / 329 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005302/0.05858, allocations: 413.9 kB / 329.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of SimCode: time 1.754e-06/0.05858, allocations: 0 / 329.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of Templates: time 0.02291/0.08149, allocations: 18.81 MB / 348.2 MB, free: 8.023 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 4.805671879090369]