Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009928/0.0009929, allocations: 183.1 kB / 8.136 MB, free: 2.207 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.218/1.218, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0008996/0.0008997, allocations: 106.1 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.655e-06/7.765e-06, allocations: 4 kB / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1961, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08386/0.28, allocations: 77.8 MB / 464.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.2802, allocations: 68.56 kB / 464.8 MB, free: 8.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007365/0.2876, allocations: 2.506 MB / 467.3 MB, free: 6.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.2876, allocations: 4 kB / 467.3 MB, free: 6.434 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004526/0.2881, allocations: 408.3 kB / 467.7 MB, free: 5.988 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2881, allocations: 8.031 kB / 467.7 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.378e-05/0.2882, allocations: 19.81 kB / 467.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002336/0.2885, allocations: 205.9 kB / 467.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.2885, allocations: 4 kB / 467.9 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.003e-05/0.2885, allocations: 7.984 kB / 467.9 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001588/0.2887, allocations: 64.47 kB / 468 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.2889, allocations: 91.31 kB / 468.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.2889, allocations: 0 / 468.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.2889, allocations: 0 / 468.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.2889, allocations: 4 kB / 468.1 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008194/0.2898, allocations: 0.5746 MB / 468.7 MB, free: 4.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.29, allocations: 78.64 kB / 468.7 MB, free: 4.824 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.651e-05/0.2901, allocations: 29.66 kB / 468.8 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.2901, allocations: 0 / 468.8 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.2901, allocations: 30.56 kB / 468.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.2901, allocations: 0 / 468.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003179/0.2905, allocations: 102.3 kB / 468.9 MB, free: 4.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.2905, allocations: 63.41 kB / 469 MB, free: 4.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.2906, allocations: 123.7 kB / 469.1 MB, free: 4.445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.2906, allocations: 29.64 kB / 469.1 MB, free: 4.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.2907, allocations: 121.1 kB / 469.2 MB, free: 4.285 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.2907, allocations: 19.72 kB / 469.2 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/0.2908, allocations: 0 / 469.2 MB, free: 4.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2909, allocations: 318.8 kB / 469.6 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.414e-05/0.2909, allocations: 16 kB / 469.6 MB, free: 3.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.814e-05/0.291, allocations: 34.58 kB / 469.6 MB, free: 3.887 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.595e-05/0.291, allocations: 23.98 kB / 469.6 MB, free: 3.863 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.291, allocations: 2.438 kB / 469.6 MB, free: 3.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002426/0.2913, allocations: 119.6 kB / 469.7 MB, free: 3.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.2913, allocations: 4 kB / 469.7 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2913, allocations: 4 kB / 469.8 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.2915, allocations: 44.88 kB / 469.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.206e-05/0.2916, allocations: 11.94 kB / 469.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.2929, allocations: 1.429 MB / 471.2 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.443e-05/0.293, allocations: 7.906 kB / 471.2 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.2931, allocations: 6.406 kB / 471.2 MB, free: 2.117 MB / 346.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.992e-05/0.2931, allocations: 113.1 kB / 471.4 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.2932, allocations: 7.906 kB / 471.4 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.071e-05/0.2932, allocations: 8.5 kB / 471.4 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2932, allocations: 4.625 kB / 471.4 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2932, allocations: 0 / 471.4 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2932, allocations: 3.938 kB / 471.4 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.2934, allocations: 186 kB / 471.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2934, allocations: 1.125 kB / 471.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.2935, allocations: 4 kB / 471.6 MB, free: 1.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001356/0.2936, allocations: 40.83 kB / 471.6 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.2936, allocations: 0 / 471.6 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.2948, allocations: 1.429 MB / 473 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2948, allocations: 0 / 473 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002855/0.2951, allocations: 196.9 kB / 473.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.2952, allocations: 89.08 kB / 473.3 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.2952, allocations: 0 / 473.3 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.2953, allocations: 11.98 kB / 473.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.168e-05/0.2953, allocations: 5.781 kB / 473.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.2954, allocations: 0 / 473.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.401e-05/0.2954, allocations: 110.5 kB / 473.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003433/0.2958, allocations: 39.84 kB / 473.5 MB, free: 15.69 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.0001162/0.2959, allocations: 99.25 kB / 473.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000288/0.2962, allocations: 161.7 kB / 473.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2962, allocations: 0 / 473.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.2964, allocations: 129.7 kB / 473.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001894/0.2966, allocations: 17.06 kB / 473.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003691/0.297, allocations: 148 kB / 474 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000299/0.2973, allocations: 0.7224 MB / 474.7 MB, free: 14.35 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2973, allocations: 0 / 474.7 MB, free: 14.35 MB / 362.7 MB Notification: Performance of Templates: time 0.00359/0.3009, allocations: 1.313 MB / 476.1 MB, free: 13.07 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches