Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [: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.001039/0.001039, allocations: 200.1 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008551/0.0008552, allocations: 94.34 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.075e-06/8.105e-06, allocations: 4 kB / 343.1 MB, free: 8.719 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09329, allocations: 51.47 MB / 394.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2287/0.322, allocations: 78.82 MB / 473.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001497/0.3222, allocations: 71.25 kB / 473.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01218/0.3344, allocations: 4.944 MB / 478.5 MB, free: 10.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.3344, allocations: 8.188 kB / 478.5 MB, free: 10.2 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0007196/0.3351, allocations: 0.5773 MB / 479 MB, free: 9.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.3352, allocations: 8.031 kB / 479 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.3354, allocations: 51.52 kB / 479.1 MB, free: 9.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.3356, allocations: 265.4 kB / 479.4 MB, free: 9.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.3356, allocations: 12 kB / 479.4 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.3357, allocations: 19.39 kB / 479.4 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002715/0.336, allocations: 162.5 kB / 479.5 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.3363, allocations: 200 kB / 479.7 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3363, allocations: 0 / 479.7 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.3363, allocations: 0 / 479.7 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3363, allocations: 8 kB / 479.7 MB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.3377, allocations: 0.9277 MB / 480.7 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.338, allocations: 168.8 kB / 480.8 MB, free: 8.027 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.3381, allocations: 94.84 kB / 480.9 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.3382, allocations: 4.188 kB / 480.9 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.635e-05/0.3382, allocations: 43.75 kB / 481 MB, free: 7.914 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.094e-06/0.3382, allocations: 3.984 kB / 481 MB, free: 7.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004349/0.3386, allocations: 212.4 kB / 481.2 MB, free: 7.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.663e-05/0.3387, allocations: 62.66 kB / 481.3 MB, free: 7.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.3389, allocations: 202.1 kB / 481.4 MB, free: 7.492 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.3389, allocations: 25.7 kB / 481.5 MB, free: 7.461 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.3389, allocations: 166.1 kB / 481.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.339, allocations: 69.38 kB / 481.7 MB, free: 7.246 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.003e-05/0.339, allocations: 4 kB / 481.7 MB, free: 7.242 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.766e-05/0.339, allocations: 332.9 kB / 482 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.704e-05/0.3391, allocations: 52.34 kB / 482.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.3393, allocations: 77.47 kB / 482.2 MB, free: 6.828 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.3394, allocations: 71.97 kB / 482.2 MB, free: 6.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3394, allocations: 3.906 kB / 482.2 MB, free: 6.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004/0.3398, allocations: 254.5 kB / 482.5 MB, free: 6.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.3398, allocations: 11.94 kB / 482.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3398, allocations: 0 / 482.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/0.3401, allocations: 74.64 kB / 482.6 MB, free: 6.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.3403, allocations: 39.98 kB / 482.6 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.3418, allocations: 2.687 MB / 485.3 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.342, allocations: 27.89 kB / 485.3 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.342, allocations: 7.828 kB / 485.3 MB, free: 3.684 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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/0.3421, allocations: 117.7 kB / 485.4 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.3421, allocations: 23.72 kB / 485.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.3422, allocations: 30.67 kB / 485.5 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.3422, allocations: 4 kB / 485.5 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3422, allocations: 1.125 kB / 485.5 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3422, allocations: 4 kB / 485.5 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006709/0.3429, allocations: 0.5634 MB / 486.1 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.3429, allocations: 7.906 kB / 486.1 MB, free: 3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.343, allocations: 35.91 kB / 486.1 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.3432, allocations: 75.42 kB / 486.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.3432, allocations: 0 / 486.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/0.3446, allocations: 2.695 MB / 488.9 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3446, allocations: 0.75 kB / 488.9 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004004/0.345, allocations: 320.1 kB / 489.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.014e-05/0.3451, allocations: 112.3 kB / 489.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.3451, allocations: 0 / 489.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.3454, allocations: 35.97 kB / 489.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.3455, allocations: 7.984 kB / 489.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.3455, allocations: 13.31 kB / 489.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001297/0.3456, allocations: 160.6 kB / 489.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003704/0.346, allocations: 83.75 kB / 489.6 MB, free: 15.47 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 (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001452/0.3462, allocations: 103.2 kB / 489.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005063/0.3467, allocations: 370.1 kB / 490.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3467, allocations: 0 / 490.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.347, allocations: 294 kB / 490.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.3473, allocations: 26.05 kB / 490.4 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006345/0.3479, allocations: 309.6 kB / 490.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.3483, allocations: 0.7893 MB / 491.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.874e-06/0.3483, allocations: 0 / 491.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of Templates: time 0.006255/0.3546, allocations: 3.164 MB / 494.6 MB, free: 10.55 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches