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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 108.9 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 192 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 47.92 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.298, allocations: 49.44 MB / 400.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01068/0.3088, allocations: 9.586 MB / 410.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005251/0.314, allocations: 3.104 MB / 413.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008216/0.3149, allocations: 31.88 kB / 413.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.3163, allocations: 0.5873 MB / 414.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001239/0.3176, allocations: 0.5542 MB / 414.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006351/0.3182, allocations: 315.5 kB / 414.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001586/0.3198, allocations: 1.771 MB / 416.7 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007564/0.3206, allocations: 0.6336 MB / 417.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000679/0.3213, allocations: 0.6732 MB / 418 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007851/0.3221, allocations: 0.7429 MB / 418.7 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001772/0.3222, allocations: 159.9 kB / 418.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003207/0.3226, allocations: 203.9 kB / 419.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.3228, allocations: 330.8 kB / 419.4 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006234/0.3234, allocations: 0.8087 MB / 420.2 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001598/0.325, allocations: 1.978 MB / 422.2 MB, free: 3.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3251, allocations: 7.984 kB / 422.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3251, allocations: 4 kB / 422.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.402e-05/0.3251, allocations: 0 / 422.2 MB, free: 3.25 MB / 334.1 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.002791/0.3279, allocations: 1.789 MB / 424 MB, free: 1.391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.3279, allocations: 12.02 kB / 424 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000525/0.3285, allocations: 198.9 kB / 424.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.3296, allocations: 0.8289 MB / 425 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.3298, allocations: 116.4 kB / 425.2 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.3299, allocations: 116 kB / 425.3 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.3317, allocations: 1.146 MB / 426.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.3317, allocations: 0 / 426.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.242e-05/0.3318, allocations: 52 kB / 426.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.3319, allocations: 28 kB / 426.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.3333, allocations: 0.7496 MB / 427.2 MB, free: 14.01 MB / 350.1 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.005171/0.3385, allocations: 3.922 MB / 431.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.34, allocations: 0.5849 MB / 431.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004853/0.3405, allocations: 268.2 kB / 432 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.3405, allocations: 12.55 kB / 432 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005636/0.3411, allocations: 295 kB / 432.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.314e-06/0.3411, allocations: 0 / 432.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004276/0.3454, allocations: 2.08 MB / 434.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001986/0.3456, allocations: 479.2 kB / 434.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.347, allocations: 1.101 MB / 436 MB, free: 4.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/0.347, allocations: 37.7 kB / 436 MB, free: 4.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004921/0.3475, allocations: 0.6505 MB / 436.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3477, allocations: 228.7 kB / 436.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.348, allocations: 202.7 kB / 437.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.3481, allocations: 345.9 kB / 437.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.3486, allocations: 246.5 kB / 437.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007728/0.3494, allocations: 0.7091 MB / 438.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.3506, allocations: 0.9414 MB / 439.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.3507, allocations: 7.938 kB / 439.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001895/0.3526, allocations: 1.138 MB / 440.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.754e-05/0.3526, allocations: 71.39 kB / 440.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.3527, allocations: 15.94 kB / 440.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005494/0.3532, allocations: 169.7 kB / 440.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006731/0.3539, allocations: 203.6 kB / 440.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004133/0.358, allocations: 3.876 MB / 444.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009496/0.359, allocations: 63.81 kB / 444.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-05/0.3591, allocations: 51.98 kB / 444.9 MB, free: 11.19 MB / 366.1 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.0004465/0.3595, allocations: 297.6 kB / 445.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.3597, allocations: 126.5 kB / 445.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.3612, allocations: 0.6999 MB / 446 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.3612, allocations: 8 kB / 446 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3612, allocations: 3.984 kB / 446 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001323/0.3625, allocations: 0.9645 MB / 447 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.3652, allocations: 1.782 MB / 448.8 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3652, allocations: 4 kB / 448.8 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.3657, allocations: 107.8 kB / 448.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004417/0.3661, allocations: 128.2 kB / 449 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.3662, allocations: 16 kB / 449 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.3695, allocations: 3.593 MB / 452.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3695, allocations: 4.031 kB / 452.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.3712, allocations: 1.046 MB / 453.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.3716, allocations: 251.6 kB / 453.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.3718, allocations: 19.98 kB / 453.9 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006102/0.3724, allocations: 39.97 kB / 454 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3725, allocations: 60.42 kB / 454 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.3726, allocations: 16 kB / 454 MB, free: 1.484 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000941/0.3735, allocations: 0.7445 MB / 454.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3735, allocations: 0 / 454.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001019/0.3746, allocations: 308 kB / 455.1 MB, free: 444 kB / 366.1 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.0002469/0.3748, allocations: 135.1 kB / 455.2 MB, free: 300 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002095/0.3769, allocations: 1.107 MB / 456.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3769, allocations: 0 / 456.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008812/0.3778, allocations: 0.5567 MB / 456.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.3792, allocations: 330 kB / 457.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.3826, allocations: 2.214 MB / 459.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006301/0.3833, allocations: 1.082 MB / 460.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004772/0.3838, allocations: 145.8 kB / 460.6 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.3839, allocations: 83.42 kB / 460.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.3839, allocations: 0 / 460.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of Templates: time 0.02915/0.4131, allocations: 18.21 MB / 478.9 MB, free: 8.676 MB / 398.1 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/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) Reference file matches