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.001212/0.001212, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.401/1.401, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0009401/0.0009401, allocations: 89.16 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003259/0.0003261, allocations: 11.94 kB / 351.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.254, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1166/0.3706, allocations: 99.82 MB / 0.4896 GB, free: 12.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.3709, allocations: 83.95 kB / 0.4897 GB, free: 12.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2915/0.6624, allocations: 30.66 MB / 0.5196 GB, free: 92.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.6624, allocations: 3.938 kB / 0.5196 GB, free: 92.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001156/0.6625, allocations: 26.34 kB / 0.5196 GB, free: 92.36 MB / 378.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.003398/0.666, allocations: 1.552 MB / 0.5211 GB, free: 91.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.666, allocations: 15.61 kB / 0.5212 GB, free: 91.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007844/0.6668, allocations: 203.3 kB / 0.5213 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.6685, allocations: 0.8493 MB / 0.5222 GB, free: 90.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.6687, allocations: 121.4 kB / 0.5223 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/0.6689, allocations: 113.8 kB / 0.5224 GB, free: 90.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.6708, allocations: 1.137 MB / 0.5235 GB, free: 89.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.892e-05/0.6708, allocations: 7.906 kB / 0.5235 GB, free: 89.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.05e-05/0.6709, allocations: 51.95 kB / 0.5236 GB, free: 89.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.6709, allocations: 28 kB / 0.5236 GB, free: 89.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.6724, allocations: 0.7808 MB / 0.5244 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005402/0.6778, allocations: 3.934 MB / 0.5282 GB, free: 84.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.6792, allocations: 0.6007 MB / 0.5288 GB, free: 83.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-05/0.6793, allocations: 14.34 kB / 0.5288 GB, free: 83.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005348/0.6798, allocations: 311.4 kB / 0.5291 GB, free: 83.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.726e-06/0.6799, allocations: 0 / 0.5291 GB, free: 83.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.00443/0.6843, allocations: 2.112 MB / 0.5312 GB, free: 81.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.6844, allocations: 479.2 kB / 0.5316 GB, free: 80.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.6858, allocations: 0.9352 MB / 0.5325 GB, free: 79.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.628e-05/0.6859, allocations: 37.7 kB / 0.5326 GB, free: 79.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005129/0.6864, allocations: 0.6532 MB / 0.5332 GB, free: 79.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.6866, allocations: 226.9 kB / 0.5334 GB, free: 78.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/0.6867, allocations: 28 kB / 0.5334 GB, free: 78.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.665e-05/0.6868, allocations: 345.9 kB / 0.5338 GB, free: 78.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.6873, allocations: 254.5 kB / 0.534 GB, free: 78.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007656/0.6881, allocations: 0.7169 MB / 0.5347 GB, free: 77.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/0.6888, allocations: 417.9 kB / 0.5351 GB, free: 76.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.6888, allocations: 0 / 0.5351 GB, free: 76.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002236/0.691, allocations: 1.18 MB / 0.5363 GB, free: 75.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.937e-05/0.6911, allocations: 66.47 kB / 0.5363 GB, free: 75.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.6911, allocations: 12 kB / 0.5363 GB, free: 75.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005718/0.6917, allocations: 177.7 kB / 0.5365 GB, free: 75.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006536/0.6923, allocations: 215.6 kB / 0.5367 GB, free: 75.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003337/0.6957, allocations: 3.598 MB / 0.5402 GB, free: 71.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.6969, allocations: 80.05 kB / 0.5403 GB, free: 71.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.561e-05/0.6969, allocations: 44 kB / 0.5404 GB, free: 71.2 MB / 378.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006904/0.6976, allocations: 297.6 kB / 0.5406 GB, free: 70.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002369/0.6979, allocations: 126.5 kB / 0.5408 GB, free: 70.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.6994, allocations: 0.7272 MB / 0.5415 GB, free: 70.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.6994, allocations: 12 kB / 0.5415 GB, free: 70 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.6994, allocations: 0 / 0.5415 GB, free: 70 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001073/0.7005, allocations: 0.9648 MB / 0.5424 GB, free: 68.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/0.7033, allocations: 1.816 MB / 0.5442 GB, free: 67.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.361e-06/0.7034, allocations: 0 / 0.5442 GB, free: 67.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.7038, allocations: 111.9 kB / 0.5443 GB, free: 66.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003955/0.7042, allocations: 129 kB / 0.5444 GB, free: 66.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.7043, allocations: 16 kB / 0.5444 GB, free: 66.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/0.7069, allocations: 3.314 MB / 0.5477 GB, free: 63.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7069, allocations: 4.062 kB / 0.5477 GB, free: 63.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.7085, allocations: 1.18 MB / 0.5488 GB, free: 61.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004658/0.709, allocations: 259.5 kB / 0.5491 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/0.7092, allocations: 20 kB / 0.5491 GB, free: 61.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/0.7099, allocations: 43.97 kB / 0.5491 GB, free: 61.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.71, allocations: 60.42 kB / 0.5492 GB, free: 61.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.71, allocations: 19.98 kB / 0.5492 GB, free: 61.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009094/0.7109, allocations: 0.7094 MB / 0.5499 GB, free: 60.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7109, allocations: 0 / 0.5499 GB, free: 60.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00128/0.7122, allocations: 364 kB / 0.5503 GB, free: 60.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005283/0.7128, allocations: 367.8 kB / 0.5506 GB, free: 60.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.7146, allocations: 1.116 MB / 0.5517 GB, free: 58.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.7146, allocations: 0 / 0.5517 GB, free: 58.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007779/0.7154, allocations: 0.5632 MB / 0.5522 GB, free: 58.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.7166, allocations: 295.4 kB / 0.5525 GB, free: 58.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.7203, allocations: 2.747 MB / 0.5552 GB, free: 55.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/0.7209, allocations: 1.109 MB / 0.5563 GB, free: 54.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006002/0.7215, allocations: 141.8 kB / 0.5564 GB, free: 54.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.7217, allocations: 83.42 kB / 0.5565 GB, free: 53.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.7217, allocations: 0 / 0.5565 GB, free: 53.93 MB / 378.7 MB Notification: Performance of Templates: time 0.03171/0.7534, allocations: 18.64 MB / 0.5747 GB, free: 35.54 MB / 378.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/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