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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 106 kB / 21.18 MB, free: 0.707 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002103/0.002103, allocations: 185.2 kB / 24.47 MB, free: 4.074 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.002244/0.002244, allocations: 47.92 kB / 347.7 MB, free: 9.648 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4065, allocations: 49.16 MB / 396.8 MB, free: 9.492 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004144/0.4107, allocations: 2.837 MB / 399.7 MB, free: 7.492 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001392/0.4121, allocations: 0.7946 MB / 400.4 MB, free: 6.918 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.4122, allocations: 4.938 kB / 400.5 MB, free: 6.918 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001834/0.4124, allocations: 48.27 kB / 400.5 MB, free: 6.891 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.4126, allocations: 93.31 kB / 400.6 MB, free: 6.82 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003444/0.4129, allocations: 103.7 kB / 400.7 MB, free: 6.762 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004118/0.4133, allocations: 376.5 kB / 401.1 MB, free: 6.574 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.4136, allocations: 96.19 kB / 401.2 MB, free: 6.516 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.4138, allocations: 140.5 kB / 401.3 MB, free: 6.453 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.414, allocations: 156.6 kB / 401.4 MB, free: 6.371 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.837e-05/0.414, allocations: 30.56 kB / 401.5 MB, free: 6.371 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.196e-05/0.4141, allocations: 31.25 kB / 401.5 MB, free: 6.371 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.375e-05/0.4142, allocations: 70.02 kB / 401.6 MB, free: 6.324 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000159/0.4143, allocations: 167.1 kB / 401.7 MB, free: 6.227 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004963/0.4148, allocations: 359.9 kB / 402.1 MB, free: 6.09 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.4148, allocations: 0.75 kB / 402.1 MB, free: 6.09 MB / 318.1 MB
Notification: Performance of FrontEnd: time 2.925e-06/0.4148, allocations: 4 kB / 402.1 MB, free: 6.086 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 8.887e-06/0.4149, allocations: 1.156 kB / 402.1 MB, free: 6.086 MB / 318.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.001016/0.4159, allocations: 0.5394 MB / 402.6 MB, free: 5.676 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.4159, allocations: 12.7 kB / 402.6 MB, free: 5.672 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.082e-05/0.416, allocations: 40.11 kB / 402.7 MB, free: 5.652 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.4163, allocations: 203.4 kB / 402.9 MB, free: 5.473 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.465e-05/0.4164, allocations: 76.09 kB / 403 MB, free: 5.402 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.4165, allocations: 31.31 kB / 403 MB, free: 5.391 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.417, allocations: 303.7 kB / 403.3 MB, free: 5.234 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.417, allocations: 3.938 kB / 403.3 MB, free: 5.23 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.417, allocations: 15.31 kB / 403.3 MB, free: 5.219 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.417, allocations: 7.281 kB / 403.3 MB, free: 5.219 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003593/0.4174, allocations: 184 kB / 403.5 MB, free: 5.16 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.4189, allocations: 1.084 MB / 404.6 MB, free: 4.371 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.4192, allocations: 148 kB / 404.7 MB, free: 4.297 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.4194, allocations: 83.91 kB / 404.8 MB, free: 4.254 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.4194, allocations: 1.344 kB / 404.8 MB, free: 4.254 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003018/0.4197, allocations: 156 kB / 405 MB, free: 4.148 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.212e-06/0.4197, allocations: 0 / 405 MB, free: 4.148 MB / 318.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001202/0.4209, allocations: 305 kB / 405.3 MB, free: 4.027 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.883e-05/0.421, allocations: 107.7 kB / 405.4 MB, free: 3.902 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.4213, allocations: 233.5 kB / 405.6 MB, free: 3.75 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.4213, allocations: 27.8 kB / 405.6 MB, free: 3.719 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.4215, allocations: 188 kB / 405.8 MB, free: 3.559 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/0.4216, allocations: 71 kB / 405.9 MB, free: 3.504 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.4217, allocations: 64.14 kB / 405.9 MB, free: 3.461 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 0.000121/0.4218, allocations: 335.7 kB / 406.3 MB, free: 3.137 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.422, allocations: 65.92 kB / 406.3 MB, free: 3.113 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.4222, allocations: 146.5 kB / 406.5 MB, free: 2.996 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003057/0.4225, allocations: 190.8 kB / 406.7 MB, free: 2.863 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4225, allocations: 1.25 kB / 406.7 MB, free: 2.863 MB / 318.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005179/0.423, allocations: 268.7 kB / 406.9 MB, free: 2.734 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.423, allocations: 5.594 kB / 406.9 MB, free: 2.734 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.423, allocations: 7.188 kB / 406.9 MB, free: 2.73 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003526/0.4234, allocations: 58.2 kB / 407 MB, free: 2.707 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.4237, allocations: 54.66 kB / 407 MB, free: 2.699 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.4249, allocations: 1.459 MB / 408.5 MB, free: 1.262 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.4251, allocations: 47.19 kB / 408.5 MB, free: 1.234 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.874e-05/0.4252, allocations: 8.906 kB / 408.6 MB, free: 1.234 MB / 318.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.0001664/0.4253, allocations: 149.6 kB / 408.7 MB, free: 1.094 MB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.4254, allocations: 23.52 kB / 408.7 MB, free: 1.082 MB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.134e-05/0.4254, allocations: 26.31 kB / 408.7 MB, free: 1.059 MB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.4254, allocations: 2.75 kB / 408.7 MB, free: 1.059 MB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4254, allocations: 0.75 kB / 408.7 MB, free: 1.059 MB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.4255, allocations: 4.797 kB / 408.8 MB, free: 1.055 MB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/0.4259, allocations: 293.9 kB / 409 MB, free: 0.8359 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4259, allocations: 0 / 409 MB, free: 0.8359 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.4261, allocations: 42.55 kB / 409.1 MB, free: 0.8242 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002074/0.4263, allocations: 52.17 kB / 409.1 MB, free: 0.8047 MB / 318.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.4263, allocations: 10.41 kB / 409.1 MB, free: 0.7969 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.4275, allocations: 1.324 MB / 410.5 MB, free: 15.49 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4275, allocations: 0 / 410.5 MB, free: 15.49 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007444/0.4283, allocations: 321.8 kB / 410.8 MB, free: 15.32 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.4284, allocations: 43.8 kB / 410.8 MB, free: 15.29 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.4284, allocations: 9.828 kB / 410.8 MB, free: 15.29 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.4286, allocations: 13.89 kB / 410.8 MB, free: 15.29 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.877e-05/0.4287, allocations: 33.78 kB / 410.9 MB, free: 15.28 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.4287, allocations: 5.922 kB / 410.9 MB, free: 15.28 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0002109/0.4289, allocations: 162.5 kB / 411 MB, free: 15.17 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4289, allocations: 0 / 411 MB, free: 15.17 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003904/0.4293, allocations: 82.72 kB / 411.1 MB, free: 15.15 MB / 334.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.0001588/0.4295, allocations: 108.2 kB / 411.2 MB, free: 15.05 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006657/0.4301, allocations: 280 kB / 411.5 MB, free: 14.89 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4301, allocations: 0 / 411.5 MB, free: 14.89 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003475/0.4305, allocations: 187.7 kB / 411.7 MB, free: 14.75 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.4308, allocations: 37.86 kB / 411.7 MB, free: 14.73 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.4328, allocations: 0.66 MB / 412.4 MB, free: 14.34 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007629/0.4335, allocations: 0.7591 MB / 413.1 MB, free: 13.64 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001005/0.4336, allocations: 24.36 kB / 413.2 MB, free: 13.63 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.785e-05/0.4337, allocations: 22.66 kB / 413.2 MB, free: 13.62 MB / 334.1 MB
Notification: Performance of SimCode: time 3.01e-07/0.4337, allocations: 0.9688 kB / 413.2 MB, free: 13.62 MB / 334.1 MB
Notification: Performance of Templates: time 0.01017/0.4439, allocations: 3.269 MB / 416.5 MB, free: 12.2 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660]
(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) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.276528637856245]