Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001493/0.001493, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001977/0.001977, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.617/1.617, allocations: 230.3 MB / 258 MB, free: 8.266 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 63.89 kB / 378.8 MB, free: 2.777 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2813, allocations: 53.36 MB / 432.1 MB, free: 7.066 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004574/0.2859, allocations: 2.917 MB / 435.1 MB, free: 4.141 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001558/0.2874, allocations: 0.7751 MB / 435.8 MB, free: 3.359 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.2876, allocations: 7.938 kB / 435.8 MB, free: 3.352 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.2878, allocations: 47.5 kB / 435.9 MB, free: 3.305 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001766/0.2879, allocations: 91.19 kB / 436 MB, free: 3.215 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.2883, allocations: 107.8 kB / 436.1 MB, free: 3.109 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004278/0.2887, allocations: 378.3 kB / 436.4 MB, free: 2.738 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.2889, allocations: 87.33 kB / 436.5 MB, free: 2.652 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.2891, allocations: 143.5 kB / 436.7 MB, free: 2.512 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.2893, allocations: 155.3 kB / 436.8 MB, free: 2.359 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.212e-05/0.2894, allocations: 32 kB / 436.9 MB, free: 2.328 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.939e-05/0.2894, allocations: 28 kB / 436.9 MB, free: 2.301 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.44e-05/0.2895, allocations: 67.75 kB / 437 MB, free: 2.234 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.2897, allocations: 167.2 kB / 437.1 MB, free: 2.07 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004212/0.2901, allocations: 364.5 kB / 437.5 MB, free: 1.715 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2901, allocations: 4 kB / 437.5 MB, free: 1.711 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.453e-06/0.2901, allocations: 0 / 437.5 MB, free: 1.711 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.033e-06/0.2901, allocations: 0 / 437.5 MB, free: 1.711 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.00109/0.2912, allocations: 0.53 MB / 438 MB, free: 1.152 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.2912, allocations: 12.03 kB / 438 MB, free: 1.141 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.335e-05/0.2913, allocations: 44.69 kB / 438.1 MB, free: 1.098 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.2917, allocations: 206.7 kB / 438.3 MB, free: 0.8672 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-05/0.2918, allocations: 80.62 kB / 438.3 MB, free: 0.7773 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.2919, allocations: 28.31 kB / 438.4 MB, free: 0.75 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.2924, allocations: 306 kB / 438.7 MB, free: 452 kB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2924, allocations: 4 kB / 438.7 MB, free: 448 kB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.2924, allocations: 8 kB / 438.7 MB, free: 440 kB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2924, allocations: 8 kB / 438.7 MB, free: 432 kB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003677/0.2928, allocations: 190.5 kB / 438.9 MB, free: 240 kB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.2946, allocations: 1.081 MB / 440 MB, free: 15.08 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003458/0.295, allocations: 150.5 kB / 440.1 MB, free: 14.92 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.2951, allocations: 72.83 kB / 440.2 MB, free: 14.85 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.2951, allocations: 7.922 kB / 440.2 MB, free: 14.84 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000329/0.2955, allocations: 161.4 kB / 440.3 MB, free: 14.66 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.853e-06/0.2955, allocations: 0 / 440.3 MB, free: 14.66 MB / 350.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001134/0.2966, allocations: 306.5 kB / 440.6 MB, free: 14.36 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.2967, allocations: 106.8 kB / 440.7 MB, free: 14.23 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.297, allocations: 225 kB / 441 MB, free: 14 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.297, allocations: 33.7 kB / 441 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.2972, allocations: 188.4 kB / 441.2 MB, free: 13.77 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/0.2972, allocations: 67.47 kB / 441.2 MB, free: 13.7 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2973, allocations: 57.7 kB / 441.3 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.000178/0.2975, allocations: 338.8 kB / 441.6 MB, free: 13.3 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.2976, allocations: 63.97 kB / 441.7 MB, free: 13.23 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.2978, allocations: 140.7 kB / 441.8 MB, free: 13.06 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.2982, allocations: 196.1 kB / 442 MB, free: 12.85 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.2982, allocations: 4 kB / 442 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004893/0.2986, allocations: 272.5 kB / 442.3 MB, free: 12.57 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2987, allocations: 4 kB / 442.3 MB, free: 12.57 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2987, allocations: 4.219 kB / 442.3 MB, free: 12.56 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002769/0.2989, allocations: 52.81 kB / 442.4 MB, free: 12.51 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.2992, allocations: 51.92 kB / 442.4 MB, free: 12.46 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.3008, allocations: 1.469 MB / 443.9 MB, free: 10.88 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.3011, allocations: 43.92 kB / 443.9 MB, free: 10.83 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.3011, allocations: 15.98 kB / 443.9 MB, free: 10.82 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.0001658/0.3013, allocations: 144.8 kB / 444.1 MB, free: 10.67 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.3013, allocations: 23.86 kB / 444.1 MB, free: 10.64 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.689e-05/0.3014, allocations: 30.27 kB / 444.1 MB, free: 10.62 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3014, allocations: 0 / 444.1 MB, free: 10.62 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.3014, allocations: 4 kB / 444.1 MB, free: 10.61 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3014, allocations: 0 / 444.1 MB, free: 10.61 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003647/0.3017, allocations: 296.4 kB / 444.4 MB, free: 10.28 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3017, allocations: 4 kB / 444.4 MB, free: 10.28 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.3019, allocations: 31.92 kB / 444.5 MB, free: 10.25 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.3021, allocations: 64.69 kB / 444.5 MB, free: 10.18 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.3021, allocations: 3.984 kB / 444.5 MB, free: 10.18 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.3035, allocations: 1.326 MB / 445.8 MB, free: 8.734 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3035, allocations: 0 / 445.8 MB, free: 8.734 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000694/0.3042, allocations: 324.7 kB / 446.2 MB, free: 8.398 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.69e-05/0.3043, allocations: 39.95 kB / 446.2 MB, free: 8.359 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.3043, allocations: 8 kB / 446.2 MB, free: 8.352 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.3045, allocations: 15.98 kB / 446.2 MB, free: 8.336 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.3046, allocations: 35.88 kB / 446.3 MB, free: 8.301 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.3046, allocations: 12 kB / 446.3 MB, free: 8.289 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001636/0.3047, allocations: 164.5 kB / 446.4 MB, free: 8.133 MB / 350.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3047, allocations: 0 / 446.4 MB, free: 8.133 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003705/0.3051, allocations: 75.83 kB / 446.5 MB, free: 8.059 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.0001403/0.3052, allocations: 103.2 kB / 446.6 MB, free: 7.949 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005783/0.3058, allocations: 286.4 kB / 446.9 MB, free: 7.656 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3058, allocations: 0 / 446.9 MB, free: 7.656 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.3061, allocations: 186.6 kB / 447.1 MB, free: 7.461 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.3064, allocations: 36.86 kB / 447.1 MB, free: 7.426 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.3082, allocations: 0.6672 MB / 447.8 MB, free: 6.727 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.3087, allocations: 0.7558 MB / 448.5 MB, free: 5.945 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001063/0.3088, allocations: 22.3 kB / 448.5 MB, free: 5.926 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.3089, allocations: 23.44 kB / 448.6 MB, free: 5.902 MB / 350.1 MB
Notification: Performance of SimCode: time 1.051e-06/0.3089, allocations: 0 / 448.6 MB, free: 5.902 MB / 350.1 MB
Notification: Performance of Templates: time 0.008753/0.3176, allocations: 3.256 MB / 451.8 MB, free: 2.672 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_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.930084849707782]