Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002599/0.002599, allocations: 175.5 kB / 8.148 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.617/1.617, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.001219/0.001218, allocations: 91.52 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.966e-06/9.107e-06, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2314, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.146/0.3774, allocations: 99.19 MB / 461 MB, free: 2.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000307/0.3778, allocations: 88.44 kB / 461.1 MB, free: 2.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1308/0.5086, allocations: 30.41 MB / 491.5 MB, free: 4.223 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.335e-05/0.5087, allocations: 28 kB / 491.6 MB, free: 4.195 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.003538/0.5123, allocations: 1.386 MB / 492.9 MB, free: 2.746 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.5123, allocations: 12.03 kB / 493 MB, free: 2.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000916/0.5133, allocations: 202.1 kB / 493.2 MB, free: 2.535 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002366/0.5156, allocations: 0.8554 MB / 494 MB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/0.5158, allocations: 83.83 kB / 494.1 MB, free: 1.543 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/0.5161, allocations: 67.91 kB / 494.2 MB, free: 1.477 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002146/0.5182, allocations: 0.6369 MB / 494.8 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.5206, allocations: 0.9237 MB / 495.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.802e-05/0.5207, allocations: 8 kB / 495.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.5208, allocations: 0 / 495.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-05/0.5209, allocations: 31.91 kB / 495.8 MB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008985/0.5299, allocations: 3.736 MB / 499.5 MB, free: 11.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.5311, allocations: 321.1 kB / 499.8 MB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005954/0.5318, allocations: 219 kB / 0.4883 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.752e-05/0.5318, allocations: 20.42 kB / 0.4883 GB, free: 11.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006436/0.5325, allocations: 246.9 kB / 0.4886 GB, free: 11.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 3.337e-06/0.5325, allocations: 0 / 0.4886 GB, free: 11.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.004659/0.5372, allocations: 1.391 MB / 0.4899 GB, free: 9.605 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/0.5375, allocations: 487.2 kB / 0.4904 GB, free: 9.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/0.5392, allocations: 0.7362 MB / 0.4911 GB, free: 8.266 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.5393, allocations: 29.7 kB / 0.4911 GB, free: 8.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004623/0.5398, allocations: 0.5118 MB / 0.4916 GB, free: 7.711 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/0.5401, allocations: 220.8 kB / 0.4918 GB, free: 7.492 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.322e-05/0.5401, allocations: 0 / 0.4918 GB, free: 7.492 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5403, allocations: 354.8 kB / 0.4922 GB, free: 7.137 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006539/0.541, allocations: 198.6 kB / 0.4924 GB, free: 6.941 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.5421, allocations: 0.6407 MB / 0.493 GB, free: 6.094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008321/0.5429, allocations: 308.4 kB / 0.4933 GB, free: 5.793 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.543, allocations: 4 kB / 0.4933 GB, free: 5.789 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002823/0.5458, allocations: 0.8724 MB / 0.4941 GB, free: 4.902 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.5458, allocations: 4 kB / 0.4941 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/0.5459, allocations: 12 kB / 0.4942 GB, free: 4.887 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009393/0.5468, allocations: 168.6 kB / 0.4943 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.5483, allocations: 223.7 kB / 0.4945 GB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005485/0.5538, allocations: 3.308 MB / 0.4978 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.5549, allocations: 60.23 kB / 0.4978 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.5551, allocations: 52 kB / 0.4979 GB, free: 0.8555 MB / 394.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 () * 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: 2 {(1,100.0%) 1,(5,64.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002318/0.5553, allocations: 77.22 kB / 0.4979 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003126/0.5556, allocations: 110.7 kB / 0.498 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.5579, allocations: 0.6213 MB / 0.4987 GB, free: 24 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.5579, allocations: 8 kB / 0.4987 GB, free: 16 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.5579, allocations: 4 kB / 0.4987 GB, free: 12 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1258/0.6837, allocations: 0.8608 MB / 0.4995 GB, free: 146.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.6878, allocations: 1.585 MB / 0.5011 GB, free: 146.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.6878, allocations: 3.906 kB / 0.5011 GB, free: 146.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.6889, allocations: 115.2 kB / 0.5012 GB, free: 146.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007408/0.6896, allocations: 135.5 kB / 0.5013 GB, free: 146.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.597e-05/0.6897, allocations: 12.8 kB / 0.5013 GB, free: 146.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003838/0.6936, allocations: 3.1 MB / 0.5043 GB, free: 144 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.6936, allocations: 3.844 kB / 0.5043 GB, free: 144 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002359/0.696, allocations: 1.038 MB / 0.5054 GB, free: 143.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/0.6966, allocations: 242.8 kB / 0.5056 GB, free: 143.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/0.6968, allocations: 12.67 kB / 0.5056 GB, free: 143.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.6978, allocations: 36.03 kB / 0.5056 GB, free: 143.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.698, allocations: 45.44 kB / 0.5057 GB, free: 143.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.393e-05/0.698, allocations: 23.73 kB / 0.5057 GB, free: 143.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001054/0.6991, allocations: 0.5463 MB / 0.5062 GB, free: 143.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001463/0.7006, allocations: 283.7 kB / 0.5065 GB, free: 143.4 MB / 394.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) * 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.0005219/0.7011, allocations: 303.3 kB / 0.5068 GB, free: 143.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.7031, allocations: 0.8589 MB / 0.5076 GB, free: 143.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.7032, allocations: 0 / 0.5076 GB, free: 143.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.7042, allocations: 467.5 kB / 0.5081 GB, free: 142.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.7062, allocations: 241.2 kB / 0.5083 GB, free: 142.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/0.7109, allocations: 1.629 MB / 0.5099 GB, free: 142.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009511/0.7119, allocations: 1.194 MB / 0.5111 GB, free: 141.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7119, allocations: 0 / 0.5111 GB, free: 141.6 MB / 394.7 MB Notification: Performance of Templates: time 0.03988/0.7518, allocations: 25.05 MB / 0.5355 GB, free: 139 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches