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.001714/0.001714, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001535/0.001535, allocations: 143.4 kB / 24.89 MB, free: 8.742 MB / 18.57 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 0.8825/0.8825, allocations: 173.4 MB / 201.5 MB, free: 8.27 MB / 186.7 MB " [Timeout remaining time 179] 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.082e-06/1.082e-06, allocations: 0 / 268.5 MB, free: 9.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.422e-05/1.53e-05, allocations: 2.312 kB / 268.5 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002552/0.002567, allocations: 2.852 MB / 271.3 MB, free: 6.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.003631, allocations: 0.7486 MB / 272.1 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.003743, allocations: 4 kB / 272.1 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.003878, allocations: 59.44 kB / 272.1 MB, free: 6.117 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.004017, allocations: 89.31 kB / 272.2 MB, free: 6.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.004283, allocations: 103.7 kB / 272.3 MB, free: 5.93 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000273/0.004556, allocations: 387.5 kB / 272.7 MB, free: 5.551 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.004694, allocations: 90.23 kB / 272.8 MB, free: 5.457 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.004865, allocations: 215.5 kB / 273 MB, free: 5.246 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/0.005003, allocations: 111.7 kB / 273.1 MB, free: 5.137 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.00504, allocations: 28.53 kB / 273.1 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.064e-05/0.005071, allocations: 32.69 kB / 273.2 MB, free: 5.078 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.922e-05/0.00512, allocations: 71.73 kB / 273.2 MB, free: 5.008 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.015e-05/0.0052, allocations: 120.7 kB / 273.4 MB, free: 4.891 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.005408, allocations: 255 kB / 273.6 MB, free: 4.641 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.00541, allocations: 1.406 kB / 273.6 MB, free: 4.641 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.00541, allocations: 0 / 273.6 MB, free: 4.641 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.456e-06/0.005414, allocations: 0 / 273.6 MB, free: 4.641 MB / 250.7 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.0005401/0.005954, allocations: 0.5064 MB / 274.1 MB, free: 4.109 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.005982, allocations: 16.02 kB / 274.1 MB, free: 4.094 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.646e-05/0.006039, allocations: 48.91 kB / 274.2 MB, free: 4.047 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.006217, allocations: 177.2 kB / 274.4 MB, free: 3.848 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.415e-05/0.006291, allocations: 128 kB / 274.5 MB, free: 3.699 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.006324, allocations: 32.38 kB / 274.5 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.006555, allocations: 290.5 kB / 274.8 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.006564, allocations: 192 / 274.8 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.006586, allocations: 28.09 kB / 274.8 MB, free: 3.332 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.006593, allocations: 8 kB / 274.8 MB, free: 3.324 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.006695, allocations: 80.48 kB / 274.9 MB, free: 3.242 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007981/0.007493, allocations: 0.814 MB / 275.7 MB, free: 2.379 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.007638, allocations: 102.5 kB / 275.8 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.159e-05/0.007679, allocations: 36.84 kB / 275.9 MB, free: 2.23 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.007693, allocations: 4 kB / 275.9 MB, free: 2.227 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001351/0.007828, allocations: 183.6 kB / 276 MB, free: 2.016 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.062e-06/0.007829, allocations: 0 / 276 MB, free: 2.016 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003745/0.008204, allocations: 196.5 kB / 276.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.008245, allocations: 114.7 kB / 276.4 MB, free: 1.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.724e-05/0.008342, allocations: 191.4 kB / 276.5 MB, free: 1.48 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.008358, allocations: 29.7 kB / 276.6 MB, free: 1.445 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.008422, allocations: 176.4 kB / 276.7 MB, free: 1.27 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.008459, allocations: 71.41 kB / 276.8 MB, free: 1.199 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.516e-05/0.008514, allocations: 65.62 kB / 276.9 MB, free: 1.129 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.282e-05/0.008597, allocations: 338.8 kB / 277.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.564e-05/0.008632, allocations: 27.98 kB / 277.2 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-05/0.008718, allocations: 160.7 kB / 277.4 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.008825, allocations: 130 kB / 277.5 MB, free: 420 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.008827, allocations: 4.031 kB / 277.5 MB, free: 416 kB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001627/0.008989, allocations: 180.6 kB / 277.7 MB, free: 228 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.008999, allocations: 4 kB / 277.7 MB, free: 224 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.009004, allocations: 4 kB / 277.7 MB, free: 220 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.009127, allocations: 44.92 kB / 277.7 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.00924, allocations: 59.91 kB / 277.8 MB, free: 112 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006417/0.009882, allocations: 1.316 MB / 279.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.747e-05/0.009979, allocations: 35.95 kB / 279.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.009991, allocations: 12 kB / 279.2 MB, free: 14.66 MB / 266.7 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 7.722e-05/0.01007, allocations: 133.7 kB / 279.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.01009, allocations: 23.97 kB / 279.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.072e-05/0.01011, allocations: 21.97 kB / 279.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.01011, allocations: 0 / 279.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.01011, allocations: 8 kB / 279.4 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.01012, allocations: 3.984 kB / 279.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.01024, allocations: 145.7 kB / 279.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.01025, allocations: 3.938 kB / 279.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.989e-05/0.01033, allocations: 35.98 kB / 279.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.824e-05/0.01041, allocations: 40.75 kB / 279.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.01041, allocations: 4 kB / 279.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004987/0.01091, allocations: 1.166 MB / 280.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.01091, allocations: 3.938 kB / 280.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002098/0.01112, allocations: 197.7 kB / 280.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.01116, allocations: 27.88 kB / 281 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.01118, allocations: 8 kB / 281 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.075e-05/0.01124, allocations: 20.08 kB / 281 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.01129, allocations: 27.94 kB / 281 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.0113, allocations: 4 kB / 281 MB, free: 12.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.704e-05/0.01133, allocations: 55.05 kB / 281.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01134, allocations: 0 / 281.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002202/0.01156, allocations: 87.78 kB / 281.2 MB, free: 12.52 MB / 266.7 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 7.559e-05/0.01163, allocations: 92.34 kB / 281.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002354/0.01187, allocations: 227.2 kB / 281.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.01187, allocations: 4 kB / 281.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.01198, allocations: 174.1 kB / 281.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.0121, allocations: 39.95 kB / 281.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008151/0.01292, allocations: 0.5596 MB / 282.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.389e-05/0.01296, allocations: 96.11 kB / 282.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.349e-05/0.01301, allocations: 21.94 kB / 282.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.335e-05/0.01311, allocations: 91.36 kB / 282.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01311, allocations: 0 / 282.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of Templates: time 0.004504/0.01761, allocations: 3.064 MB / 285.5 MB, free: 8.137 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6283855731599033]