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.0007791/0.0007791, allocations: 80 kB / 21.43 MB, free: 3.133 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.003885/0.003885, allocations: 141.2 kB / 24.68 MB, free: 8.883 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.8319/0.8319, allocations: 173.4 MB / 201.2 MB, free: 9.43 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.603e-06/1.603e-06, allocations: 0 / 319.7 MB, free: 5.719 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.118e-05, allocations: 2.281 kB / 319.7 MB, free: 5.715 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.006632/0.006653, allocations: 8.448 MB / 328.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004072/0.01073, allocations: 2.929 MB / 331.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007035/0.01143, allocations: 31.88 kB / 331.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.01254, allocations: 0.5703 MB / 331.7 MB, free: 9.676 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000885/0.01342, allocations: 0.6045 MB / 332.3 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006971/0.01412, allocations: 327.3 kB / 332.6 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.01548, allocations: 1.832 MB / 334.4 MB, free: 6.906 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005327/0.01601, allocations: 425.3 kB / 334.9 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001171/0.01718, allocations: 1.029 MB / 335.9 MB, free: 5.438 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005484/0.01773, allocations: 0.5452 MB / 336.4 MB, free: 4.891 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.01786, allocations: 156 kB / 336.6 MB, free: 4.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.01813, allocations: 192 kB / 336.8 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.01831, allocations: 342.7 kB / 337.1 MB, free: 4.215 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.01875, allocations: 0.5651 MB / 337.7 MB, free: 3.648 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.02013, allocations: 2.005 MB / 339.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.02013, allocations: 0 / 339.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.02013, allocations: 0 / 339.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.02015, allocations: 0 / 339.7 MB, free: 1.637 MB / 298.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.002116/0.02226, allocations: 1.739 MB / 341.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.0223, allocations: 12.92 kB / 341.4 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003224/0.02262, allocations: 203.9 kB / 341.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009068/0.02353, allocations: 0.775 MB / 342.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.02364, allocations: 167.8 kB / 342.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.02374, allocations: 112.3 kB / 342.7 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.02502, allocations: 1.574 MB / 344.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.02505, allocations: 11.89 kB / 344.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.939e-05/0.02511, allocations: 48 kB / 344.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.02513, allocations: 27.98 kB / 344.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009578/0.02609, allocations: 0.7495 MB / 345.1 MB, free: 11.93 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.02971, allocations: 3.2 MB / 348.3 MB, free: 8.574 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008924/0.0306, allocations: 0.5503 MB / 348.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.03089, allocations: 246.6 kB / 349.1 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.03093, allocations: 13.05 kB / 349.1 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003855/0.03132, allocations: 323.8 kB / 349.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 1.933e-06/0.03132, allocations: 0 / 349.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.002697/0.03402, allocations: 1.849 MB / 351.3 MB, free: 5.535 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.03416, allocations: 475.3 kB / 351.7 MB, free: 4.961 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008138/0.03497, allocations: 0.9595 MB / 352.7 MB, free: 3.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.03501, allocations: 49.64 kB / 352.7 MB, free: 3.926 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.03533, allocations: 0.6673 MB / 353.4 MB, free: 3.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.03545, allocations: 245.9 kB / 353.6 MB, free: 3.008 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.03562, allocations: 194.8 kB / 353.8 MB, free: 2.812 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004047/0.03603, allocations: 349.9 kB / 354.2 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003463/0.03638, allocations: 297.9 kB / 354.5 MB, free: 2.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006413/0.03702, allocations: 1.169 MB / 355.6 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008121/0.03783, allocations: 0.9412 MB / 356.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.03783, allocations: 0 / 356.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001252/0.03909, allocations: 1.185 MB / 357.8 MB, free: 14.33 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.482e-05/0.03913, allocations: 63.41 kB / 357.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.03914, allocations: 12 kB / 357.8 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000413/0.03956, allocations: 181 kB / 358 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.03993, allocations: 203.7 kB / 358.2 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002951/0.04288, allocations: 3.591 MB / 361.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/0.04343, allocations: 67.91 kB / 361.9 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.372e-05/0.04347, allocations: 44 kB / 361.9 MB, free: 9.965 MB / 330.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.0005001/0.04397, allocations: 289.6 kB / 362.2 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.04409, allocations: 123.3 kB / 362.3 MB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009249/0.04501, allocations: 0.689 MB / 363 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.04502, allocations: 4 kB / 363 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.04502, allocations: 4 kB / 363 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007753/0.04579, allocations: 0.9551 MB / 364 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.0475, allocations: 1.507 MB / 365.5 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.0475, allocations: 4 kB / 365.5 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002524/0.04776, allocations: 103.9 kB / 365.6 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002518/0.04801, allocations: 137.7 kB / 365.7 MB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.04803, allocations: 12 kB / 365.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.05034, allocations: 3.322 MB / 369 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.05034, allocations: 4.031 kB / 369 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.05143, allocations: 1.033 MB / 370.1 MB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002499/0.05168, allocations: 159.3 kB / 370.2 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.121e-05/0.05175, allocations: 20 kB / 370.2 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002921/0.05204, allocations: 31.97 kB / 370.3 MB, free: 1.137 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.05215, allocations: 68.27 kB / 370.3 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.05218, allocations: 19.94 kB / 370.4 MB, free: 1.051 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005929/0.05277, allocations: 0.6384 MB / 371 MB, free: 412 kB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05277, allocations: 4 kB / 371 MB, free: 408 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007277/0.0535, allocations: 307.9 kB / 371.3 MB, free: 100 kB / 330.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.0002244/0.05372, allocations: 131.1 kB / 371.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.05497, allocations: 1.106 MB / 372.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.05497, allocations: 1.938 kB / 372.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004942/0.05546, allocations: 0.5356 MB / 373.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007117/0.05618, allocations: 283.7 kB / 373.4 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.05871, allocations: 2.116 MB / 375.5 MB, free: 11.78 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.05901, allocations: 0.4891 MB / 376 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.05915, allocations: 88.42 kB / 376 MB, free: 11.17 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.05915, allocations: 4 kB / 376.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of Templates: time 0.02053/0.07967, allocations: 26.01 MB / 402.1 MB, free: 1.223 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 7.521933875977993]