Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001419/0.001419, allocations: 172.6 kB / 8.47 MB, free: 1.852 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.193/1.193, allocations: 205.2 MB / 214.1 MB, free: 5.445 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009343/0.0009341, allocations: 82.83 kB / 262.1 MB, free: 5.504 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.227e-06/9.258e-06, allocations: 4 kB / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08435, allocations: 47.58 MB / 362.5 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2622/0.3466, allocations: 77.26 MB / 439.8 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000175/0.3468, allocations: 68.81 kB / 439.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01302/0.3598, allocations: 5.073 MB / 444.9 MB, free: 10.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.638e-05/0.3599, allocations: 11.72 kB / 444.9 MB, free: 10.37 MB / 314.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.00078/0.3606, allocations: 0.5421 MB / 445.5 MB, free: 9.945 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.3607, allocations: 11.72 kB / 445.5 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.754e-05/0.3608, allocations: 38.97 kB / 445.5 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.3611, allocations: 253.7 kB / 445.8 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.571e-05/0.3611, allocations: 65.08 kB / 445.9 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.3612, allocations: 19.5 kB / 445.9 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002971/0.3615, allocations: 161.2 kB / 446 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.3619, allocations: 259 kB / 446.3 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3619, allocations: 0 / 446.3 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.3619, allocations: 4.516 kB / 446.3 MB, free: 9.559 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.362, allocations: 7.75 kB / 446.3 MB, free: 9.559 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.3637, allocations: 1.075 MB / 447.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.3639, allocations: 91.53 kB / 447.5 MB, free: 8.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.364, allocations: 70.66 kB / 447.5 MB, free: 8.902 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.364, allocations: 7.812 kB / 447.5 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001698/0.3642, allocations: 137 kB / 447.7 MB, free: 8.805 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.714e-06/0.3642, allocations: 0 / 447.7 MB, free: 8.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005165/0.3647, allocations: 203.8 kB / 447.9 MB, free: 8.727 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.3648, allocations: 114.1 kB / 448 MB, free: 8.598 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.3649, allocations: 164.4 kB / 448.1 MB, free: 8.488 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.3649, allocations: 29.69 kB / 448.2 MB, free: 8.453 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.088e-05/0.365, allocations: 168.7 kB / 448.3 MB, free: 8.312 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.3651, allocations: 68.95 kB / 448.4 MB, free: 8.266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.008e-05/0.3651, allocations: 4 kB / 448.4 MB, free: 8.262 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.459e-05/0.3651, allocations: 333.2 kB / 448.7 MB, free: 7.938 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.714e-05/0.3652, allocations: 59.09 kB / 448.8 MB, free: 7.934 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.3653, allocations: 112.3 kB / 448.9 MB, free: 7.867 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.3654, allocations: 63.48 kB / 449 MB, free: 7.855 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3655, allocations: 3.844 kB / 449 MB, free: 7.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003445/0.3658, allocations: 231.6 kB / 449.2 MB, free: 7.773 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.3658, allocations: 3.844 kB / 449.2 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3658, allocations: 0 / 449.2 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.3661, allocations: 59.7 kB / 449.3 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.3663, allocations: 46.78 kB / 449.3 MB, free: 7.742 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007916/0.3671, allocations: 1.258 MB / 450.6 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.3673, allocations: 35.33 kB / 450.6 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.3673, allocations: 7.562 kB / 450.6 MB, free: 6.488 MB / 314.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.0001137/0.3675, allocations: 115.8 kB / 450.7 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.3675, allocations: 23.44 kB / 450.7 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.734e-05/0.3675, allocations: 23.42 kB / 450.8 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3676, allocations: 3.906 kB / 450.8 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.3676, allocations: 0 / 450.8 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.3676, allocations: 0 / 450.8 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.3678, allocations: 279 kB / 451 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3678, allocations: 0 / 451 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.368, allocations: 27.2 kB / 451.1 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001654/0.3681, allocations: 57.62 kB / 451.1 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.3682, allocations: 0 / 451.1 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006653/0.3688, allocations: 1.257 MB / 452.4 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3688, allocations: 0 / 452.4 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004761/0.3693, allocations: 303.4 kB / 452.7 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.011e-05/0.3694, allocations: 109.8 kB / 452.8 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.3695, allocations: 0 / 452.8 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.3696, allocations: 23.45 kB / 452.8 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.3697, allocations: 19.56 kB / 452.8 MB, free: 4.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.3697, allocations: 11.52 kB / 452.8 MB, free: 4.621 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.817e-05/0.3698, allocations: 125.4 kB / 452.9 MB, free: 4.543 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002846/0.3701, allocations: 73.5 kB / 453 MB, free: 4.531 MB / 314.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.0001117/0.3702, allocations: 120.2 kB / 453.1 MB, free: 4.426 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.3706, allocations: 249.8 kB / 453.4 MB, free: 4.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3706, allocations: 0 / 453.4 MB, free: 4.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.3708, allocations: 174 kB / 453.6 MB, free: 20.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002047/0.371, allocations: 30.58 kB / 453.6 MB, free: 20.19 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.3721, allocations: 486.3 kB / 454.1 MB, free: 19.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.3725, allocations: 0.7902 MB / 454.8 MB, free: 19.16 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3725, allocations: 0 / 454.8 MB, free: 19.16 MB / 330.7 MB Notification: Performance of Templates: time 0.004999/0.3775, allocations: 2.609 MB / 457.5 MB, free: 17.88 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches