Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [: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.001215/0.001215, allocations: 186.1 kB / 8.136 MB, free: 2.199 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.193/1.193, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.001054/0.001054, allocations: 93.48 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.745e-06/7.765e-06, allocations: 4 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1995, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08655/0.2861, allocations: 79.94 MB / 466.8 MB, free: 6.852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.2863, allocations: 79.89 kB / 466.9 MB, free: 6.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01612/0.3024, allocations: 5.496 MB / 472.4 MB, free: 1.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.924e-05/0.3025, allocations: 4 kB / 472.4 MB, free: 1.316 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.000694/0.3032, allocations: 494.8 kB / 472.9 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3033, allocations: 12.25 kB / 472.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.3034, allocations: 27.62 kB / 472.9 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000426/0.3039, allocations: 265.9 kB / 473.2 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.3039, allocations: 7.938 kB / 473.2 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.3039, allocations: 16 kB / 473.2 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002412/0.3042, allocations: 108 kB / 473.3 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.3044, allocations: 133.4 kB / 473.5 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3045, allocations: 3.906 kB / 473.5 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.3045, allocations: 6.141 kB / 473.5 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3045, allocations: 4 kB / 473.5 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009199/0.3054, allocations: 0.5319 MB / 474 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.3056, allocations: 93.08 kB / 474.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.3057, allocations: 88.84 kB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.3058, allocations: 0 / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.3059, allocations: 110.3 kB / 474.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.306, allocations: 0 / 474.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003294/0.3063, allocations: 161.6 kB / 474.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.3063, allocations: 55.41 kB / 474.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.3066, allocations: 214.1 kB / 474.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.3066, allocations: 29.7 kB / 474.7 MB, free: 14.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.567e-05/0.3067, allocations: 124.2 kB / 474.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.922e-05/0.3067, allocations: 67.02 kB / 474.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-06/0.3068, allocations: 0 / 474.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3069, allocations: 334.8 kB / 475.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.865e-05/0.307, allocations: 47.98 kB / 475.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.3071, allocations: 79.55 kB / 475.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.3073, allocations: 56.92 kB / 475.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3073, allocations: 0 / 475.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003051/0.3076, allocations: 190.9 kB / 475.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.3076, allocations: 7.984 kB / 475.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3076, allocations: 3.938 kB / 475.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3077, allocations: 5.031 kB / 475.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.3079, allocations: 47.92 kB / 475.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3079, allocations: 8.094 kB / 475.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.3081, allocations: 23.73 kB / 475.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.3081, allocations: 4 kB / 475.7 MB, free: 13.81 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.024e-05/0.3082, allocations: 108.9 kB / 475.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.041e-05/0.3082, allocations: 23.72 kB / 475.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003348/0.3086, allocations: 191.1 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3086, allocations: 4 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3086, allocations: 0 / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3086, allocations: 0 / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002865/0.3089, allocations: 254.8 kB / 476.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3089, allocations: 0 / 476.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.3091, allocations: 31.98 kB / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.3091, allocations: 7.984 kB / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.3092, allocations: 0 / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3092, allocations: 0 / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.3092, allocations: 3.906 kB / 476.3 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004369/0.3096, allocations: 284 kB / 476.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.963e-05/0.3097, allocations: 104.8 kB / 476.7 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.3098, allocations: 4.75 kB / 476.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.3099, allocations: 4 kB / 476.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.3099, allocations: 16.16 kB / 476.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.31, allocations: 8 kB / 476.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001649/0.3101, allocations: 176.2 kB / 476.9 MB, free: 12.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003012/0.3104, allocations: 63.91 kB / 477 MB, free: 12.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006756/0.3111, allocations: 320.5 kB / 477.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002662/0.3114, allocations: 135.9 kB / 477.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.3114, allocations: 0 / 477.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3115, allocations: 75.92 kB / 477.5 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3118, allocations: 41.89 kB / 477.5 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008555/0.3127, allocations: 414.1 kB / 477.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004319/0.3131, allocations: 0.7822 MB / 478.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3132, allocations: 3.938 kB / 478.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of Templates: time 0.006391/0.3196, allocations: 2.593 MB / 481.3 MB, free: 8.188 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches