Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00161/0.002699, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001428/0.002513, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.013/1.013, allocations: 177.2 MB / 189.6 MB, free: 5.297 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09047/1.104, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 244.5 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.326e-05/1.462e-05, allocations: 9.203 kB / 244.5 MB, free: 14.29 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006374/0.006389, allocations: 2.932 MB / 247.5 MB, free: 11.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.007405, allocations: 0.7746 MB / 248.3 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.007515, allocations: 4 kB / 248.3 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.856e-05/0.007614, allocations: 51.5 kB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.007772, allocations: 99.05 kB / 248.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.007988, allocations: 103.7 kB / 248.5 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003173/0.008306, allocations: 386.2 kB / 248.9 MB, free: 9.918 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.008461, allocations: 90.23 kB / 249 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003233/0.01169, allocations: 227.6 kB / 249.2 MB, free: 9.602 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.01186, allocations: 111.7 kB / 249.3 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.523e-05/0.0119, allocations: 32 kB / 249.3 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.978e-05/0.01194, allocations: 28 kB / 249.4 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.015e-05/0.01199, allocations: 59.8 kB / 249.4 MB, free: 9.375 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.958e-05/0.01209, allocations: 95.81 kB / 249.5 MB, free: 9.281 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.01236, allocations: 231.1 kB / 249.7 MB, free: 9.055 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.01237, allocations: 0 / 249.7 MB, free: 9.055 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.01237, allocations: 0 / 249.7 MB, free: 9.055 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.01238, allocations: 0 / 249.7 MB, free: 9.055 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.0008304/0.01321, allocations: 0.5713 MB / 250.3 MB, free: 8.461 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.01324, allocations: 8.031 kB / 250.3 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.04e-05/0.01331, allocations: 56.89 kB / 250.4 MB, free: 8.398 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.01353, allocations: 177.2 kB / 250.5 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.703e-05/0.01361, allocations: 136 kB / 250.7 MB, free: 8.043 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.01365, allocations: 28.38 kB / 250.7 MB, free: 8.016 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.01393, allocations: 290.5 kB / 251 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.01394, allocations: 192 / 251 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.01397, allocations: 20.11 kB / 251 MB, free: 7.68 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.01398, allocations: 11.94 kB / 251 MB, free: 7.668 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.0141, allocations: 80.53 kB / 251.1 MB, free: 7.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.01807, allocations: 0.8217 MB / 251.9 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.01824, allocations: 102.5 kB / 252 MB, free: 6.613 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.51e-05/0.0183, allocations: 44.83 kB / 252.1 MB, free: 6.566 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.01831, allocations: 0 / 252.1 MB, free: 6.566 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.01849, allocations: 185.2 kB / 252.2 MB, free: 6.352 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.072e-06/0.01849, allocations: 0 / 252.2 MB, free: 6.352 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004535/0.01894, allocations: 190.4 kB / 252.4 MB, free: 6.156 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.01897, allocations: 59.34 kB / 252.5 MB, free: 6.086 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.01909, allocations: 191.8 kB / 252.7 MB, free: 5.887 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.01911, allocations: 33.69 kB / 252.7 MB, free: 5.848 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.449e-05/0.01919, allocations: 176.4 kB / 252.9 MB, free: 5.668 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.985e-05/0.01924, allocations: 71.41 kB / 253 MB, free: 5.598 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.301e-05/0.01932, allocations: 65.48 kB / 253 MB, free: 5.527 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.045e-05/0.0194, allocations: 330.8 kB / 253.3 MB, free: 5.195 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.459e-05/0.01944, allocations: 31.92 kB / 253.4 MB, free: 5.164 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.01955, allocations: 153.7 kB / 253.5 MB, free: 4.969 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.01968, allocations: 144 kB / 253.7 MB, free: 4.805 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.01969, allocations: 4 kB / 253.7 MB, free: 4.801 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002042/0.01989, allocations: 172.7 kB / 253.8 MB, free: 4.625 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.01991, allocations: 15.53 kB / 253.8 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.01991, allocations: 0 / 253.8 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.02005, allocations: 44.81 kB / 253.9 MB, free: 4.566 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.02024, allocations: 75.03 kB / 254 MB, free: 4.496 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003777/0.02401, allocations: 1.312 MB / 255.3 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.02413, allocations: 35.83 kB / 255.3 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.02415, allocations: 8 kB / 255.3 MB, free: 3.055 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.801e-05/0.02424, allocations: 137.8 kB / 255.5 MB, free: 2.91 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.02426, allocations: 23.98 kB / 255.5 MB, free: 2.887 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.984e-05/0.02429, allocations: 25.95 kB / 255.5 MB, free: 2.863 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.02429, allocations: 0 / 255.5 MB, free: 2.863 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.02429, allocations: 0 / 255.5 MB, free: 2.863 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.0243, allocations: 4 kB / 255.5 MB, free: 2.859 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.02446, allocations: 153.7 kB / 255.7 MB, free: 2.691 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.02446, allocations: 0 / 255.7 MB, free: 2.691 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.0246, allocations: 47.91 kB / 255.7 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.02465, allocations: 23.84 kB / 255.7 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.926e-05/0.02475, allocations: 36.81 kB / 255.8 MB, free: 2.582 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.02476, allocations: 4 kB / 255.8 MB, free: 2.578 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006098/0.02537, allocations: 1.179 MB / 256.9 MB, free: 1.312 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.02537, allocations: 3.938 kB / 256.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/0.02586, allocations: 200.2 kB / 257.1 MB, free: 1.094 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.02589, allocations: 4 kB / 257.1 MB, free: 1.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.637e-05/0.02596, allocations: 15.98 kB / 257.2 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/0.02602, allocations: 27.98 kB / 257.2 MB, free: 1.047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.02603, allocations: 15.98 kB / 257.2 MB, free: 1.031 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.796e-05/0.02608, allocations: 54.98 kB / 257.3 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02608, allocations: 0 / 257.3 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002573/0.02634, allocations: 83.84 kB / 257.3 MB, free: 0.8945 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.003089/0.02943, allocations: 80.42 kB / 257.4 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.02972, allocations: 242.2 kB / 257.7 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/0.02973, allocations: 4.438 kB / 257.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.02986, allocations: 170.6 kB / 257.8 MB, free: 380 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/0.03003, allocations: 67.67 kB / 257.9 MB, free: 312 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005865/0.0359, allocations: 0.5993 MB / 258.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.325e-05/0.03595, allocations: 92.3 kB / 258.6 MB, free: 15.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.356e-05/0.03602, allocations: 21.95 kB / 258.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.03614, allocations: 91.36 kB / 258.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.03614, allocations: 0 / 258.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Templates: time 0.01203/0.04817, allocations: 3.324 MB / 262 MB, free: 12.18 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.643391598947346]