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.001794/0.001794, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002464/0.002464, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.586/1.586, allocations: 230.6 MB / 258.3 MB, free: 7.738 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.00162/0.00162, allocations: 48.06 kB / 379 MB, free: 2.422 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2324, allocations: 53.36 MB / 432.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004051/0.2364, allocations: 2.714 MB / 435 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.2378, allocations: 0.7284 MB / 435.8 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.2379, allocations: 7.938 kB / 435.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.238, allocations: 55.5 kB / 435.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.2382, allocations: 87.19 kB / 435.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.2385, allocations: 103.8 kB / 436 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.239, allocations: 378.3 kB / 436.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.2391, allocations: 83.69 kB / 436.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.2393, allocations: 143.5 kB / 436.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.2395, allocations: 155.4 kB / 436.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.245e-05/0.2396, allocations: 32 kB / 436.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.618e-05/0.2396, allocations: 28 kB / 436.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.238e-05/0.2397, allocations: 71.75 kB / 436.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.2398, allocations: 135.4 kB / 437 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004079/0.2403, allocations: 370.2 kB / 437.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2403, allocations: 0 / 437.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2403, allocations: 0 / 437.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.2403, allocations: 4 kB / 437.4 MB, free: 1.598 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.001053/0.2413, allocations: 0.5339 MB / 437.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2414, allocations: 8.031 kB / 437.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.307e-05/0.2414, allocations: 40.7 kB / 438 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/0.2418, allocations: 206.7 kB / 438.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.2419, allocations: 136 kB / 438.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.242, allocations: 24.38 kB / 438.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.2425, allocations: 357.4 kB / 438.7 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.2426, allocations: 3.984 kB / 438.7 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.639e-05/0.2426, allocations: 16 kB / 438.7 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.2426, allocations: 4 kB / 438.7 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003711/0.243, allocations: 186.5 kB / 438.9 MB, free: 16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.2446, allocations: 0.965 MB / 439.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.2449, allocations: 142.6 kB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.2451, allocations: 87.38 kB / 440.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.2451, allocations: 0 / 440.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.2454, allocations: 211.3 kB / 440.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.372e-06/0.2454, allocations: 3.938 kB / 440.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001084/0.2465, allocations: 309.5 kB / 440.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.522e-05/0.2466, allocations: 106.8 kB / 440.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000209/0.2468, allocations: 207.8 kB / 440.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.2468, allocations: 37.64 kB / 440.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.2469, allocations: 180.4 kB / 441.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.837e-05/0.247, allocations: 71.42 kB / 441.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.2471, allocations: 65.64 kB / 441.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.2473, allocations: 330.8 kB / 441.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.2474, allocations: 67.97 kB / 441.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.2477, allocations: 192 kB / 441.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.248, allocations: 192.2 kB / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.248, allocations: 0 / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005074/0.2485, allocations: 272.5 kB / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.2485, allocations: 8 kB / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2485, allocations: 0 / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002976/0.2488, allocations: 61.03 kB / 442.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.249, allocations: 47.92 kB / 442.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.2505, allocations: 1.446 MB / 443.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.2508, allocations: 35.86 kB / 443.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.2508, allocations: 15.98 kB / 443.9 MB, free: 10.64 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.0001622/0.251, allocations: 147.3 kB / 444 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.251, allocations: 19.84 kB / 444 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.266e-05/0.2511, allocations: 25.95 kB / 444.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2511, allocations: 8.094 kB / 444.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.2511, allocations: 0 / 444.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2511, allocations: 0 / 444.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.2514, allocations: 217.2 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2514, allocations: 4 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.2515, allocations: 31.92 kB / 444.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002056/0.2517, allocations: 60.75 kB / 444.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.2518, allocations: 0 / 444.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/0.2532, allocations: 1.299 MB / 445.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2532, allocations: 0 / 445.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.2539, allocations: 329.8 kB / 446 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.462e-05/0.254, allocations: 35.81 kB / 446 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.2541, allocations: 7.984 kB / 446.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.2542, allocations: 19.98 kB / 446.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.2544, allocations: 35.77 kB / 446.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.2544, allocations: 11.98 kB / 446.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002171/0.2546, allocations: 149.5 kB / 446.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2546, allocations: 3.938 kB / 446.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006606/0.2553, allocations: 79.89 kB / 446.3 MB, free: 8.02 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.0001818/0.2554, allocations: 103.3 kB / 446.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008591/0.2563, allocations: 276.1 kB / 446.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.2563, allocations: 4 kB / 446.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004636/0.2568, allocations: 194.5 kB / 446.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004454/0.2572, allocations: 32.2 kB / 446.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.2592, allocations: 0.6557 MB / 447.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.2594, allocations: 154.7 kB / 447.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.075e-05/0.2595, allocations: 17.94 kB / 447.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.2595, allocations: 19.44 kB / 447.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2595, allocations: 4 kB / 447.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of Templates: time 0.007606/0.2671, allocations: 3.266 MB / 451.1 MB, free: 3.285 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 -s gbode -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.747262913006125]