Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001905/0.001905, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002393/0.002393, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.44/1.44, allocations: 230.6 MB / 258.2 MB, free: 8.02 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc")
translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 64.55 kB / 379.1 MB, free: 2.617 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2487, allocations: 53.37 MB / 432.4 MB, free: 6.922 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004639/0.2534, allocations: 2.914 MB / 435.3 MB, free: 3.996 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001704/0.2551, allocations: 0.775 MB / 436.1 MB, free: 3.215 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.2553, allocations: 7.938 kB / 436.1 MB, free: 3.207 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002294/0.2555, allocations: 55.5 kB / 436.2 MB, free: 3.152 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002573/0.2558, allocations: 91.17 kB / 436.3 MB, free: 3.062 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004046/0.2562, allocations: 103.8 kB / 436.4 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006197/0.2568, allocations: 374.3 kB / 436.7 MB, free: 2.594 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.2571, allocations: 85.64 kB / 436.8 MB, free: 2.508 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.2574, allocations: 147.5 kB / 437 MB, free: 2.363 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003315/0.2577, allocations: 151.3 kB / 437.1 MB, free: 2.215 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.899e-05/0.2578, allocations: 32 kB / 437.1 MB, free: 2.184 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.838e-05/0.2578, allocations: 28 kB / 437.2 MB, free: 2.156 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.746e-05/0.2579, allocations: 71.73 kB / 437.2 MB, free: 2.086 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002135/0.2581, allocations: 167.3 kB / 437.4 MB, free: 1.922 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.2587, allocations: 366.2 kB / 437.7 MB, free: 1.566 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2587, allocations: 0 / 437.7 MB, free: 1.566 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.533e-06/0.2587, allocations: 0 / 437.7 MB, free: 1.566 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.271e-05/0.2587, allocations: 0 / 437.7 MB, free: 1.566 MB / 334.1 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.001211/0.2599, allocations: 0.5378 MB / 438.3 MB, free: 1 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.26, allocations: 8.031 kB / 438.3 MB, free: 0.9922 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.2601, allocations: 40.7 kB / 438.3 MB, free: 0.9531 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004522/0.2605, allocations: 206.7 kB / 438.5 MB, free: 0.7227 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.528e-05/0.2606, allocations: 80.62 kB / 438.6 MB, free: 0.6328 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.595e-05/0.2607, allocations: 24.38 kB / 438.6 MB, free: 0.6094 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005259/0.2612, allocations: 306 kB / 438.9 MB, free: 308 kB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.2612, allocations: 4 kB / 438.9 MB, free: 304 kB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.2613, allocations: 8 kB / 438.9 MB, free: 296 kB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.2613, allocations: 8 kB / 439 MB, free: 288 kB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003661/0.2616, allocations: 190.5 kB / 439.1 MB, free: 96 kB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.2635, allocations: 1.081 MB / 440.2 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.2638, allocations: 150.5 kB / 440.4 MB, free: 14.78 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.264, allocations: 72.83 kB / 440.4 MB, free: 14.71 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.264, allocations: 3.938 kB / 440.4 MB, free: 14.7 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/0.2642, allocations: 163.7 kB / 440.6 MB, free: 14.52 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=21): time 2.074e-06/0.2642, allocations: 0 / 440.6 MB, free: 14.52 MB / 350.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001054/0.2653, allocations: 302.5 kB / 440.9 MB, free: 14.22 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.274e-05/0.2654, allocations: 106.8 kB / 441 MB, free: 14.09 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.2656, allocations: 232.9 kB / 441.2 MB, free: 13.85 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.2657, allocations: 29.7 kB / 441.3 MB, free: 13.82 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.2658, allocations: 184.5 kB / 441.4 MB, free: 13.63 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.431e-05/0.2659, allocations: 67.47 kB / 441.5 MB, free: 13.56 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.844e-05/0.266, allocations: 61.66 kB / 441.6 MB, free: 13.5 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001464/0.2661, allocations: 338.8 kB / 441.9 MB, free: 13.16 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.2662, allocations: 67.91 kB / 442 MB, free: 13.09 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.2664, allocations: 145.5 kB / 442.1 MB, free: 12.91 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.2667, allocations: 189.1 kB / 442.3 MB, free: 12.71 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.2667, allocations: 4 kB / 442.3 MB, free: 12.7 MB / 350.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.000489/0.2672, allocations: 272.7 kB / 442.6 MB, free: 12.43 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.2672, allocations: 8 kB / 442.6 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.2673, allocations: 4 kB / 442.6 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.2675, allocations: 52.8 kB / 442.6 MB, free: 12.36 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.2678, allocations: 55.91 kB / 442.7 MB, free: 12.31 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.2694, allocations: 1.472 MB / 444.2 MB, free: 10.72 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.2696, allocations: 39.77 kB / 444.2 MB, free: 10.68 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.2696, allocations: 15.98 kB / 444.2 MB, free: 10.67 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 8
 * Number of states: 0 ()
 * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (34):
 * Single equations (assignments): 33
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,1)}
Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.2698, allocations: 144.5 kB / 444.3 MB, free: 10.52 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.2698, allocations: 23.86 kB / 444.4 MB, free: 10.5 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.35e-05/0.2699, allocations: 34.33 kB / 444.4 MB, free: 10.46 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.2699, allocations: 0 / 444.4 MB, free: 10.46 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-06/0.2699, allocations: 0 / 444.4 MB, free: 10.46 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2699, allocations: 0 / 444.4 MB, free: 10.46 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003442/0.2702, allocations: 296.4 kB / 444.7 MB, free: 10.13 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.2702, allocations: 7.984 kB / 444.7 MB, free: 10.12 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.2704, allocations: 31.92 kB / 444.7 MB, free: 10.09 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002039/0.2706, allocations: 60.75 kB / 444.8 MB, free: 10.03 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.2706, allocations: 0 / 444.8 MB, free: 10.03 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.2719, allocations: 1.334 MB / 446.1 MB, free: 8.582 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2719, allocations: 0 / 446.1 MB, free: 8.582 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/0.2726, allocations: 321.8 kB / 446.4 MB, free: 8.246 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.891e-05/0.2727, allocations: 35.8 kB / 446.5 MB, free: 8.211 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.2727, allocations: 8 kB / 446.5 MB, free: 8.203 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.2729, allocations: 15.98 kB / 446.5 MB, free: 8.188 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.956e-05/0.273, allocations: 35.88 kB / 446.5 MB, free: 8.152 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.273, allocations: 8 kB / 446.5 MB, free: 8.145 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001615/0.2732, allocations: 164.5 kB / 446.7 MB, free: 7.988 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.2732, allocations: 4.062 kB / 446.7 MB, free: 7.984 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003689/0.2735, allocations: 79.78 kB / 446.8 MB, free: 7.906 MB / 350.1 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)
 * Number of clocked states: 0 ()
 * 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 (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,1)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001262/0.2737, allocations: 99.25 kB / 446.9 MB, free: 7.801 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005879/0.2743, allocations: 282.4 kB / 447.2 MB, free: 7.512 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.2743, allocations: 0 / 447.2 MB, free: 7.512 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000289/0.2745, allocations: 190.2 kB / 447.3 MB, free: 7.316 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.2748, allocations: 48.3 kB / 447.4 MB, free: 7.27 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.2765, allocations: 0.6594 MB / 448.1 MB, free: 6.578 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.2769, allocations: 0.7597 MB / 448.8 MB, free: 5.793 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 9.931e-05/0.277, allocations: 22.3 kB / 448.8 MB, free: 5.773 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/0.277, allocations: 23.42 kB / 448.9 MB, free: 5.75 MB / 350.1 MB
Notification: Performance of SimCode: time 3.71e-07/0.277, allocations: 0 / 448.9 MB, free: 5.75 MB / 350.1 MB
Notification: Performance of Templates: time 0.007997/0.285, allocations: 3.257 MB / 452.1 MB, free: 2.52 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.614834686741233]