Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00177/0.00177, allocations: 114.3 kB / 21.18 MB, free: 0.6289 MB / 14.72 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.001363/0.001363, allocations: 210.9 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.392/1.392, allocations: 230.4 MB / 258.1 MB, free: 8.156 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 71.83 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2368, allocations: 53.32 MB / 432.1 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004406/0.2412, allocations: 2.914 MB / 435 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.2427, allocations: 0.7711 MB / 435.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.243, allocations: 4 kB / 435.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001977/0.2431, allocations: 55.44 kB / 435.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.2434, allocations: 91.19 kB / 435.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003748/0.2438, allocations: 107.7 kB / 436 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005164/0.2443, allocations: 370.4 kB / 436.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.2445, allocations: 89.23 kB / 436.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.2448, allocations: 131.5 kB / 436.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003016/0.2451, allocations: 159.3 kB / 436.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.966e-05/0.2451, allocations: 36 kB / 436.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.2452, allocations: 32 kB / 436.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.2453, allocations: 71.75 kB / 436.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.2454, allocations: 155.3 kB / 437 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004837/0.2459, allocations: 366.5 kB / 437.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.2459, allocations: 3.984 kB / 437.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2459, allocations: 0 / 437.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.2459, allocations: 0 / 437.4 MB, free: 2.074 MB / 334.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.001172/0.2471, allocations: 0.6131 MB / 438 MB, free: 1.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2471, allocations: 12.03 kB / 438 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.5e-05/0.2472, allocations: 40.64 kB / 438.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.2477, allocations: 269.1 kB / 438.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-05/0.2478, allocations: 76.62 kB / 438.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.2478, allocations: 32.38 kB / 438.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.2484, allocations: 301.8 kB / 438.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.2484, allocations: 0 / 438.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.2484, allocations: 12 kB / 438.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2484, allocations: 8 kB / 438.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004228/0.2488, allocations: 194.1 kB / 438.9 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.2508, allocations: 1.116 MB / 440 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.2511, allocations: 150.5 kB / 440.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.2512, allocations: 72.83 kB / 440.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.2512, allocations: 4 kB / 440.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002731/0.2515, allocations: 157.8 kB / 440.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.2515, allocations: 3.938 kB / 440.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001104/0.2526, allocations: 394.8 kB / 440.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.2527, allocations: 102.8 kB / 440.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.2529, allocations: 225 kB / 441.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.2529, allocations: 29.7 kB / 441.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.2531, allocations: 180.5 kB / 441.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.381e-05/0.2531, allocations: 71.42 kB / 441.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.559e-05/0.2532, allocations: 57.7 kB / 441.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2534, allocations: 338.8 kB / 441.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.2535, allocations: 67.97 kB / 441.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.2537, allocations: 150 kB / 442 MB, free: 13.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/0.254, allocations: 192.2 kB / 442.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.254, allocations: 4 kB / 442.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004774/0.2545, allocations: 276.5 kB / 442.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2545, allocations: 4 kB / 442.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2545, allocations: 4 kB / 442.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000274/0.2548, allocations: 53.03 kB / 442.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.255, allocations: 59.91 kB / 442.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/0.2566, allocations: 1.569 MB / 444.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.2568, allocations: 39.77 kB / 444.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.2568, allocations: 8 kB / 444.2 MB, free: 10.75 MB / 350.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.00016/0.257, allocations: 153.8 kB / 444.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.257, allocations: 23.86 kB / 444.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.768e-05/0.2571, allocations: 34.16 kB / 444.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.2571, allocations: 0 / 444.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2571, allocations: 0 / 444.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.2572, allocations: 116.9 kB / 444.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.2573, allocations: 4 kB / 444.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.2574, allocations: 19.92 kB / 444.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/0.2575, allocations: 27.91 kB / 444.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005827/0.2581, allocations: 277.7 kB / 444.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005232/0.2586, allocations: 433.4 kB / 445.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001195/0.2587, allocations: 60.02 kB / 445.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001527/0.2589, allocations: 172.4 kB / 445.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of Backend: time 4.01e-07/0.2589, allocations: 0 / 445.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007773/0.2596, allocations: 304.9 kB / 445.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of SimCode: time 0.001329/0.261, allocations: 1.018 MB / 446.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of Templates: time 0.008165/0.2691, allocations: 3.314 MB / 450.1 MB, free: 4.734 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.268629903905094]