Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009927/0.0009928, allocations: 185.6 kB / 8.139 MB, free: 2.219 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.165/1.165, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.000927/0.000927, allocations: 97.45 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.464e-06/7.494e-06, allocations: 4 kB / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.18, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07763/0.2577, allocations: 78.82 MB / 465.7 MB, free: 7.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/0.2579, allocations: 68.48 kB / 465.8 MB, free: 7.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01093/0.2689, allocations: 3.758 MB / 469.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.2689, allocations: 8 kB / 469.6 MB, free: 4.188 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.000616/0.2695, allocations: 490.1 kB / 470 MB, free: 3.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2696, allocations: 8.031 kB / 470 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.2696, allocations: 23.72 kB / 470.1 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.2699, allocations: 238.6 kB / 470.3 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.2699, allocations: 4 kB / 470.3 MB, free: 3.352 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.27, allocations: 12 kB / 470.3 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002635/0.2702, allocations: 128.9 kB / 470.4 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.2705, allocations: 150.4 kB / 470.6 MB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2705, allocations: 4 kB / 470.6 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.2706, allocations: 5.219 kB / 470.6 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.2706, allocations: 4 kB / 470.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.2719, allocations: 0.8111 MB / 471.4 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.2721, allocations: 93.61 kB / 471.5 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.2723, allocations: 80.86 kB / 471.6 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2723, allocations: 7.938 kB / 471.6 MB, free: 1.973 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.2723, allocations: 38.64 kB / 471.6 MB, free: 1.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.473e-06/0.2723, allocations: 0 / 471.6 MB, free: 1.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006142/0.2729, allocations: 195.1 kB / 471.8 MB, free: 1.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.273, allocations: 55.41 kB / 471.9 MB, free: 1.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.2731, allocations: 153.6 kB / 472 MB, free: 1.504 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.2732, allocations: 29.7 kB / 472.1 MB, free: 1.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.305e-05/0.2733, allocations: 132.2 kB / 472.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.2733, allocations: 55.2 kB / 472.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.055e-06/0.2733, allocations: 0 / 472.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.2734, allocations: 331.5 kB / 472.6 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.474e-05/0.2735, allocations: 40.38 kB / 472.6 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.877e-05/0.2736, allocations: 62.27 kB / 472.7 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/0.2738, allocations: 62.89 kB / 472.7 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2738, allocations: 0 / 472.7 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004566/0.2743, allocations: 214.2 kB / 472.9 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.2743, allocations: 4 kB / 472.9 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2743, allocations: 0 / 472.9 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005582/0.2749, allocations: 108.1 kB / 473 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.275, allocations: 27.98 kB / 473.1 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005924/0.2756, allocations: 0.642 MB / 473.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.2758, allocations: 11.84 kB / 473.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.2758, allocations: 9.25 kB / 473.7 MB, free: 15.74 MB / 362.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 7.894e-05/0.2759, allocations: 105 kB / 473.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.289e-05/0.276, allocations: 19.88 kB / 473.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004636/0.2764, allocations: 207.1 kB / 474.1 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2764, allocations: 7.844 kB / 474.1 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2765, allocations: 0 / 474.1 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2765, allocations: 7.984 kB / 474.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000841/0.2773, allocations: 0.5423 MB / 474.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2773, allocations: 0.75 kB / 474.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.2775, allocations: 27.98 kB / 474.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004906/0.278, allocations: 104.8 kB / 474.7 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.278, allocations: 4 kB / 474.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005388/0.2786, allocations: 0.6497 MB / 475.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2786, allocations: 5.562 kB / 475.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006041/0.2792, allocations: 387 kB / 475.8 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.2793, allocations: 96.86 kB / 475.9 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.2793, allocations: 4.062 kB / 475.9 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.2795, allocations: 11.98 kB / 475.9 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.646e-05/0.2795, allocations: 7.984 kB / 475.9 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.2795, allocations: 4 kB / 475.9 MB, free: 13.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.287e-05/0.2796, allocations: 124.2 kB / 476 MB, free: 13.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003074/0.2799, allocations: 59.78 kB / 476.1 MB, free: 13.26 MB / 362.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.0001652/0.2801, allocations: 115.2 kB / 476.2 MB, free: 13.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002831/0.2804, allocations: 124 kB / 476.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2804, allocations: 0 / 476.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.2806, allocations: 79.91 kB / 476.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.2808, allocations: 16.12 kB / 476.4 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000741/0.2816, allocations: 372.1 kB / 476.8 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003172/0.2819, allocations: 0.7703 MB / 477.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2819, allocations: 0 / 477.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of Templates: time 0.004942/0.2868, allocations: 2.28 MB / 479.8 MB, free: 9.5 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches