Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001289/0.001289, allocations: 105.1 kB / 21.22 MB, free: 0.5117 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.001399/0.001399, allocations: 210.7 kB / 24.54 MB, free: 3.879 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.515/1.515, allocations: 230.3 MB / 258 MB, free: 8.188 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc")
translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 59.89 kB / 378.8 MB, free: 2.73 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2979, allocations: 53.37 MB / 432.1 MB, free: 7.039 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005228/0.3032, allocations: 3.186 MB / 435.3 MB, free: 3.84 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001611/0.3048, allocations: 0.8256 MB / 436.1 MB, free: 3.008 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.3049, allocations: 7.938 kB / 436.2 MB, free: 3 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.3052, allocations: 63.42 kB / 436.2 MB, free: 2.938 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002041/0.3054, allocations: 103 kB / 436.3 MB, free: 2.836 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004942/0.3059, allocations: 127.7 kB / 436.4 MB, free: 2.711 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005599/0.3064, allocations: 426.1 kB / 436.9 MB, free: 2.293 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.3067, allocations: 96.33 kB / 437 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000314/0.307, allocations: 171.4 kB / 437.1 MB, free: 2.027 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.3073, allocations: 175.2 kB / 437.3 MB, free: 1.855 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.112e-05/0.3073, allocations: 32 kB / 437.3 MB, free: 1.824 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.3074, allocations: 40 kB / 437.4 MB, free: 1.785 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.822e-05/0.3075, allocations: 79.75 kB / 437.4 MB, free: 1.707 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.3077, allocations: 187.1 kB / 437.6 MB, free: 1.523 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005657/0.3083, allocations: 431.9 kB / 438 MB, free: 1.105 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3083, allocations: 3.938 kB / 438 MB, free: 1.102 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.114e-06/0.3083, allocations: 4 kB / 438.1 MB, free: 1.098 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.434e-06/0.3083, allocations: 0 / 438.1 MB, free: 1.098 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: 80
 * Number of variables: 80
Notification: Performance of Generate backend data structure: time 0.001159/0.3095, allocations: 0.587 MB / 438.6 MB, free: 488 kB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3095, allocations: 8.031 kB / 438.6 MB, free: 480 kB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002272/0.3097, allocations: 60.64 kB / 438.7 MB, free: 420 kB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.3102, allocations: 223.5 kB / 438.9 MB, free: 168 kB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.871e-05/0.3103, allocations: 80.61 kB / 439 MB, free: 76 kB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.3103, allocations: 32.38 kB / 439 MB, free: 44 kB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006345/0.311, allocations: 338.9 kB / 439.4 MB, free: 15.7 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.311, allocations: 0 / 439.4 MB, free: 15.7 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.726e-05/0.311, allocations: 16 kB / 439.4 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.311, allocations: 8 kB / 439.4 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004549/0.3115, allocations: 222.5 kB / 439.6 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.3136, allocations: 1.318 MB / 440.9 MB, free: 14.05 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/0.3139, allocations: 166.5 kB / 441.1 MB, free: 13.88 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.3141, allocations: 84.75 kB / 441.2 MB, free: 13.79 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.3141, allocations: 4 kB / 441.2 MB, free: 13.79 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003023/0.3144, allocations: 161.5 kB / 441.3 MB, free: 13.61 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.3144, allocations: 0 / 441.3 MB, free: 13.61 MB / 350.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001165/0.3156, allocations: 322.5 kB / 441.6 MB, free: 13.29 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.658e-05/0.3157, allocations: 114.8 kB / 441.8 MB, free: 13.15 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.316, allocations: 261.8 kB / 442 MB, free: 12.89 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.316, allocations: 33.7 kB / 442 MB, free: 12.85 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.3162, allocations: 208.3 kB / 442.3 MB, free: 12.64 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.008e-05/0.3162, allocations: 79.36 kB / 442.3 MB, free: 12.56 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.3163, allocations: 58.03 kB / 442.4 MB, free: 12.5 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001771/0.3165, allocations: 346.7 kB / 442.7 MB, free: 12.15 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.3167, allocations: 76.62 kB / 442.8 MB, free: 12.07 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.3169, allocations: 181.5 kB / 443 MB, free: 11.85 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004156/0.3173, allocations: 227.6 kB / 443.2 MB, free: 11.59 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3173, allocations: 0 / 443.2 MB, free: 11.59 MB / 350.1 MB
Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007307/0.3181, allocations: 352.2 kB / 443.5 MB, free: 11.24 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3181, allocations: 4 kB / 443.5 MB, free: 11.24 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3181, allocations: 7.984 kB / 443.6 MB, free: 11.23 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002877/0.3184, allocations: 57.16 kB / 443.6 MB, free: 11.17 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002601/0.3187, allocations: 67.84 kB / 443.7 MB, free: 11.11 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.3201, allocations: 1.461 MB / 445.1 MB, free: 9.535 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.3204, allocations: 47.81 kB / 445.2 MB, free: 9.488 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.3204, allocations: 19.94 kB / 445.2 MB, free: 9.469 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 12
 * Number of states: 0 ()
 * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (38):
 * Single equations (assignments): 37
 * 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.0001848/0.3206, allocations: 145.8 kB / 445.3 MB, free: 9.316 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.111e-05/0.3207, allocations: 23.86 kB / 445.4 MB, free: 9.293 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.952e-05/0.3207, allocations: 38.2 kB / 445.4 MB, free: 9.254 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.3207, allocations: 4 kB / 445.4 MB, free: 9.25 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.3207, allocations: 0 / 445.4 MB, free: 9.25 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3207, allocations: 3.984 kB / 445.4 MB, free: 9.246 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003612/0.3211, allocations: 312.4 kB / 445.7 MB, free: 8.898 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3211, allocations: 0 / 445.7 MB, free: 8.898 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3213, allocations: 39.91 kB / 445.8 MB, free: 8.859 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/0.3215, allocations: 56.75 kB / 445.8 MB, free: 8.801 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.3215, allocations: 4 kB / 445.8 MB, free: 8.797 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.3228, allocations: 1.326 MB / 447.1 MB, free: 7.355 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3228, allocations: 0 / 447.1 MB, free: 7.355 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007594/0.3236, allocations: 351.6 kB / 447.5 MB, free: 6.996 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.774e-05/0.3237, allocations: 39.98 kB / 447.5 MB, free: 6.957 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.3237, allocations: 8 kB / 447.5 MB, free: 6.949 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.3239, allocations: 15.98 kB / 447.5 MB, free: 6.934 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.681e-05/0.324, allocations: 39.81 kB / 447.6 MB, free: 6.895 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.324, allocations: 4 kB / 447.6 MB, free: 6.891 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002244/0.3242, allocations: 189.2 kB / 447.8 MB, free: 6.703 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.3242, allocations: 0 / 447.8 MB, free: 6.703 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004069/0.3246, allocations: 95.72 kB / 447.9 MB, free: 6.609 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: 5 ($whenCondition1,switch1.off,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): 18
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 1
 * 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.0001429/0.3248, allocations: 103.2 kB / 448 MB, free: 6.496 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006607/0.3254, allocations: 298.4 kB / 448.3 MB, free: 6.191 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3254, allocations: 0 / 448.3 MB, free: 6.191 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003386/0.3258, allocations: 207.2 kB / 448.5 MB, free: 5.977 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.326, allocations: 39.17 kB / 448.5 MB, free: 5.941 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.3276, allocations: 0.6805 MB / 449.2 MB, free: 5.238 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.328, allocations: 0.7752 MB / 450 MB, free: 4.438 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001172/0.3282, allocations: 26.3 kB / 450 MB, free: 4.41 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/0.3282, allocations: 23.42 kB / 450 MB, free: 4.387 MB / 350.1 MB
Notification: Performance of SimCode: time 4.61e-07/0.3282, allocations: 0 / 450 MB, free: 4.387 MB / 350.1 MB
Notification: Performance of Templates: time 0.00829/0.3365, allocations: 3.332 MB / 453.3 MB, free: 1.078 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.018159524537623]