Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002398/0.002397, allocations: 176.7 kB / 8.151 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.693/1.693, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001275/0.001274, allocations: 91.39 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.137e-06/9.298e-06, allocations: 0 / 314.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.248, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.3678, allocations: 77.26 MB / 439.1 MB, free: 8.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.3681, allocations: 72.45 kB / 439.2 MB, free: 8.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02359/0.3917, allocations: 5.085 MB / 444.2 MB, free: 3.699 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.3918, allocations: 8 kB / 444.3 MB, free: 3.691 MB / 330.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.001372/0.3932, allocations: 0.5402 MB / 444.8 MB, free: 3.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.3933, allocations: 13.81 kB / 444.8 MB, free: 3.094 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.3935, allocations: 35.62 kB / 444.8 MB, free: 3.059 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.394, allocations: 254.4 kB / 445.1 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.3941, allocations: 72.05 kB / 445.2 MB, free: 2.688 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.281e-05/0.3942, allocations: 16 kB / 445.2 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005949/0.3948, allocations: 161.3 kB / 445.3 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006519/0.3955, allocations: 252.5 kB / 445.6 MB, free: 2.254 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.3955, allocations: 0 / 445.6 MB, free: 2.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.3956, allocations: 4 kB / 445.6 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.3956, allocations: 11.98 kB / 445.6 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.3984, allocations: 1.076 MB / 446.7 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.3987, allocations: 89.69 kB / 446.8 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.399, allocations: 69.89 kB / 446.8 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.399, allocations: 4 kB / 446.8 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003337/0.3993, allocations: 139.4 kB / 447 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.776e-06/0.3994, allocations: 0 / 447 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009008/0.4003, allocations: 204.5 kB / 447.2 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.4004, allocations: 106.8 kB / 447.3 MB, free: 436 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002476/0.4006, allocations: 163.6 kB / 447.4 MB, free: 264 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.4007, allocations: 29.17 kB / 447.5 MB, free: 232 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.4008, allocations: 230.3 kB / 447.7 MB, free: 0 / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.4009, allocations: 67.61 kB / 447.8 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.658e-05/0.401, allocations: 0 / 447.8 MB, free: 15.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4011, allocations: 326.8 kB / 448.1 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.4013, allocations: 56.55 kB / 448.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/0.4016, allocations: 119.9 kB / 448.2 MB, free: 15.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.4018, allocations: 61.12 kB / 448.3 MB, free: 15.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.4018, allocations: 4 kB / 448.3 MB, free: 15.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006331/0.4025, allocations: 216.4 kB / 448.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.4025, allocations: 4 kB / 448.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4025, allocations: 4 kB / 448.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004117/0.403, allocations: 56.97 kB / 448.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003801/0.4034, allocations: 47.92 kB / 448.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.405, allocations: 1.248 MB / 449.9 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/0.4054, allocations: 32.02 kB / 449.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.785e-05/0.4055, allocations: 12 kB / 449.9 MB, free: 13.61 MB / 346.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.0001771/0.4057, allocations: 37.55 kB / 450 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.635e-05/0.4058, allocations: 19.81 kB / 450 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.804e-05/0.4059, allocations: 33.72 kB / 450 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.4059, allocations: 0 / 450 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4059, allocations: 0 / 450 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4059, allocations: 4 kB / 450 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/0.4064, allocations: 277.8 kB / 450.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.4064, allocations: 0 / 450.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003372/0.4067, allocations: 31.98 kB / 450.3 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003318/0.4071, allocations: 56.77 kB / 450.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.4071, allocations: 3.984 kB / 450.4 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.4085, allocations: 1.247 MB / 451.6 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.4086, allocations: 0 / 451.6 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001033/0.4096, allocations: 299.6 kB / 451.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.4098, allocations: 120.7 kB / 452 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.671e-05/0.4099, allocations: 0 / 452 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.4102, allocations: 20.05 kB / 452.1 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.448e-05/0.4103, allocations: 19.97 kB / 452.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.4103, allocations: 11.98 kB / 452.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001667/0.4105, allocations: 137.1 kB / 452.2 MB, free: 11.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004629/0.411, allocations: 71.75 kB / 452.3 MB, free: 11.04 MB / 346.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.0001943/0.4112, allocations: 108.1 kB / 452.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007318/0.4119, allocations: 256.1 kB / 452.6 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.412, allocations: 0 / 452.6 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003882/0.4124, allocations: 169.8 kB / 452.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.4127, allocations: 24.3 kB / 452.8 MB, free: 10.47 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.415, allocations: 0.5037 MB / 453.3 MB, free: 9.934 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005066/0.4156, allocations: 0.7898 MB / 454.1 MB, free: 9.121 MB / 346.7 MB Notification: Performance of SimCode: time 1.302e-06/0.4156, allocations: 0.5625 kB / 454.1 MB, free: 9.121 MB / 346.7 MB Notification: Performance of Templates: time 0.01015/0.4258, allocations: 3.926 MB / 458.1 MB, free: 5.215 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches