Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") [: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 4.0.0+maint.om/package.mo): time 0.0009447/0.0009447, allocations: 184.3 kB / 8.135 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.147/1.147, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008781/0.0008782, allocations: 92.8 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.544e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1745, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09247/0.267, allocations: 94.24 MB / 481.2 MB, free: 8.535 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.2672, allocations: 93.31 kB / 481.2 MB, free: 8.445 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.06195/0.3292, allocations: 23.49 MB / 0.4929 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.056e-05/0.3293, allocations: 16 kB / 0.4929 GB, free: 0.8672 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.09538/0.4246, allocations: 1.032 MB / 0.4939 GB, free: 126.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.4247, allocations: 10.25 kB / 0.4939 GB, free: 126.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006512/0.4253, allocations: 157.2 kB / 0.4941 GB, free: 126.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.4264, allocations: 0.6707 MB / 0.4947 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.4265, allocations: 24.69 kB / 0.4948 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.4266, allocations: 56.78 kB / 0.4948 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007926/0.4274, allocations: 449.8 kB / 0.4953 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009482/0.4283, allocations: 0.6566 MB / 0.4959 GB, free: 126.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.4284, allocations: 6.938 kB / 0.4959 GB, free: 126.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.473e-05/0.4284, allocations: 3.531 kB / 0.4959 GB, free: 126.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.4285, allocations: 19.19 kB / 0.4959 GB, free: 126.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003412/0.4319, allocations: 3.476 MB / 0.4993 GB, free: 124.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.4321, allocations: 147.6 kB / 0.4995 GB, free: 124.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.4322, allocations: 90.55 kB / 0.4995 GB, free: 124.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.4323, allocations: 3.969 kB / 0.4995 GB, free: 124.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.4323, allocations: 39.31 kB / 0.4996 GB, free: 124.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.876e-06/0.4323, allocations: 2.969 kB / 0.4996 GB, free: 124.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001133/0.4335, allocations: 0.7775 MB / 0.5003 GB, free: 124.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.4335, allocations: 83.08 kB / 0.5004 GB, free: 124.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.434, allocations: 0.516 MB / 0.5009 GB, free: 124 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.4341, allocations: 29.09 kB / 0.501 GB, free: 123.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.4342, allocations: 447.3 kB / 0.5014 GB, free: 123.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.013e-05/0.4343, allocations: 104.9 kB / 0.5015 GB, free: 123.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/0.4343, allocations: 0 / 0.5015 GB, free: 123.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.766e-05/0.4344, allocations: 371.3 kB / 0.5018 GB, free: 123.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.4345, allocations: 97.44 kB / 0.5019 GB, free: 123.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.4348, allocations: 381.2 kB / 0.5023 GB, free: 122.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.435, allocations: 169.1 kB / 0.5025 GB, free: 122.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.435, allocations: 3.062 kB / 0.5025 GB, free: 122.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006932/0.4357, allocations: 0.4975 MB / 0.5029 GB, free: 122.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.4358, allocations: 3.188 kB / 0.5029 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.4358, allocations: 11.09 kB / 0.503 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001271/0.4359, allocations: 30.72 kB / 0.503 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.4364, allocations: 157.5 kB / 0.5031 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006902/0.4371, allocations: 1.235 MB / 0.5043 GB, free: 121.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/0.4376, allocations: 39.94 kB / 0.5044 GB, free: 121.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.4376, allocations: 27.88 kB / 0.5044 GB, free: 121.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 8.693e-05/0.4377, allocations: 136.9 kB / 0.5045 GB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.682e-05/0.4378, allocations: 62.25 kB / 0.5046 GB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004035/0.4382, allocations: 272.1 kB / 0.5049 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.4382, allocations: 3.719 kB / 0.5049 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4382, allocations: 0 / 0.5049 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4382, allocations: 0 / 0.5049 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.4393, allocations: 0.9329 MB / 0.5058 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.4393, allocations: 3.516 kB / 0.5058 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.4396, allocations: 69.94 kB / 0.5058 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.282e-05/0.4397, allocations: 25.36 kB / 0.5059 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.4397, allocations: 3.562 kB / 0.5059 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005583/0.4403, allocations: 1.229 MB / 0.5071 GB, free: 119.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.4403, allocations: 3.594 kB / 0.5071 GB, free: 119.9 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005243/0.4408, allocations: 0.5718 MB / 0.5076 GB, free: 119.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.441, allocations: 169.4 kB / 0.5078 GB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-05/0.4411, allocations: 7.312 kB / 0.5078 GB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003443/0.4415, allocations: 23.36 kB / 0.5078 GB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.4415, allocations: 24.69 kB / 0.5078 GB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.4416, allocations: 11.19 kB / 0.5079 GB, free: 119.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003856/0.442, allocations: 392.3 kB / 0.5082 GB, free: 119.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006652/0.4426, allocations: 168.7 kB / 0.5084 GB, free: 119.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003406/0.443, allocations: 289.6 kB / 0.5087 GB, free: 119.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005181/0.4435, allocations: 388.5 kB / 0.509 GB, free: 119.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4435, allocations: 6.781 kB / 0.509 GB, free: 119.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002321/0.4438, allocations: 204.6 kB / 0.5092 GB, free: 119 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007133/0.4445, allocations: 148.4 kB / 0.5094 GB, free: 119 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.4463, allocations: 1.038 MB / 0.5104 GB, free: 118.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004479/0.4468, allocations: 1.017 MB / 0.5114 GB, free: 117.9 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4468, allocations: 0 / 0.5114 GB, free: 117.9 MB / 378.7 MB Notification: Performance of Templates: time 0.01765/0.4644, allocations: 7.495 MB / 0.5187 GB, free: 117.3 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches