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") [: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.001288/0.001288, allocations: 176.1 kB / 8.476 MB, free: 1.875 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.062/1.062, allocations: 205.2 MB / 214.1 MB, free: 1.805 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008421/0.0008422, allocations: 79.41 kB / 262.1 MB, free: 1.762 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.023e-06/7.043e-06, allocations: 4 kB / 315 MB, free: 23.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06531/0.06533, allocations: 47.59 MB / 362.6 MB, free: 7.363 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2277/0.293, allocations: 99.47 MB / 462 MB, free: 12.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.2933, allocations: 77.14 kB / 462.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0797/0.373, allocations: 30.41 MB / 492.5 MB, free: 3.375 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.643e-05/0.3731, allocations: 28 kB / 492.5 MB, free: 3.348 MB / 362.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.002195/0.3753, allocations: 1.39 MB / 493.9 MB, free: 1.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.3753, allocations: 12.03 kB / 493.9 MB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000606/0.376, allocations: 202.1 kB / 494.1 MB, free: 1.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.3774, allocations: 0.856 MB / 495 MB, free: 1.043 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.3775, allocations: 80.52 kB / 495.1 MB, free: 0.957 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.3777, allocations: 69.78 kB / 495.1 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001276/0.379, allocations: 0.63 MB / 495.8 MB, free: 388 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.3806, allocations: 0.9354 MB / 496.7 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/0.3806, allocations: 0 / 496.7 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.7e-05/0.3807, allocations: 4 kB / 496.7 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.47e-05/0.3807, allocations: 27.91 kB / 496.7 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005777/0.3865, allocations: 3.747 MB / 0.4888 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005902/0.3871, allocations: 320.2 kB / 0.4891 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003529/0.3875, allocations: 222.9 kB / 0.4893 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.823e-05/0.3876, allocations: 17.33 kB / 0.4893 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004173/0.388, allocations: 246.9 kB / 0.4895 GB, free: 10.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.847e-06/0.388, allocations: 0 / 0.4895 GB, free: 10.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.002818/0.3908, allocations: 1.387 MB / 0.4909 GB, free: 9.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/0.391, allocations: 479.2 kB / 0.4913 GB, free: 8.555 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.392, allocations: 0.7401 MB / 0.4921 GB, free: 7.797 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.448e-05/0.3921, allocations: 33.7 kB / 0.4921 GB, free: 7.758 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003684/0.3925, allocations: 0.5171 MB / 0.4926 GB, free: 7.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.3927, allocations: 220.8 kB / 0.4928 GB, free: 7.012 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.3927, allocations: 0 / 0.4928 GB, free: 7.012 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3928, allocations: 341.9 kB / 0.4931 GB, free: 6.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003537/0.3932, allocations: 202.6 kB / 0.4933 GB, free: 6.473 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006164/0.3938, allocations: 0.6446 MB / 0.494 GB, free: 5.621 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.3943, allocations: 300.5 kB / 0.4942 GB, free: 5.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3943, allocations: 11.94 kB / 0.4943 GB, free: 5.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001727/0.3961, allocations: 0.9302 MB / 0.4952 GB, free: 4.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3961, allocations: 4 kB / 0.4952 GB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.3961, allocations: 12 kB / 0.4952 GB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006771/0.3968, allocations: 185.7 kB / 0.4954 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007495/0.3976, allocations: 215.6 kB / 0.4956 GB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00382/0.4014, allocations: 3.358 MB / 0.4988 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009884/0.4024, allocations: 68.11 kB / 0.4989 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.818e-05/0.4025, allocations: 44 kB / 0.4989 GB, free: 268 kB / 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 () * 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,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.4027, allocations: 148.6 kB / 0.4991 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.4028, allocations: 110.7 kB / 0.4992 GB, free: 0 / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001367/0.4042, allocations: 0.6213 MB / 0.4998 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.4042, allocations: 11.98 kB / 0.4998 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.4042, allocations: 4 kB / 0.4998 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001051/0.4053, allocations: 0.8757 MB / 0.5007 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002693/0.408, allocations: 1.584 MB / 0.5022 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.408, allocations: 0 / 0.5022 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.4086, allocations: 116 kB / 0.5023 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004597/0.409, allocations: 137.6 kB / 0.5025 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.4091, allocations: 4 kB / 0.5025 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.412, allocations: 3.105 MB / 0.5055 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.412, allocations: 4 kB / 0.5055 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001649/0.4137, allocations: 1.039 MB / 0.5065 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004317/0.4141, allocations: 235.7 kB / 0.5067 GB, free: 7.727 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.4143, allocations: 11.89 kB / 0.5068 GB, free: 7.715 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005797/0.4149, allocations: 35.97 kB / 0.5068 GB, free: 7.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.415, allocations: 48.44 kB / 0.5068 GB, free: 7.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/0.4151, allocations: 20 kB / 0.5069 GB, free: 7.613 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0007659/0.4159, allocations: 0.5489 MB / 0.5074 GB, free: 7.055 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00109/0.417, allocations: 280 kB / 0.5077 GB, free: 6.781 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.0004436/0.4174, allocations: 302.5 kB / 0.5079 GB, free: 6.477 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.4192, allocations: 0.8745 MB / 0.5088 GB, free: 5.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.4192, allocations: 3.938 kB / 0.5088 GB, free: 5.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007338/0.42, allocations: 481.2 kB / 0.5093 GB, free: 5.082 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.4212, allocations: 241 kB / 0.5095 GB, free: 4.848 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/0.4261, allocations: 1.591 MB / 0.511 GB, free: 3.199 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/0.4275, allocations: 1.186 MB / 0.5122 GB, free: 1.984 MB / 394.7 MB Notification: Performance of SimCode: time 7.92e-07/0.4275, allocations: 3.938 kB / 0.5122 GB, free: 1.98 MB / 394.7 MB Notification: Performance of Templates: time 0.03856/0.4661, allocations: 14.82 MB / 0.5267 GB, free: 3.141 MB / 410.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