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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,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=500000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009359/0.0009359, allocations: 109.7 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007997/0.0007998, allocations: 43.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2442, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01049/0.2547, allocations: 9.527 MB / 409 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007036/0.2618, allocations: 3.101 MB / 412.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001376/0.2632, allocations: 23.94 kB / 412.1 MB, free: 20.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.265, allocations: 0.5167 MB / 412.7 MB, free: 20.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001595/0.2666, allocations: 492.5 kB / 413.1 MB, free: 19.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000723/0.2673, allocations: 283.7 kB / 413.4 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001717/0.269, allocations: 1.69 MB / 415.1 MB, free: 17.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008486/0.2699, allocations: 0.5532 MB / 415.7 MB, free: 17.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007067/0.2706, allocations: 0.6223 MB / 416.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007373/0.2714, allocations: 0.7077 MB / 417 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.2716, allocations: 104 kB / 417.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004042/0.272, allocations: 152 kB / 417.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.2722, allocations: 286.8 kB / 417.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006726/0.2729, allocations: 0.7541 MB / 418.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001566/0.2745, allocations: 1.911 MB / 420.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2745, allocations: 0 / 420.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2745, allocations: 0 / 420.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.2745, allocations: 0 / 420.2 MB, free: 12.56 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.003414/0.2779, allocations: 1.8 MB / 422 MB, free: 10.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.278, allocations: 8.031 kB / 422 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006988/0.2787, allocations: 203 kB / 422.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.2801, allocations: 0.8172 MB / 423 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.2802, allocations: 112.4 kB / 423.1 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.2804, allocations: 112 kB / 423.2 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/0.2826, allocations: 1.146 MB / 424.4 MB, free: 8.152 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.005e-05/0.2826, allocations: 7.906 kB / 424.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.2828, allocations: 44 kB / 424.4 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.2828, allocations: 35.92 kB / 424.5 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001908/0.2847, allocations: 0.7535 MB / 425.2 MB, free: 7.316 MB / 298.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.006037/0.2908, allocations: 3.938 MB / 429.1 MB, free: 3.176 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.2927, allocations: 0.5772 MB / 429.7 MB, free: 2.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006176/0.2933, allocations: 272.5 kB / 430 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.77e-05/0.2934, allocations: 20.55 kB / 430 MB, free: 2.305 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007852/0.2942, allocations: 295.5 kB / 430.3 MB, free: 2.008 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 4.739e-06/0.2942, allocations: 0 / 430.3 MB, free: 2.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.005606/0.2998, allocations: 2.073 MB / 432.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002559/0.3001, allocations: 475.2 kB / 432.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.3021, allocations: 1.105 MB / 433.9 MB, free: 14.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.506e-05/0.3022, allocations: 37.7 kB / 434 MB, free: 14.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006899/0.3029, allocations: 0.6427 MB / 434.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000252/0.3032, allocations: 236.7 kB / 434.8 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004175/0.3036, allocations: 198.7 kB / 435 MB, free: 13.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3038, allocations: 345.9 kB / 435.4 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007453/0.3045, allocations: 242.5 kB / 435.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.3057, allocations: 0.713 MB / 436.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00185/0.3076, allocations: 0.9414 MB / 437.3 MB, free: 10.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.3076, allocations: 7.938 kB / 437.3 MB, free: 10.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002889/0.3105, allocations: 1.141 MB / 438.4 MB, free: 9.223 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.077e-05/0.3106, allocations: 63.41 kB / 438.5 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.3107, allocations: 19.98 kB / 438.5 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007373/0.3114, allocations: 173 kB / 438.7 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009612/0.3124, allocations: 203.7 kB / 438.9 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005091/0.3175, allocations: 3.535 MB / 442.4 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/0.319, allocations: 76.02 kB / 442.5 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.405e-05/0.3191, allocations: 47.98 kB / 442.5 MB, free: 4.84 MB / 314.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.0006684/0.3198, allocations: 297.6 kB / 442.8 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002351/0.32, allocations: 126.4 kB / 442.9 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001992/0.322, allocations: 0.696 MB / 443.6 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.322, allocations: 12 kB / 443.6 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3221, allocations: 0 / 443.6 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001809/0.3239, allocations: 0.9568 MB / 444.6 MB, free: 2.621 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003831/0.3277, allocations: 1.794 MB / 446.4 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.3277, allocations: 7.938 kB / 446.4 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/0.3284, allocations: 103.9 kB / 446.5 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005588/0.329, allocations: 137.8 kB / 446.6 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.719e-05/0.3291, allocations: 20 kB / 446.7 MB, free: 488 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00405/0.3331, allocations: 3.279 MB / 449.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3332, allocations: 0 / 449.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0162/0.3494, allocations: 8.428 MB / 458.4 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006107/0.35, allocations: 251.6 kB / 458.6 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/0.3503, allocations: 20 kB / 458.6 MB, free: 3.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009537/0.3513, allocations: 44.05 kB / 458.7 MB, free: 3.707 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3515, allocations: 56.38 kB / 458.7 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/0.3515, allocations: 23.98 kB / 458.8 MB, free: 3.629 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001503/0.3531, allocations: 0.7406 MB / 459.5 MB, free: 2.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3531, allocations: 0 / 459.5 MB, free: 2.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002202/0.3553, allocations: 459.9 kB / 459.9 MB, free: 2.434 MB / 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.0003131/0.3556, allocations: 143.1 kB / 460.1 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00265/0.3583, allocations: 1.08 MB / 461.2 MB, free: 1.152 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.3583, allocations: 4 kB / 461.2 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.3596, allocations: 0.5443 MB / 461.7 MB, free: 0.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.3617, allocations: 309.9 kB / 462 MB, free: 284 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006505/0.3682, allocations: 3.363 MB / 465.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009748/0.3692, allocations: 1.108 MB / 466.5 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009328/0.3702, allocations: 149.8 kB / 466.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.3705, allocations: 79.42 kB / 466.7 MB, free: 11.47 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3705, allocations: 0 / 466.7 MB, free: 11.47 MB / 346.7 MB Notification: Performance of Templates: time 0.04518/0.4157, allocations: 19.08 MB / 485.8 MB, free: 8.621 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches