Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") [: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.001427/0.001427, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.148/1.148, allocations: 225.5 MB / 234.4 MB, free: 14.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009088/0.0009089, allocations: 95.92 kB / 286.3 MB, free: 12.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.007e-05/1.009e-05, allocations: 4 kB / 343.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1802, allocations: 51.47 MB / 394.6 MB, free: 33.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08635/0.2666, allocations: 78.62 MB / 473.2 MB, free: 2.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.2668, allocations: 68.89 kB / 473.3 MB, free: 2.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007603/0.2745, allocations: 2.592 MB / 475.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.2745, allocations: 0 / 475.9 MB, free: 15.8 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004259/0.2749, allocations: 418.2 kB / 476.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.275, allocations: 8.031 kB / 476.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.2752, allocations: 35.8 kB / 476.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.2754, allocations: 206.8 kB / 476.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.2754, allocations: 4 kB / 476.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.2754, allocations: 4 kB / 476.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000148/0.2756, allocations: 60.47 kB / 476.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.2758, allocations: 91.25 kB / 476.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.2758, allocations: 3.984 kB / 476.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.2758, allocations: 5.125 kB / 476.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-06/0.2758, allocations: 4 kB / 476.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008152/0.2767, allocations: 0.5669 MB / 477.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.2769, allocations: 82.56 kB / 477.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.457e-05/0.277, allocations: 24.98 kB / 477.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.277, allocations: 4 kB / 477.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.2771, allocations: 34.5 kB / 477.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.2771, allocations: 0 / 477.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003345/0.2774, allocations: 106.3 kB / 477.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.2774, allocations: 51.41 kB / 477.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.2776, allocations: 127.6 kB / 477.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.2776, allocations: 25.7 kB / 477.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.853e-05/0.2777, allocations: 124.9 kB / 477.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/0.2777, allocations: 19.75 kB / 477.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.2777, allocations: 0 / 477.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.2778, allocations: 318.8 kB / 478.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.486e-05/0.2779, allocations: 16 kB / 478.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.723e-05/0.2779, allocations: 43.53 kB / 478.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.371e-05/0.278, allocations: 20 kB / 478.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.278, allocations: 3.906 kB / 478.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00023/0.2782, allocations: 114.4 kB / 478.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.2783, allocations: 7.438 kB / 478.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2783, allocations: 0 / 478.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.2785, allocations: 36.84 kB / 478.4 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.794e-05/0.2785, allocations: 16.05 kB / 478.4 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.2798, allocations: 1.434 MB / 479.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.967e-05/0.2799, allocations: 11.91 kB / 479.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.609e-06/0.2799, allocations: 4.062 kB / 479.9 MB, free: 11.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 7.636e-05/0.28, allocations: 105.2 kB / 480 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.297e-05/0.28, allocations: 7.906 kB / 480 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.28, allocations: 12.5 kB / 480 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.28, allocations: 11.98 kB / 480 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.2801, allocations: 0 / 480 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2801, allocations: 3.906 kB / 480 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.2803, allocations: 178.2 kB / 480.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2803, allocations: 0 / 480.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.113e-05/0.2804, allocations: 4.047 kB / 480.2 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.2805, allocations: 40.81 kB / 480.2 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.2805, allocations: 0 / 480.2 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.2817, allocations: 1.435 MB / 481.7 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2817, allocations: 4 kB / 481.7 MB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002581/0.282, allocations: 192.3 kB / 481.9 MB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.282, allocations: 96.94 kB / 481.9 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.282, allocations: 0 / 481.9 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.2822, allocations: 8.062 kB / 482 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.2823, allocations: 7.984 kB / 482 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.2823, allocations: 3.906 kB / 482 MB, free: 9.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.355e-05/0.2823, allocations: 103.2 kB / 482.1 MB, free: 9.047 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000751/0.2831, allocations: 35.94 kB / 482.1 MB, free: 9.012 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001233/0.2832, allocations: 100.2 kB / 482.2 MB, free: 8.902 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002768/0.2835, allocations: 157.7 kB / 482.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2835, allocations: 0 / 482.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.2837, allocations: 133.8 kB / 482.5 MB, free: 8.598 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.284, allocations: 11.91 kB / 482.5 MB, free: 8.586 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000367/0.2844, allocations: 144.2 kB / 482.6 MB, free: 8.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/0.2846, allocations: 0.7301 MB / 483.4 MB, free: 7.672 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2846, allocations: 0 / 483.4 MB, free: 7.672 MB / 362.7 MB Notification: Performance of Templates: time 0.003543/0.2882, allocations: 1.309 MB / 484.7 MB, free: 6.391 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches