Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001033/0.001033, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.001101/0.001101, allocations: 151.5 kB / 25.6 MB, free: 8.918 MB / 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.9261/0.9261, allocations: 173.4 MB / 202.2 MB, free: 8.305 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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.163e-06/1.163e-06, allocations: 0 / 269.2 MB, free: 9.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.042e-05/1.158e-05, allocations: 2.312 kB / 269.2 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007013/0.007024, allocations: 9.334 MB / 278.6 MB, free: 384 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.0102, allocations: 3.059 MB / 281.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004314/0.01063, allocations: 27.88 kB / 281.6 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009415/0.01157, allocations: 0.5626 MB / 282.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007453/0.01232, allocations: 0.6161 MB / 282.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003881/0.0127, allocations: 319.4 kB / 283.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.01396, allocations: 1.831 MB / 285 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004594/0.01442, allocations: 433.3 kB / 285.4 MB, free: 9.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008335/0.01526, allocations: 1.048 MB / 286.4 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005672/0.01582, allocations: 0.557 MB / 287 MB, free: 7.891 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.01596, allocations: 156 kB / 287.1 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.01618, allocations: 200 kB / 287.3 MB, free: 7.543 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.01635, allocations: 334.7 kB / 287.7 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004011/0.01675, allocations: 0.569 MB / 288.2 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002291/0.01904, allocations: 1.156 MB / 289.4 MB, free: 5.484 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.01905, allocations: 0 / 289.4 MB, free: 5.484 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.01905, allocations: 0 / 289.4 MB, free: 5.484 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.339e-05/0.01909, allocations: 0 / 289.4 MB, free: 5.484 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.002016/0.02111, allocations: 1.87 MB / 291.3 MB, free: 3.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.02114, allocations: 12.03 kB / 291.3 MB, free: 3.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004385/0.02158, allocations: 287.9 kB / 291.6 MB, free: 3.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008292/0.02241, allocations: 0.7295 MB / 292.3 MB, free: 2.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.02252, allocations: 167.8 kB / 292.5 MB, free: 2.316 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.02263, allocations: 116.3 kB / 292.6 MB, free: 2.203 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.02377, allocations: 1.297 MB / 293.9 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/0.0238, allocations: 7.922 kB / 293.9 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.02386, allocations: 52 kB / 293.9 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.02388, allocations: 28 kB / 293.9 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.02432, allocations: 337.6 kB / 294.3 MB, free: 276 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003482/0.02781, allocations: 3.363 MB / 297.6 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006945/0.0285, allocations: 376.9 kB / 298 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.02865, allocations: 126.1 kB / 298.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.02868, allocations: 16.5 kB / 298.1 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.02892, allocations: 221.5 kB / 298.4 MB, free: 12 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 2.765e-06/0.02893, allocations: 0 / 298.4 MB, free: 12 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.001946/0.03087, allocations: 1.193 MB / 299.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.03102, allocations: 483.3 kB / 300 MB, free: 10.19 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006929/0.03171, allocations: 0.9224 MB / 301 MB, free: 9.242 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.03175, allocations: 45.7 kB / 301 MB, free: 9.191 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003786/0.03213, allocations: 0.7402 MB / 301.7 MB, free: 8.441 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.03227, allocations: 238 kB / 302 MB, free: 8.207 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.03245, allocations: 204.4 kB / 302.2 MB, free: 8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.03258, allocations: 0.5159 MB / 302.7 MB, free: 7.477 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.03274, allocations: 153.9 kB / 302.8 MB, free: 7.312 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/0.03329, allocations: 1.204 MB / 304 MB, free: 5.711 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005911/0.03388, allocations: 0.8308 MB / 304.9 MB, free: 4.645 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.03389, allocations: 4 kB / 304.9 MB, free: 4.641 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0009398/0.03483, allocations: 0.9246 MB / 305.8 MB, free: 3.676 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.03488, allocations: 71.39 kB / 305.9 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.0349, allocations: 8 kB / 305.9 MB, free: 3.586 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003305/0.03523, allocations: 155.3 kB / 306 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003694/0.0356, allocations: 203.7 kB / 306.2 MB, free: 3.227 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.03821, allocations: 4.285 MB / 310.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.03872, allocations: 63.86 kB / 310.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.03876, allocations: 40 kB / 310.6 MB, free: 14.62 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.0002419/0.039, allocations: 228.6 kB / 310.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.03912, allocations: 143.2 kB / 311 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005828/0.0397, allocations: 479.3 kB / 311.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.03971, allocations: 11.88 kB / 311.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.03971, allocations: 0 / 311.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005209/0.04023, allocations: 0.7458 MB / 312.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.04161, allocations: 1.226 MB / 313.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.04161, allocations: 4.219 kB / 313.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.04187, allocations: 103.9 kB / 313.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002369/0.0421, allocations: 107.3 kB / 313.6 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.04213, allocations: 20 kB / 313.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002107/0.04424, allocations: 4.097 MB / 317.8 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.04424, allocations: 7.938 kB / 317.8 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007267/0.04497, allocations: 0.7658 MB / 318.5 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/0.0452, allocations: 167.1 kB / 318.7 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.875e-05/0.04528, allocations: 20 kB / 318.7 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002882/0.04557, allocations: 27.98 kB / 318.7 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.228e-05/0.04566, allocations: 56.33 kB / 318.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.04568, allocations: 16 kB / 318.8 MB, free: 5.918 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003701/0.04605, allocations: 0.5249 MB / 319.3 MB, free: 5.383 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.04605, allocations: 0 / 319.3 MB, free: 5.383 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008599/0.04691, allocations: 304 kB / 319.6 MB, free: 5.086 MB / 298.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.0002438/0.04715, allocations: 143 kB / 319.8 MB, free: 4.938 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00098/0.04813, allocations: 1.029 MB / 320.8 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.04814, allocations: 0 / 320.8 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004089/0.04855, allocations: 0.5653 MB / 321.4 MB, free: 3.234 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009911/0.04954, allocations: 304 kB / 321.7 MB, free: 2.938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.05236, allocations: 2.046 MB / 323.7 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001464/0.05251, allocations: 201.7 kB / 323.9 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003381/0.05284, allocations: 132.6 kB / 324 MB, free: 484 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005413/0.05339, allocations: 413.9 kB / 324.4 MB, free: 68 kB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.05339, allocations: 0 / 324.4 MB, free: 68 kB / 298.7 MB Notification: Performance of Templates: time 0.02533/0.07872, allocations: 18.76 MB / 343.2 MB, free: 13.64 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.615655410569161]