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.001333/0.001333, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002258/0.003592, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.00123/0.00123, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001106/0.002336, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9248/0.9248, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08703/1.012, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.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.352e-06/1.352e-06, allocations: 0 / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.456e-06/9.808e-06, allocations: 2.875 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007536/0.007546, allocations: 9.45 MB / 249 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003577/0.01112, allocations: 3.181 MB / 252.2 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003957/0.01152, allocations: 27.88 kB / 252.2 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008678/0.01239, allocations: 0.5898 MB / 252.8 MB, free: 5.848 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007143/0.0131, allocations: 0.62 MB / 253.4 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004289/0.01353, allocations: 315.4 kB / 253.7 MB, free: 4.914 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.01489, allocations: 1.84 MB / 255.6 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006258/0.01552, allocations: 433.3 kB / 256 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.017, allocations: 1.22 MB / 257.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006581/0.01766, allocations: 0.5609 MB / 257.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.01783, allocations: 164 kB / 257.9 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003202/0.01816, allocations: 196 kB / 258.1 MB, free: 464 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.01836, allocations: 251.1 kB / 258.4 MB, free: 212 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003645/0.01873, allocations: 479.2 kB / 258.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008356/0.01956, allocations: 1.082 MB / 259.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25e-05/0.01958, allocations: 3.938 kB / 259.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.01958, allocations: 0 / 259.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.0196, allocations: 0 / 259.9 MB, free: 14.65 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.001819/0.02141, allocations: 2.015 MB / 262 MB, free: 12.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.719e-05/0.02144, allocations: 12.03 kB / 262 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.02178, allocations: 325.7 kB / 262.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006295/0.02241, allocations: 0.5748 MB / 262.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.611e-05/0.02251, allocations: 167.8 kB / 263 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.299e-05/0.0226, allocations: 120.3 kB / 263.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007991/0.0234, allocations: 1.265 MB / 264.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.02342, allocations: 11.89 kB / 264.4 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.716e-05/0.02347, allocations: 44 kB / 264.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.02349, allocations: 28 kB / 264.5 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003452/0.02383, allocations: 297.8 kB / 264.8 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.02653, allocations: 2.686 MB / 267.5 MB, free: 6.668 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000535/0.02707, allocations: 354.1 kB / 267.8 MB, free: 6.312 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.02718, allocations: 106.8 kB / 267.9 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.02722, allocations: 16.42 kB / 267.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.02743, allocations: 211.9 kB / 268.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 1.643e-06/0.02743, allocations: 0 / 268.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.001553/0.02899, allocations: 1.098 MB / 269.2 MB, free: 4.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.02902, allocations: 67.98 kB / 269.3 MB, free: 4.754 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000569/0.02959, allocations: 0.8383 MB / 270.1 MB, free: 3.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.02963, allocations: 41.7 kB / 270.2 MB, free: 3.848 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.02986, allocations: 0.5519 MB / 270.7 MB, free: 3.289 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.02997, allocations: 242 kB / 271 MB, free: 3.051 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.03012, allocations: 202.7 kB / 271.2 MB, free: 2.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.805e-05/0.03021, allocations: 349.9 kB / 271.5 MB, free: 2.496 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.03033, allocations: 142 kB / 271.6 MB, free: 2.348 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004139/0.03075, allocations: 1.005 MB / 272.7 MB, free: 1.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004501/0.0312, allocations: 0.6988 MB / 273.3 MB, free: 152 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.0312, allocations: 11.94 kB / 273.4 MB, free: 140 kB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.000831/0.03203, allocations: 0.7589 MB / 274.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-05/0.03207, allocations: 64.16 kB / 274.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.03209, allocations: 15.98 kB / 274.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002817/0.03237, allocations: 125.5 kB / 274.3 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.03277, allocations: 239.7 kB / 274.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.03465, allocations: 3.019 MB / 277.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/0.03497, allocations: 51.94 kB / 277.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.03501, allocations: 40.11 kB / 277.7 MB, free: 11.62 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 {(5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.03519, allocations: 189.5 kB / 277.8 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-05/0.03527, allocations: 87.91 kB / 277.9 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004347/0.0357, allocations: 393.6 kB / 278.3 MB, free: 10.94 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.03571, allocations: 11.94 kB / 278.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.03571, allocations: 4 kB / 278.3 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003891/0.0361, allocations: 0.674 MB / 279 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009457/0.03704, allocations: 0.9337 MB / 279.9 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.03705, allocations: 0 / 279.9 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.03732, allocations: 130.6 kB / 280.1 MB, free: 9.023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.03749, allocations: 107.3 kB / 280.2 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001984/0.03769, allocations: 101.7 kB / 280.3 MB, free: 8.812 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.03771, allocations: 16 kB / 280.3 MB, free: 8.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/0.03934, allocations: 2.839 MB / 283.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.03934, allocations: 4.031 kB / 283.1 MB, free: 5.781 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.03983, allocations: 0.5961 MB / 283.7 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.886e-05/0.0399, allocations: 12 kB / 283.7 MB, free: 5.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002973/0.0402, allocations: 31.97 kB / 283.8 MB, free: 5.102 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.042e-05/0.04029, allocations: 56.39 kB / 283.8 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.04031, allocations: 20 kB / 283.8 MB, free: 5.027 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000314/0.04063, allocations: 414.9 kB / 284.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04063, allocations: 0 / 284.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005762/0.0412, allocations: 308 kB / 284.6 MB, free: 4.309 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.0001845/0.04139, allocations: 116.2 kB / 284.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007935/0.04218, allocations: 0.8786 MB / 285.5 MB, free: 3.246 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.743e-05/0.04221, allocations: 16.5 kB / 285.6 MB, free: 3.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.04253, allocations: 451.8 kB / 286 MB, free: 2.766 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000659/0.04319, allocations: 398.1 kB / 286.4 MB, free: 2.383 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.05518, allocations: 2.087 MB / 288.5 MB, free: 232 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.09981/0.155, allocations: 217.7 kB / 288.7 MB, free: 37.79 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005659/0.1556, allocations: 127.7 kB / 288.8 MB, free: 37.78 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006188/0.1562, allocations: 357.8 kB / 289.2 MB, free: 37.74 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1562, allocations: 0 / 289.2 MB, free: 37.74 MB / 282.7 MB Notification: Performance of Templates: time 0.02723/0.1834, allocations: 19.79 MB / 309 MB, free: 30.23 MB / 282.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 -ignoreHideResult -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: 4.575312389060855]