Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 183.2 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.156/1.156, allocations: 221.4 MB / 229.9 MB, free: 2.996 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.0009113/0.0009113, allocations: 95.48 kB / 280.8 MB, free: 1.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.067e-06/9.167e-06, allocations: 4 kB / 336.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1906, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08719/0.2778, allocations: 78.01 MB / 464.9 MB, free: 8.789 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001526/0.278, allocations: 71.91 kB / 465 MB, free: 8.719 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01282/0.2908, allocations: 4.856 MB / 469.8 MB, free: 3.879 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.2909, allocations: 9.5 kB / 469.8 MB, free: 3.871 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.0007207/0.2916, allocations: 0.5724 MB / 470.4 MB, free: 3.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2916, allocations: 8.031 kB / 470.4 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.923e-05/0.2917, allocations: 39.53 kB / 470.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.292, allocations: 270.6 kB / 470.7 MB, free: 2.902 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.292, allocations: 8.5 kB / 470.7 MB, free: 2.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.2921, allocations: 16 kB / 470.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003235/0.2924, allocations: 165.2 kB / 470.9 MB, free: 2.719 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.2927, allocations: 196.8 kB / 471.1 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.2928, allocations: 3.906 kB / 471.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.2928, allocations: 0.5625 kB / 471.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.2928, allocations: 8 kB / 471.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.2943, allocations: 0.9364 MB / 472.1 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002983/0.2946, allocations: 167 kB / 472.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.2948, allocations: 101 kB / 472.3 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.2949, allocations: 4.188 kB / 472.3 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.2949, allocations: 34.75 kB / 472.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.2949, allocations: 0 / 472.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004899/0.2954, allocations: 218.9 kB / 472.6 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.2954, allocations: 63.33 kB / 472.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.2956, allocations: 208 kB / 472.8 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.2957, allocations: 25.7 kB / 472.9 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.49e-05/0.2957, allocations: 163.9 kB / 473 MB, free: 500 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.256e-05/0.2958, allocations: 63.02 kB / 473.1 MB, free: 436 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.868e-06/0.2958, allocations: 0 / 473.1 MB, free: 436 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.482e-05/0.2959, allocations: 338.8 kB / 473.4 MB, free: 88 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.291e-05/0.296, allocations: 52.47 kB / 473.5 MB, free: 28 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.2961, allocations: 83.34 kB / 473.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.2963, allocations: 63.92 kB / 473.6 MB, free: 15.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2963, allocations: 0 / 473.6 MB, free: 15.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004345/0.2967, allocations: 262.8 kB / 473.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.2967, allocations: 4 kB / 473.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2967, allocations: 4 kB / 473.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000245/0.297, allocations: 65.67 kB / 473.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2972, allocations: 60.75 kB / 474 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.2993, allocations: 2.676 MB / 476.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.2995, allocations: 31.83 kB / 476.7 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.2995, allocations: 8.312 kB / 476.7 MB, free: 12.53 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 (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 8.411e-05/0.2996, allocations: 108.9 kB / 476.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.22e-05/0.2996, allocations: 23.72 kB / 476.8 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.051e-05/0.2997, allocations: 26.8 kB / 476.9 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.2997, allocations: 11.98 kB / 476.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2997, allocations: 0 / 476.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2997, allocations: 3.938 kB / 476.9 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007418/0.3005, allocations: 0.5849 MB / 477.5 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3005, allocations: 0 / 477.5 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.3006, allocations: 31.98 kB / 477.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.3008, allocations: 73.58 kB / 477.6 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.3009, allocations: 1.031 kB / 477.6 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.3027, allocations: 2.688 MB / 480.3 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3027, allocations: 0 / 480.3 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003898/0.3031, allocations: 320.8 kB / 480.6 MB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/0.3032, allocations: 104.8 kB / 480.7 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.3032, allocations: 4 kB / 480.7 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.3035, allocations: 35.97 kB / 480.7 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.3036, allocations: 7.984 kB / 480.7 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.3036, allocations: 12 kB / 480.7 MB, free: 8.176 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001216/0.3037, allocations: 164.5 kB / 480.9 MB, free: 8.016 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003488/0.3041, allocations: 87.69 kB / 481 MB, free: 7.93 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.0001187/0.3042, allocations: 99.19 kB / 481.1 MB, free: 7.824 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004891/0.3047, allocations: 367.4 kB / 481.4 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3047, allocations: 0 / 481.4 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.305, allocations: 298.8 kB / 481.7 MB, free: 7.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.3052, allocations: 31.67 kB / 481.8 MB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005808/0.3058, allocations: 307.9 kB / 482.1 MB, free: 6.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003201/0.3062, allocations: 0.7942 MB / 482.9 MB, free: 5.969 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3062, allocations: 0 / 482.9 MB, free: 5.969 MB / 362.7 MB Notification: Performance of Templates: time 0.005876/0.312, allocations: 3.142 MB / 486 MB, free: 2.871 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches