Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") [: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 trunk/package.mo): time 0.001047/0.001047, allocations: 196.2 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000864/0.0008641, allocations: 90.47 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.676e-06/8.826e-06, allocations: 4 kB / 343.1 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09723, allocations: 51.47 MB / 394.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2367/0.334, allocations: 79.64 MB / 474.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001733/0.3342, allocations: 64.58 kB / 474.3 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.009707/0.3439, allocations: 3.848 MB / 478.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.344, allocations: 4 kB / 478.2 MB, free: 10.33 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005065/0.3445, allocations: 494.9 kB / 478.6 MB, free: 9.824 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.3445, allocations: 8.031 kB / 478.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.3447, allocations: 44.58 kB / 478.7 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.3449, allocations: 230 kB / 478.9 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.3449, allocations: 8 kB / 478.9 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.3449, allocations: 12 kB / 478.9 MB, free: 9.504 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002375/0.3452, allocations: 127.9 kB / 479.1 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/0.3454, allocations: 149.7 kB / 479.2 MB, free: 9.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3454, allocations: 4.656 kB / 479.2 MB, free: 9.301 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.3455, allocations: 0 / 479.2 MB, free: 9.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3455, allocations: 4 kB / 479.2 MB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3465, allocations: 0.8162 MB / 480 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000202/0.3467, allocations: 96.33 kB / 480.1 MB, free: 8.453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.3469, allocations: 80.2 kB / 480.2 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.3469, allocations: 6.469 kB / 480.2 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.391e-05/0.3469, allocations: 38.64 kB / 480.3 MB, free: 8.352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.333e-06/0.3469, allocations: 0 / 480.3 MB, free: 8.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005384/0.3475, allocations: 197.4 kB / 480.4 MB, free: 8.191 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.117e-05/0.3475, allocations: 55.41 kB / 480.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.585e-05/0.3476, allocations: 149.8 kB / 480.6 MB, free: 7.988 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3476, allocations: 25.7 kB / 480.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.694e-05/0.3477, allocations: 136.1 kB / 480.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.3477, allocations: 60.61 kB / 480.9 MB, free: 7.773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.3477, allocations: 4 kB / 480.9 MB, free: 7.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.379e-05/0.3478, allocations: 330 kB / 481.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.581e-05/0.3478, allocations: 41.75 kB / 481.2 MB, free: 7.418 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.26e-05/0.3479, allocations: 61.83 kB / 481.3 MB, free: 7.371 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.3481, allocations: 57.22 kB / 481.3 MB, free: 7.332 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3481, allocations: 0 / 481.3 MB, free: 7.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003925/0.3485, allocations: 214.7 kB / 481.6 MB, free: 7.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.3485, allocations: 4 kB / 481.6 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3485, allocations: 0 / 481.6 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005288/0.349, allocations: 106.4 kB / 481.7 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.3492, allocations: 35.89 kB / 481.7 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00043/0.3496, allocations: 0.6276 MB / 482.3 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.3498, allocations: 15.91 kB / 482.3 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.3498, allocations: 7.938 kB / 482.4 MB, free: 6.395 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 6.093e-05/0.3499, allocations: 115.5 kB / 482.5 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.3499, allocations: 15.81 kB / 482.5 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004211/0.3503, allocations: 206.8 kB / 482.7 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3503, allocations: 8 kB / 482.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3504, allocations: 0 / 482.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3504, allocations: 3.984 kB / 482.7 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007468/0.3511, allocations: 0.5388 MB / 483.2 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3511, allocations: 0 / 483.2 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.3513, allocations: 33.7 kB / 483.3 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004456/0.3517, allocations: 104.1 kB / 483.4 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.3518, allocations: 4.625 kB / 483.4 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004074/0.3522, allocations: 0.6502 MB / 484 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3522, allocations: 0 / 484 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005013/0.3527, allocations: 392.2 kB / 484.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.3528, allocations: 92.86 kB / 484.5 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.3528, allocations: 3.781 kB / 484.5 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.353, allocations: 11.98 kB / 484.5 MB, free: 4.371 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.69e-05/0.353, allocations: 23.17 kB / 484.5 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.353, allocations: 4 kB / 484.5 MB, free: 4.348 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.151e-05/0.3531, allocations: 121 kB / 484.7 MB, free: 4.246 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002828/0.3534, allocations: 59.84 kB / 484.7 MB, free: 4.188 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001349/0.3535, allocations: 107.2 kB / 484.8 MB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002764/0.3538, allocations: 123.5 kB / 484.9 MB, free: 3.988 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3538, allocations: 8.062 kB / 484.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.354, allocations: 75.97 kB / 485 MB, free: 3.926 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.3542, allocations: 22.3 kB / 485 MB, free: 3.914 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006791/0.3549, allocations: 366.5 kB / 485.4 MB, free: 3.562 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.3551, allocations: 0.7626 MB / 486.2 MB, free: 2.777 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3551, allocations: 0 / 486.2 MB, free: 2.777 MB / 346.7 MB Notification: Performance of Templates: time 0.004448/0.3595, allocations: 2.268 MB / 488.4 MB, free: 0.582 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches