Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001356/0.001356, allocations: 80.67 kB / 20.68 MB, free: 1.035 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.001726/0.001726, allocations: 154.9 kB / 23.94 MB, free: 4.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.171e-05/3.37e-05, allocations: 6.281 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003263/0.003297, allocations: 2.666 MB / 321.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.004418, allocations: 0.702 MB / 322.3 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.004553, allocations: 9.156 kB / 322.3 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.004707, allocations: 51.88 kB / 322.4 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.004874, allocations: 95.3 kB / 322.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.00519, allocations: 103.1 kB / 322.6 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.005548, allocations: 391.1 kB / 322.9 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.005735, allocations: 76.67 kB / 323 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.005984, allocations: 216.9 kB / 323.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.00618, allocations: 114.1 kB / 323.3 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.881e-05/0.006249, allocations: 29.44 kB / 323.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.93e-05/0.006308, allocations: 31.31 kB / 323.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.02e-05/0.006378, allocations: 73.98 kB / 323.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.006515, allocations: 110.5 kB / 323.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000438/0.006953, allocations: 379.7 kB / 323.9 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.006957, allocations: 4.938 kB / 324 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.006958, allocations: 0 / 324 MB, free: 496 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.00697, allocations: 0 / 324 MB, free: 496 kB / 286.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.0009185/0.007889, allocations: 0.537 MB / 324.5 MB, free: 76 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.007928, allocations: 10.86 kB / 324.5 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.861e-05/0.008006, allocations: 34.84 kB / 324.5 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.008423, allocations: 208.5 kB / 324.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.008545, allocations: 130.5 kB / 324.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.0086, allocations: 31.75 kB / 324.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/0.009155, allocations: 350.7 kB / 325.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.009167, allocations: 192 / 325.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.009203, allocations: 15.58 kB / 325.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.009212, allocations: 6.875 kB / 325.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003603/0.009572, allocations: 194.2 kB / 325.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.01134, allocations: 0.9657 MB / 326.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.01167, allocations: 146 kB / 326.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.01182, allocations: 81.95 kB / 326.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.01185, allocations: 7.078 kB / 326.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00029/0.01214, allocations: 199.9 kB / 326.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.01214, allocations: 1.406 kB / 326.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001097/0.01323, allocations: 314.6 kB / 327.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.085e-05/0.01331, allocations: 108.2 kB / 327.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.01354, allocations: 200.6 kB / 327.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.01358, allocations: 31.95 kB / 327.5 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.01373, allocations: 183.9 kB / 327.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.431e-05/0.0138, allocations: 75 kB / 327.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.01391, allocations: 60.11 kB / 327.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.01408, allocations: 330.5 kB / 328.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.01422, allocations: 65.31 kB / 328.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.01447, allocations: 196.4 kB / 328.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.01477, allocations: 187.4 kB / 328.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01478, allocations: 1.031 kB / 328.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004689/0.01524, allocations: 276.6 kB / 328.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.01526, allocations: 13.52 kB / 328.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.01527, allocations: 6.125 kB / 328.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002767/0.01554, allocations: 50.28 kB / 328.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.01576, allocations: 54.52 kB / 328.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.01733, allocations: 1.448 MB / 330.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.01758, allocations: 30.06 kB / 330.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.0176, allocations: 8.891 kB / 330.4 MB, free: 11.5 MB / 302.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.0001693/0.01777, allocations: 145.7 kB / 330.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.01781, allocations: 26.73 kB / 330.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.827e-05/0.01786, allocations: 27.91 kB / 330.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.01787, allocations: 6.375 kB / 330.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.01787, allocations: 1.719 kB / 330.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01787, allocations: 0.7969 kB / 330.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.01818, allocations: 221.2 kB / 330.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.01818, allocations: 0 / 330.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.01837, allocations: 36.16 kB / 330.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002056/0.01857, allocations: 54.94 kB / 330.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.169e-05/0.01859, allocations: 6.328 kB / 330.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.01994, allocations: 1.293 MB / 332.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01994, allocations: 0 / 332.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006933/0.02063, allocations: 328.4 kB / 332.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-05/0.02072, allocations: 31.33 kB / 332.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.02076, allocations: 10.19 kB / 332.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.02093, allocations: 17.38 kB / 332.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.02104, allocations: 35.5 kB / 332.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.02105, allocations: 4.375 kB / 332.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.0212, allocations: 142.6 kB / 332.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0212, allocations: 5.125 kB / 332.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004111/0.02161, allocations: 83.22 kB / 332.9 MB, free: 9.539 MB / 302.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.000143/0.02176, allocations: 106.1 kB / 333 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005949/0.02235, allocations: 276.1 kB / 333.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.02235, allocations: 0 / 333.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003103/0.02266, allocations: 198.9 kB / 333.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.02295, allocations: 37.89 kB / 333.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.02452, allocations: 0.599 MB / 334.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001459/0.02466, allocations: 146.4 kB / 334.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.764e-05/0.02475, allocations: 25.73 kB / 334.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.297e-05/0.0248, allocations: 21 kB / 334.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.0248, allocations: 0 / 334.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of Templates: time 0.007318/0.03212, allocations: 2.891 MB / 337.2 MB, free: 7.438 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.439201384782791]