Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001996/0.001996, allocations: 181.7 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.921/1.921, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008888/0.0008888, allocations: 92.16 kB / 271.5 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002953, allocations: 4 kB / 328.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2686, allocations: 47.56 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1186/0.3873, allocations: 100 MB / 475.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.3877, allocations: 87.94 kB / 475.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2976/0.6853, allocations: 30.84 MB / 0.4949 GB, free: 95.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6853, allocations: 2.031 kB / 0.4949 GB, free: 95.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.356e-05/0.6854, allocations: 29.56 kB / 0.4949 GB, free: 95.69 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.002909/0.6883, allocations: 1.546 MB / 0.4964 GB, free: 94.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.6884, allocations: 12.81 kB / 0.4964 GB, free: 94.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006448/0.689, allocations: 198.1 kB / 0.4966 GB, free: 94.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.6907, allocations: 0.8539 MB / 0.4975 GB, free: 94.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.6908, allocations: 113.8 kB / 0.4976 GB, free: 94.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/0.691, allocations: 111.5 kB / 0.4977 GB, free: 94.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.6929, allocations: 1.136 MB / 0.4988 GB, free: 94.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/0.693, allocations: 6.391 kB / 0.4988 GB, free: 94.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-05/0.6931, allocations: 47.69 kB / 0.4988 GB, free: 94.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.6931, allocations: 29.38 kB / 0.4989 GB, free: 94.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.6946, allocations: 0.777 MB / 0.4996 GB, free: 94.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006094/0.7007, allocations: 3.947 MB / 0.5035 GB, free: 92.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.7022, allocations: 0.6072 MB / 0.5041 GB, free: 92.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.419e-05/0.7023, allocations: 17.56 kB / 0.5041 GB, free: 92.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005122/0.7028, allocations: 309.9 kB / 0.5044 GB, free: 92.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.916e-06/0.7028, allocations: 0 / 0.5044 GB, free: 92.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.00415/0.7069, allocations: 2.118 MB / 0.5064 GB, free: 91.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.7071, allocations: 478 kB / 0.5069 GB, free: 91.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/0.7082, allocations: 0.9324 MB / 0.5078 GB, free: 91.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.185e-05/0.7083, allocations: 50.3 kB / 0.5079 GB, free: 91.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003569/0.7086, allocations: 0.6504 MB / 0.5085 GB, free: 90.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.7088, allocations: 234.2 kB / 0.5087 GB, free: 90.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.7088, allocations: 22.47 kB / 0.5087 GB, free: 90.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.7089, allocations: 341.3 kB / 0.5091 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004544/0.7094, allocations: 258 kB / 0.5093 GB, free: 90.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006334/0.71, allocations: 0.7138 MB / 0.51 GB, free: 89.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005654/0.7106, allocations: 416.1 kB / 0.5104 GB, free: 89.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.7106, allocations: 3.031 kB / 0.5104 GB, free: 89.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001741/0.7123, allocations: 1.165 MB / 0.5115 GB, free: 88.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.7124, allocations: 63.94 kB / 0.5116 GB, free: 88.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.7124, allocations: 12.16 kB / 0.5116 GB, free: 88.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005097/0.7129, allocations: 173.6 kB / 0.5118 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006357/0.7136, allocations: 214.3 kB / 0.512 GB, free: 88.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.7169, allocations: 3.593 MB / 0.5155 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.7181, allocations: 84.8 kB / 0.5156 GB, free: 85.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.527e-05/0.7182, allocations: 48.28 kB / 0.5156 GB, free: 85.62 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.0005613/0.7187, allocations: 291 kB / 0.5159 GB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.7189, allocations: 131.5 kB / 0.516 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.7202, allocations: 0.7296 MB / 0.5167 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.7202, allocations: 10.89 kB / 0.5168 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.7202, allocations: 3.516 kB / 0.5168 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009929/0.7212, allocations: 0.9621 MB / 0.5177 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002573/0.7238, allocations: 1.805 MB / 0.5195 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.7238, allocations: 5.719 kB / 0.5195 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/0.7243, allocations: 114.9 kB / 0.5196 GB, free: 83.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000374/0.7247, allocations: 127.5 kB / 0.5197 GB, free: 83.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.7247, allocations: 23.17 kB / 0.5197 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002353/0.7271, allocations: 3.306 MB / 0.5229 GB, free: 80.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.7271, allocations: 2.156 kB / 0.5229 GB, free: 80.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.7287, allocations: 1.192 MB / 0.5241 GB, free: 79.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000394/0.7291, allocations: 249.3 kB / 0.5243 GB, free: 79.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.7293, allocations: 24.28 kB / 0.5244 GB, free: 79.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/0.7298, allocations: 47.61 kB / 0.5244 GB, free: 79.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.7299, allocations: 58.83 kB / 0.5245 GB, free: 79.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.73, allocations: 19.5 kB / 0.5245 GB, free: 79.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008145/0.7308, allocations: 0.7107 MB / 0.5252 GB, free: 79.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7308, allocations: 4 kB / 0.5252 GB, free: 79.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001148/0.732, allocations: 356.9 kB / 0.5255 GB, free: 78.97 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.0005539/0.7325, allocations: 369 kB / 0.5259 GB, free: 78.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.7344, allocations: 1.112 MB / 0.527 GB, free: 78.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.7344, allocations: 4.312 kB / 0.527 GB, free: 78.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007478/0.7351, allocations: 0.5595 MB / 0.5275 GB, free: 77.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.7363, allocations: 308.7 kB / 0.5278 GB, free: 77.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003463/0.7398, allocations: 2.74 MB / 0.5305 GB, free: 76.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.7403, allocations: 1.111 MB / 0.5316 GB, free: 75.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005864/0.7409, allocations: 141.7 kB / 0.5317 GB, free: 75.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.7411, allocations: 76.8 kB / 0.5318 GB, free: 75.37 MB / 378.7 MB Notification: Performance of SimCode: time 1.243e-06/0.7411, allocations: 7.562 kB / 0.5318 GB, free: 75.36 MB / 378.7 MB Notification: Performance of Templates: time 0.02958/0.7707, allocations: 18.65 MB / 0.55 GB, free: 62.13 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches