Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009588/0.0009588, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001024/0.001024, allocations: 158.9 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9473/0.9473, allocations: 158.6 MB / 187.5 MB, free: 2.949 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 251.1 MB, free: 7.777 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.715e-05/2.907e-05, allocations: 2.312 kB / 251.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01017/0.0102, allocations: 9.49 MB / 260.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005653/0.01585, allocations: 3.058 MB / 263.7 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.01692, allocations: 27.88 kB / 263.7 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.01849, allocations: 0.5625 MB / 264.3 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001427/0.01992, allocations: 0.6201 MB / 264.9 MB, free: 9.941 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006536/0.02057, allocations: 319.4 kB / 265.2 MB, free: 9.629 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00202/0.02259, allocations: 1.839 MB / 267 MB, free: 7.781 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007592/0.02335, allocations: 425.3 kB / 267.5 MB, free: 7.344 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001366/0.02472, allocations: 1.033 MB / 268.5 MB, free: 6.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007878/0.0255, allocations: 0.5687 MB / 269.1 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.02571, allocations: 160 kB / 269.2 MB, free: 5.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003667/0.02608, allocations: 196 kB / 269.4 MB, free: 5.391 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002297/0.02631, allocations: 342.7 kB / 269.7 MB, free: 5.055 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008267/0.02714, allocations: 0.569 MB / 270.3 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.02852, allocations: 1.164 MB / 271.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.02852, allocations: 4 kB / 271.5 MB, free: 3.312 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.02853, allocations: 0 / 271.5 MB, free: 3.312 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.02855, allocations: 0 / 271.5 MB, free: 3.312 MB / 250.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.002525/0.03108, allocations: 1.867 MB / 273.3 MB, free: 1.387 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.03113, allocations: 19.97 kB / 273.4 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005945/0.03172, allocations: 287.9 kB / 273.6 MB, free: 1.086 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.03292, allocations: 0.7629 MB / 274.4 MB, free: 296 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/0.03307, allocations: 163.8 kB / 274.6 MB, free: 112 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.03323, allocations: 120.3 kB / 274.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.0348, allocations: 1.359 MB / 276 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.03483, allocations: 11.94 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.381e-05/0.03492, allocations: 48 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.03494, allocations: 24 kB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000888/0.03583, allocations: 431.6 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004579/0.04041, allocations: 3.329 MB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.04142, allocations: 412.3 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.04169, allocations: 145.5 kB / 280.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.04173, allocations: 16.48 kB / 280.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003718/0.0421, allocations: 237.6 kB / 280.7 MB, free: 9.602 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 4.248e-06/0.04211, allocations: 3.984 kB / 280.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002889/0.045, allocations: 1.449 MB / 282.1 MB, free: 8.105 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.04516, allocations: 479.3 kB / 282.6 MB, free: 7.527 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.04624, allocations: 0.9541 MB / 283.5 MB, free: 6.551 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.04628, allocations: 37.7 kB / 283.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006679/0.04695, allocations: 0.7364 MB / 284.3 MB, free: 5.762 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.04708, allocations: 242 kB / 284.6 MB, free: 5.523 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.04725, allocations: 200.5 kB / 284.7 MB, free: 5.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.04737, allocations: 0.5082 MB / 285.3 MB, free: 4.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.04761, allocations: 181.9 kB / 285.4 MB, free: 4.613 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006027/0.04821, allocations: 1.228 MB / 286.7 MB, free: 2.988 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006988/0.04891, allocations: 0.8739 MB / 287.5 MB, free: 1.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.04892, allocations: 4 kB / 287.5 MB, free: 1.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001105/0.05002, allocations: 1.003 MB / 288.5 MB, free: 0.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.725e-05/0.05007, allocations: 71.39 kB / 288.6 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.05008, allocations: 12 kB / 288.6 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000395/0.05048, allocations: 159.2 kB / 288.8 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.05084, allocations: 195.7 kB / 289 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002836/0.05368, allocations: 4.365 MB / 293.3 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004822/0.05416, allocations: 59.98 kB / 293.4 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.05421, allocations: 48 kB / 293.4 MB, free: 11.68 MB / 282.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.000258/0.05446, allocations: 228.4 kB / 293.7 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.05458, allocations: 143.2 kB / 293.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006858/0.05526, allocations: 0.5148 MB / 294.3 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.05527, allocations: 8 kB / 294.3 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.05527, allocations: 0 / 294.3 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006177/0.05589, allocations: 0.781 MB / 295.1 MB, free: 9.863 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/0.05748, allocations: 1.407 MB / 296.5 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.05748, allocations: 0 / 296.5 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.05774, allocations: 108.1 kB / 296.6 MB, free: 8.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.05799, allocations: 115.2 kB / 296.7 MB, free: 8.148 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.05802, allocations: 15.98 kB / 296.7 MB, free: 8.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/0.06053, allocations: 4.173 MB / 300.9 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.06053, allocations: 0 / 300.9 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008827/0.06142, allocations: 0.8321 MB / 301.8 MB, free: 2.836 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.06167, allocations: 163.2 kB / 301.9 MB, free: 2.676 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.797e-05/0.06175, allocations: 24.05 kB / 301.9 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.06203, allocations: 27.98 kB / 302 MB, free: 2.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.06214, allocations: 60.33 kB / 302 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.06216, allocations: 16 kB / 302 MB, free: 2.551 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005533/0.06272, allocations: 0.5719 MB / 302.6 MB, free: 1.969 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.06272, allocations: 0 / 302.6 MB, free: 1.969 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007964/0.06351, allocations: 308 kB / 302.9 MB, free: 1.668 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.0002144/0.06373, allocations: 131.1 kB / 303 MB, free: 1.527 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.06493, allocations: 1.091 MB / 304.1 MB, free: 376 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.06493, allocations: 4.188 kB / 304.1 MB, free: 372 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007682/0.0657, allocations: 0.5656 MB / 304.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.06647, allocations: 294.3 kB / 305 MB, free: 15.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.06916, allocations: 2.057 MB / 307 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.06932, allocations: 205.7 kB / 307.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003092/0.06963, allocations: 128.6 kB / 307.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.06975, allocations: 72.5 kB / 307.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.06975, allocations: 0 / 307.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of Templates: time 0.02059/0.09034, allocations: 17.19 MB / 324.6 MB, free: 11.73 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.699057933874428]