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.001878/0.001878, allocations: 109.1 kB / 21.18 MB, free: 0.7852 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.002386/0.002386, allocations: 217.3 kB / 24.49 MB, free: 4.172 MB / 14.72 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.773/1.773, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001993/0.001993, allocations: 59.91 kB / 379 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2353, allocations: 53.43 MB / 432.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004229/0.2396, allocations: 2.902 MB / 435.4 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.2412, allocations: 0.7751 MB / 436.1 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.2414, allocations: 7.938 kB / 436.1 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.2416, allocations: 51.5 kB / 436.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002606/0.2419, allocations: 87.19 kB / 436.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.2423, allocations: 115.8 kB / 436.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004994/0.2428, allocations: 366.4 kB / 436.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.243, allocations: 91.61 kB / 436.8 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.2432, allocations: 147.4 kB / 437 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.2435, allocations: 155.3 kB / 437.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.137e-05/0.2435, allocations: 32 kB / 437.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.086e-05/0.2436, allocations: 28 kB / 437.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-05/0.2437, allocations: 75.75 kB / 437.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.2438, allocations: 155.3 kB / 437.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.2443, allocations: 367.8 kB / 437.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2443, allocations: 0 / 437.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2443, allocations: 4 kB / 437.8 MB, free: 1.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.2443, allocations: 0 / 437.8 MB, free: 1.43 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.001059/0.2453, allocations: 0.5378 MB / 438.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2454, allocations: 12.03 kB / 438.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.924e-05/0.2455, allocations: 40.7 kB / 438.4 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004256/0.2459, allocations: 202.7 kB / 438.6 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.246, allocations: 132 kB / 438.7 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/0.2461, allocations: 28.38 kB / 438.7 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005027/0.2466, allocations: 302 kB / 439 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2466, allocations: 0 / 439 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.2466, allocations: 16 kB / 439 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.2466, allocations: 4 kB / 439 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.247, allocations: 190.6 kB / 439.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.2488, allocations: 1.085 MB / 440.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.2492, allocations: 146.6 kB / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.2493, allocations: 72.83 kB / 440.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.2493, allocations: 4 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.2496, allocations: 161.2 kB / 440.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.2496, allocations: 0 / 440.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00103/0.2506, allocations: 310.5 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.069e-05/0.2507, allocations: 102.8 kB / 441.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.2509, allocations: 228.9 kB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.251, allocations: 33.7 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.2511, allocations: 192.4 kB / 441.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.276e-05/0.2512, allocations: 67.48 kB / 441.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.89e-05/0.2512, allocations: 53.7 kB / 441.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.2514, allocations: 338.8 kB / 442 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.2515, allocations: 67.97 kB / 442.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.2517, allocations: 141.5 kB / 442.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.252, allocations: 196.1 kB / 442.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.252, allocations: 0 / 442.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004478/0.2525, allocations: 272.5 kB / 442.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2525, allocations: 4 kB / 442.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.2525, allocations: 7.938 kB / 442.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002674/0.2527, allocations: 57.03 kB / 442.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.253, allocations: 55.91 kB / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.2544, allocations: 1.468 MB / 444.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.2546, allocations: 43.92 kB / 444.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.2547, allocations: 12 kB / 444.3 MB, free: 10.47 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.0001603/0.2548, allocations: 148.8 kB / 444.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.571e-05/0.2549, allocations: 23.86 kB / 444.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.318e-05/0.2549, allocations: 30.27 kB / 444.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2549, allocations: 0 / 444.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.2549, allocations: 4 kB / 444.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2549, allocations: 7.984 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003368/0.2553, allocations: 296.4 kB / 444.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2553, allocations: 0 / 444.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.2555, allocations: 35.91 kB / 444.8 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001815/0.2556, allocations: 48.83 kB / 444.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.2557, allocations: 11.98 kB / 444.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/0.2569, allocations: 1.322 MB / 446.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2569, allocations: 0 / 446.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006319/0.2575, allocations: 316.7 kB / 446.5 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.99e-05/0.2576, allocations: 43.8 kB / 446.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.2576, allocations: 4.125 kB / 446.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.2578, allocations: 19.92 kB / 446.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/0.2579, allocations: 35.88 kB / 446.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.2579, allocations: 8 kB / 446.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.258, allocations: 164.5 kB / 446.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.258, allocations: 0 / 446.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000359/0.2584, allocations: 83.83 kB / 446.9 MB, free: 7.711 MB / 350.1 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.0001236/0.2585, allocations: 99.25 kB / 447 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005459/0.2591, allocations: 282.4 kB / 447.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2591, allocations: 0 / 447.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002956/0.2594, allocations: 186.6 kB / 447.4 MB, free: 7.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.2597, allocations: 47.55 kB / 447.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.2612, allocations: 0.6923 MB / 448.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.2616, allocations: 0.7558 MB / 448.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.194e-05/0.2617, allocations: 23.44 kB / 448.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2617, allocations: 0 / 448.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of Templates: time 0.006446/0.2681, allocations: 4.216 MB / 453.2 MB, free: 1.336 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 7.736980758840218]