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.001836/0.001836, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 14.72 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.002306/0.002306, allocations: 205.7 kB / 24.49 MB, free: 3.965 MB / 14.72 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.462/1.462, allocations: 230.6 MB / 258.2 MB, free: 7.812 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+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 0.002399/0.002399, allocations: 59.84 kB / 379 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2272, allocations: 53.37 MB / 432.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004092/0.2313, allocations: 2.688 MB / 435 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.2325, allocations: 0.7361 MB / 435.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.2327, allocations: 8 kB / 435.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.2328, allocations: 47.5 kB / 435.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.233, allocations: 95.12 kB / 435.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003191/0.2333, allocations: 111.7 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004104/0.2337, allocations: 366.4 kB / 436.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.2339, allocations: 91.67 kB / 436.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.2341, allocations: 135.6 kB / 436.6 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.2343, allocations: 155.3 kB / 436.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.448e-05/0.2344, allocations: 32 kB / 436.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.2344, allocations: 28 kB / 436.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.438e-05/0.2345, allocations: 79.69 kB / 436.9 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.2346, allocations: 135.5 kB / 437 MB, free: 2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.235, allocations: 369.5 kB / 437.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.235, allocations: 4 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.235, allocations: 0 / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.235, allocations: 0 / 437.4 MB, free: 1.637 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.001014/0.2361, allocations: 0.53 MB / 437.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.2361, allocations: 16.02 kB / 437.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.021e-05/0.2362, allocations: 40.7 kB / 438 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.2365, allocations: 206.7 kB / 438.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.2367, allocations: 128 kB / 438.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.105e-05/0.2367, allocations: 28.31 kB / 438.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/0.2373, allocations: 357.5 kB / 438.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.2373, allocations: 0 / 438.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.2373, allocations: 15.98 kB / 438.7 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2373, allocations: 4 kB / 438.7 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003553/0.2377, allocations: 194.5 kB / 438.9 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.2393, allocations: 0.9689 MB / 439.9 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.2396, allocations: 142.6 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.2398, allocations: 80.81 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.2398, allocations: 0 / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002994/0.2401, allocations: 209.2 kB / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.2401, allocations: 0 / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001053/0.2411, allocations: 309.4 kB / 440.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.2412, allocations: 110.8 kB / 440.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.2414, allocations: 203.8 kB / 440.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.2414, allocations: 29.7 kB / 440.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.2416, allocations: 180.4 kB / 441.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.445e-05/0.2416, allocations: 75.41 kB / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.2417, allocations: 61.66 kB / 441.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.2419, allocations: 334.8 kB / 441.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.242, allocations: 71.91 kB / 441.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.2422, allocations: 196 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.2425, allocations: 192.1 kB / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2425, allocations: 0 / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004617/0.243, allocations: 272.6 kB / 442.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.243, allocations: 8 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.243, allocations: 0 / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002624/0.2433, allocations: 60.97 kB / 442.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.2435, allocations: 55.91 kB / 442.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.2449, allocations: 1.434 MB / 443.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.2451, allocations: 43.95 kB / 443.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.2452, allocations: 12 kB / 443.9 MB, free: 10.68 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.0001543/0.2453, allocations: 149.7 kB / 444 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.2454, allocations: 19.84 kB / 444.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.335e-05/0.2454, allocations: 29.95 kB / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2454, allocations: 0 / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2454, allocations: 4 kB / 444.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.814e-05/0.2455, allocations: 31.83 kB / 444.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.2455, allocations: 4 kB / 444.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.2457, allocations: 23.98 kB / 444.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.2458, allocations: 15.95 kB / 444.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005784/0.2463, allocations: 281.7 kB / 444.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005327/0.2469, allocations: 428.3 kB / 444.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001223/0.247, allocations: 68 kB / 444.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.2471, allocations: 145.5 kB / 445.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of Backend: time 1.91e-07/0.2471, allocations: 0 / 445.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007284/0.2479, allocations: 307.5 kB / 445.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of SimCode: time 0.001219/0.2491, allocations: 1.03 MB / 446.4 MB, free: 8.082 MB / 350.1 MB Notification: Performance of Templates: time 0.007556/0.2566, allocations: 3.504 MB / 449.9 MB, free: 4.633 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.420395154003927]