Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.00106/0.00106, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.00158/0.00158, allocations: 163.5 kB / 24.91 MB, free: 8.258 MB / 18.57 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.038/1.038, allocations: 177 MB / 205.2 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.377e-06/3.377e-06, allocations: 4 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.156e-05/2.494e-05, allocations: 6.25 kB / 273.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003195/0.00322, allocations: 2.911 MB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.00444, allocations: 0.7747 MB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.004567, allocations: 7.938 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.004713, allocations: 59.44 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.00486, allocations: 91.17 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.005165, allocations: 107.6 kB / 277.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000317/0.005482, allocations: 390.1 kB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.005638, allocations: 82.3 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.005824, allocations: 219.5 kB / 278.1 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.005987, allocations: 119.7 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.713e-05/0.006024, allocations: 32 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.354e-05/0.006057, allocations: 28 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.952e-05/0.006107, allocations: 71.75 kB / 278.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.929e-05/0.006196, allocations: 111.8 kB / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003131/0.006509, allocations: 247.1 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.006512, allocations: 4 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.006513, allocations: 0 / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.006518, allocations: 0 / 278.7 MB, free: 11.91 MB / 266.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.0005804/0.007099, allocations: 0.5169 MB / 279.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.007136, allocations: 11.98 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.007201, allocations: 48.89 kB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.007414, allocations: 181.3 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.723e-05/0.007491, allocations: 128 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.25e-05/0.007524, allocations: 28.38 kB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.007773, allocations: 302.5 kB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.007783, allocations: 192 / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.007803, allocations: 16.12 kB / 279.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.00781, allocations: 8 kB / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.007912, allocations: 76.55 kB / 280 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000833/0.008745, allocations: 0.8255 MB / 280.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.0089, allocations: 102.5 kB / 280.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.39e-05/0.008944, allocations: 36.84 kB / 280.9 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.00896, allocations: 7.984 kB / 280.9 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001565/0.009117, allocations: 181.2 kB / 281.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.162e-06/0.009118, allocations: 0 / 281.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003998/0.009518, allocations: 185.7 kB / 281.3 MB, free: 9.082 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.009567, allocations: 114.7 kB / 281.4 MB, free: 8.945 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.009674, allocations: 199.7 kB / 281.6 MB, free: 8.738 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.009693, allocations: 29.7 kB / 281.6 MB, free: 8.703 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.996e-05/0.009762, allocations: 176.5 kB / 281.8 MB, free: 8.527 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.009803, allocations: 83.34 kB / 281.9 MB, free: 8.445 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.877e-05/0.009862, allocations: 49.69 kB / 281.9 MB, free: 8.391 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.613e-05/0.009938, allocations: 334.8 kB / 282.3 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.009976, allocations: 28 kB / 282.3 MB, free: 8.027 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.418e-05/0.01007, allocations: 157.7 kB / 282.4 MB, free: 7.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.01019, allocations: 140 kB / 282.6 MB, free: 7.668 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01019, allocations: 0 / 282.6 MB, free: 7.668 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001824/0.01037, allocations: 180.6 kB / 282.8 MB, free: 7.484 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.01038, allocations: 8 kB / 282.8 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.01039, allocations: 0 / 282.8 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001412/0.01053, allocations: 45.03 kB / 282.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.01068, allocations: 67.84 kB / 282.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007111/0.01139, allocations: 1.309 MB / 284.2 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.01149, allocations: 39.77 kB / 284.2 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.01151, allocations: 12 kB / 284.2 MB, free: 5.914 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 8.104e-05/0.01159, allocations: 125.7 kB / 284.3 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.269e-05/0.01161, allocations: 27.97 kB / 284.4 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.01164, allocations: 21.97 kB / 284.4 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.01164, allocations: 0 / 284.4 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.01164, allocations: 4.062 kB / 284.4 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01164, allocations: 3.984 kB / 284.4 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.01178, allocations: 149.7 kB / 284.6 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.01178, allocations: 7.938 kB / 284.6 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.01189, allocations: 38.78 kB / 284.6 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.033e-05/0.01198, allocations: 44.81 kB / 284.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.012, allocations: 4 kB / 284.6 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006038/0.0126, allocations: 1.174 MB / 285.8 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.0126, allocations: 0 / 285.8 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.01282, allocations: 201.8 kB / 286 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.465e-05/0.01286, allocations: 35.81 kB / 286.1 MB, free: 3.953 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.01288, allocations: 4 kB / 286.1 MB, free: 3.949 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.368e-05/0.01295, allocations: 15.98 kB / 286.1 MB, free: 3.934 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.569e-05/0.013, allocations: 31.94 kB / 286.1 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.01301, allocations: 0 / 286.1 MB, free: 3.902 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.132e-05/0.01305, allocations: 62.98 kB / 286.2 MB, free: 3.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01305, allocations: 0 / 286.2 MB, free: 3.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001976/0.01325, allocations: 79.83 kB / 286.2 MB, free: 3.762 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 9.216e-05/0.01334, allocations: 92.34 kB / 286.3 MB, free: 3.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002532/0.01359, allocations: 227 kB / 286.6 MB, free: 3.426 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.0136, allocations: 0 / 286.6 MB, free: 3.426 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.01372, allocations: 180.2 kB / 286.7 MB, free: 3.234 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.01385, allocations: 48.05 kB / 286.8 MB, free: 3.188 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009059/0.01476, allocations: 0.5626 MB / 287.3 MB, free: 2.598 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.278e-05/0.0148, allocations: 84.52 kB / 287.4 MB, free: 2.496 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.095e-05/0.01486, allocations: 25.94 kB / 287.4 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.01497, allocations: 91.36 kB / 287.5 MB, free: 2.383 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01497, allocations: 0 / 287.5 MB, free: 2.383 MB / 266.7 MB Notification: Performance of Templates: time 0.004891/0.01986, allocations: 3.161 MB / 290.7 MB, free: 15.27 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.621699523180723]