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.001217/0.001217, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001982/0.003199, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001035/0.001035, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001468/0.002503, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.9073/0.9073, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1854/1.093, allocations: 52.49 MB / 238.5 MB, free: 7.641 MB / 234.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.583e-06/1.583e-06, allocations: 0 / 239.8 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.054e-05/2.212e-05, allocations: 5.828 kB / 239.8 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003153/0.003175, allocations: 2.898 MB / 242.7 MB, free: 3.453 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008933/0.004068, allocations: 0.7487 MB / 243.4 MB, free: 2.703 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.004168, allocations: 7.938 kB / 243.4 MB, free: 2.695 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.748e-05/0.004266, allocations: 47.5 kB / 243.5 MB, free: 2.648 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.004387, allocations: 101.1 kB / 243.6 MB, free: 2.551 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000211/0.004598, allocations: 104.7 kB / 243.7 MB, free: 2.449 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.004885, allocations: 382.1 kB / 244 MB, free: 2.074 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.005037, allocations: 82.3 kB / 244.1 MB, free: 1.988 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.005255, allocations: 240.3 kB / 244.4 MB, free: 1.754 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.005426, allocations: 115.7 kB / 244.5 MB, free: 1.641 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.444e-05/0.00547, allocations: 33.78 kB / 244.5 MB, free: 1.609 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.644e-05/0.005507, allocations: 32 kB / 244.5 MB, free: 1.578 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.633e-05/0.005553, allocations: 51.81 kB / 244.6 MB, free: 1.527 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.623e-05/0.005629, allocations: 95.81 kB / 244.7 MB, free: 1.434 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.005844, allocations: 219.2 kB / 244.9 MB, free: 1.219 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.405e-05/0.005858, allocations: 4.656 kB / 244.9 MB, free: 1.215 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.005859, allocations: 0.6875 kB / 244.9 MB, free: 1.215 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.005872, allocations: 0 / 244.9 MB, free: 1.215 MB / 234.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.0006973/0.00657, allocations: 0.5785 MB / 245.5 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.006606, allocations: 11.97 kB / 245.5 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.006675, allocations: 52.89 kB / 245.5 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.006891, allocations: 173.9 kB / 245.7 MB, free: 360 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.013e-05/0.006982, allocations: 132 kB / 245.8 MB, free: 204 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.185e-05/0.007023, allocations: 36.91 kB / 245.9 MB, free: 168 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.007281, allocations: 295 kB / 246.2 MB, free: 15.85 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.007291, allocations: 192 / 246.2 MB, free: 15.85 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.007311, allocations: 21.78 kB / 246.2 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.007319, allocations: 8 kB / 246.2 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001025/0.007422, allocations: 76.48 kB / 246.3 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009066/0.008328, allocations: 0.8145 MB / 247.1 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/0.008497, allocations: 102.5 kB / 247.2 MB, free: 14.78 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.717e-05/0.008544, allocations: 45.52 kB / 247.2 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.008561, allocations: 4.688 kB / 247.2 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.008741, allocations: 183.6 kB / 247.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.803e-06/0.008743, allocations: 2.5 kB / 247.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004226/0.009166, allocations: 182.3 kB / 247.6 MB, free: 14.33 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.009202, allocations: 68.3 kB / 247.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.009309, allocations: 187.4 kB / 247.8 MB, free: 14.06 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.009328, allocations: 34.2 kB / 247.9 MB, free: 14.02 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.009406, allocations: 180.3 kB / 248 MB, free: 13.84 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.009451, allocations: 76.23 kB / 248.1 MB, free: 13.76 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-05/0.00951, allocations: 53.64 kB / 248.2 MB, free: 13.7 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004022/0.009913, allocations: 344.4 kB / 248.5 MB, free: 13.36 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.922e-05/0.009952, allocations: 23.98 kB / 248.5 MB, free: 13.34 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.022e-05/0.01004, allocations: 160 kB / 248.7 MB, free: 13.13 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.01016, allocations: 142 kB / 248.8 MB, free: 12.97 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.01017, allocations: 0 / 248.8 MB, free: 12.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001836/0.01035, allocations: 180.8 kB / 249 MB, free: 12.79 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.01037, allocations: 8 kB / 249 MB, free: 12.78 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.01037, allocations: 3.938 kB / 249 MB, free: 12.78 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.01054, allocations: 36.83 kB / 249.1 MB, free: 12.74 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.0107, allocations: 74.14 kB / 249.1 MB, free: 12.67 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008135/0.01152, allocations: 1.324 MB / 250.4 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.299e-05/0.01161, allocations: 31.81 kB / 250.5 MB, free: 11.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.01163, allocations: 12 kB / 250.5 MB, free: 11.22 MB / 250.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 8.931e-05/0.01171, allocations: 125.9 kB / 250.6 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.01174, allocations: 23.98 kB / 250.6 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.01177, allocations: 25.95 kB / 250.7 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.01177, allocations: 4 kB / 250.7 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.01177, allocations: 3.938 kB / 250.7 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.01178, allocations: 0 / 250.7 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.01192, allocations: 157.6 kB / 250.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.01192, allocations: 0 / 250.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.01205, allocations: 43.97 kB / 250.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.01209, allocations: 19.86 kB / 250.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.151e-05/0.01218, allocations: 40.81 kB / 250.9 MB, free: 10.76 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.0122, allocations: 4 kB / 250.9 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005739/0.01277, allocations: 1.182 MB / 252.1 MB, free: 9.477 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.01277, allocations: 0 / 252.1 MB, free: 9.477 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002245/0.013, allocations: 205.7 kB / 252.3 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.01301, allocations: 0 / 252.3 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.858e-05/0.01307, allocations: 19.98 kB / 252.3 MB, free: 9.234 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.01313, allocations: 27.89 kB / 252.4 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.01314, allocations: 3.984 kB / 252.4 MB, free: 9.203 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.384e-05/0.01319, allocations: 63.12 kB / 252.4 MB, free: 9.141 MB / 250.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01319, allocations: 4 kB / 252.4 MB, free: 9.137 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001861/0.01337, allocations: 83.78 kB / 252.5 MB, free: 9.055 MB / 250.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 0.0001101/0.01348, allocations: 92.34 kB / 252.6 MB, free: 8.957 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002733/0.01376, allocations: 225.5 kB / 252.8 MB, free: 8.723 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/0.01377, allocations: 11.88 kB / 252.8 MB, free: 8.711 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.01391, allocations: 172.4 kB / 253 MB, free: 8.527 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.01419, allocations: 388.3 kB / 253.4 MB, free: 8.074 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.01638, allocations: 0.6072 MB / 254 MB, free: 7.438 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.108e-05/0.01644, allocations: 92.17 kB / 254.1 MB, free: 7.328 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.119e-05/0.0165, allocations: 17.95 kB / 254.1 MB, free: 7.309 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.0166, allocations: 95.34 kB / 254.2 MB, free: 7.215 MB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/0.0166, allocations: 0 / 254.2 MB, free: 7.215 MB / 250.7 MB Notification: Performance of Templates: time 0.005544/0.02215, allocations: 3.251 MB / 257.4 MB, free: 4.031 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.725515713915229]