Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [: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.0009707/0.0009708, allocations: 181 kB / 8.134 MB, free: 2.113 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.151/1.151, allocations: 221.4 MB / 229.9 MB, free: 3.406 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.0009172/0.0009171, allocations: 98.72 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.396e-06/8.416e-06, allocations: 4 kB / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.186, allocations: 50.39 MB / 386.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08065/0.2667, allocations: 78.62 MB / 465.5 MB, free: 8.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001794/0.2669, allocations: 71.95 kB / 465.6 MB, free: 8.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01426/0.2812, allocations: 5.273 MB / 470.9 MB, free: 2.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.2812, allocations: 4 kB / 470.9 MB, free: 2.824 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0007705/0.282, allocations: 0.5443 MB / 471.4 MB, free: 2.238 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.282, allocations: 13.25 kB / 471.4 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.126e-05/0.2821, allocations: 31.62 kB / 471.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.2824, allocations: 262.4 kB / 471.7 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.604e-05/0.2825, allocations: 64.06 kB / 471.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.2825, allocations: 16 kB / 471.8 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003113/0.2828, allocations: 169.3 kB / 472 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003718/0.2832, allocations: 244.7 kB / 472.2 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.2832, allocations: 1.062 kB / 472.2 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.2833, allocations: 3.906 kB / 472.2 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.2833, allocations: 11.94 kB / 472.2 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.2848, allocations: 1.076 MB / 473.3 MB, free: 228 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.285, allocations: 91.27 kB / 473.4 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.2851, allocations: 79.83 kB / 473.5 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.2851, allocations: 2.062 kB / 473.5 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.2853, allocations: 135.5 kB / 473.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.2853, allocations: 4 kB / 473.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005138/0.2858, allocations: 198 kB / 473.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.2859, allocations: 110.8 kB / 473.9 MB, free: 15.56 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.2861, allocations: 170.3 kB / 474.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.2861, allocations: 25.7 kB / 474.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.168e-05/0.2862, allocations: 167.9 kB / 474.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.767e-05/0.2863, allocations: 67.03 kB / 474.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/0.2863, allocations: 0 / 474.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.325e-05/0.2864, allocations: 330.7 kB / 474.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.2865, allocations: 56.56 kB / 474.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.2866, allocations: 124.7 kB / 474.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.2867, allocations: 61.16 kB / 474.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2868, allocations: 0 / 474.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003516/0.2871, allocations: 229.5 kB / 475.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.2871, allocations: 7.938 kB / 475.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.2871, allocations: 0 / 475.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002395/0.2874, allocations: 68.86 kB / 475.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.2876, allocations: 47.92 kB / 475.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009895/0.2886, allocations: 1.249 MB / 476.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.2888, allocations: 31.73 kB / 476.5 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.2889, allocations: 24.88 kB / 476.5 MB, free: 12.75 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.289, allocations: 109 kB / 476.6 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.851e-05/0.289, allocations: 23.72 kB / 476.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.198e-05/0.2891, allocations: 21.75 kB / 476.7 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2891, allocations: 3.938 kB / 476.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-06/0.2891, allocations: 0 / 476.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2891, allocations: 3.984 kB / 476.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.2894, allocations: 265.9 kB / 477 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2894, allocations: 5.312 kB / 477 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.2895, allocations: 35.98 kB / 477 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.2897, allocations: 48.81 kB / 477 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.2898, allocations: 8 kB / 477.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008827/0.2906, allocations: 1.255 MB / 478.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2907, allocations: 0 / 478.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005458/0.2912, allocations: 303.6 kB / 478.6 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.729e-05/0.2913, allocations: 108.8 kB / 478.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.579e-05/0.2914, allocations: 0 / 478.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.2915, allocations: 23.98 kB / 478.7 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.831e-05/0.2916, allocations: 24.02 kB / 478.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.2916, allocations: 4 kB / 478.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.155e-05/0.2917, allocations: 134.6 kB / 478.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002967/0.292, allocations: 71.84 kB / 479 MB, free: 10.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000133/0.2922, allocations: 104.4 kB / 479.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.2926, allocations: 249.8 kB / 479.3 MB, free: 9.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2926, allocations: 8.312 kB / 479.3 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002226/0.2928, allocations: 173.6 kB / 479.5 MB, free: 9.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.293, allocations: 33.05 kB / 479.5 MB, free: 9.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.2943, allocations: 0.4888 MB / 480 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.2946, allocations: 0.782 MB / 480.8 MB, free: 8.238 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2946, allocations: 0 / 480.8 MB, free: 8.238 MB / 362.7 MB Notification: Performance of Templates: time 0.005395/0.3, allocations: 2.602 MB / 483.4 MB, free: 5.672 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches