Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 108.6 kB / 21.18 MB, free: 0.7812 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002096/0.002096, allocations: 186 kB / 24.47 MB, free: 4.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 43.92 kB / 371.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2363, allocations: 52.18 MB / 423.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004299/0.2406, allocations: 2.908 MB / 426.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.2419, allocations: 0.7439 MB / 427.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.242, allocations: 11.94 kB / 427.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.2421, allocations: 47.5 kB / 427.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.2423, allocations: 91.19 kB / 427.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003187/0.2426, allocations: 103.8 kB / 427.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.2431, allocations: 370.4 kB / 428.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.2433, allocations: 91.67 kB / 428.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.2434, allocations: 135.5 kB / 428.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/0.2437, allocations: 151.4 kB / 428.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.981e-05/0.2437, allocations: 32 kB / 428.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.217e-05/0.2438, allocations: 32 kB / 428.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.071e-05/0.2438, allocations: 75.75 kB / 428.6 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.244, allocations: 167.2 kB / 428.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000404/0.2444, allocations: 363.8 kB / 429.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2444, allocations: 0 / 429.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2444, allocations: 0 / 429.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.2444, allocations: 0 / 429.2 MB, free: 9.395 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.001002/0.2454, allocations: 0.5378 MB / 429.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.2455, allocations: 12.03 kB / 429.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.979e-05/0.2455, allocations: 44.61 kB / 429.8 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.2459, allocations: 202.7 kB / 430 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.246, allocations: 128 kB / 430.1 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.069e-05/0.2461, allocations: 32.38 kB / 430.1 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004945/0.2465, allocations: 306 kB / 430.4 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.2466, allocations: 0 / 430.4 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.2466, allocations: 12 kB / 430.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.2466, allocations: 4 kB / 430.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/0.247, allocations: 190.5 kB / 430.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.2487, allocations: 1.089 MB / 431.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.249, allocations: 146.3 kB / 431.8 MB, free: 6.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.2491, allocations: 76.83 kB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.2492, allocations: 4 kB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.2494, allocations: 160.6 kB / 432.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.2494, allocations: 0 / 432.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001004/0.2504, allocations: 302.9 kB / 432.4 MB, free: 5.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/0.2505, allocations: 110.8 kB / 432.5 MB, free: 5.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.2507, allocations: 228.9 kB / 432.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.2508, allocations: 29.7 kB / 432.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.2509, allocations: 188.4 kB / 432.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.479e-05/0.251, allocations: 67.48 kB / 433 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.202e-05/0.2511, allocations: 57.7 kB / 433 MB, free: 5.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2512, allocations: 334.8 kB / 433.4 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.2514, allocations: 71.97 kB / 433.4 MB, free: 4.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.2516, allocations: 145.4 kB / 433.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.2519, allocations: 193.3 kB / 433.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2519, allocations: 0 / 433.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004509/0.2523, allocations: 276.6 kB / 434 MB, free: 4.184 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.2523, allocations: 4 kB / 434 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2523, allocations: 4 kB / 434.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002581/0.2526, allocations: 56.73 kB / 434.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.2528, allocations: 60.08 kB / 434.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001421/0.2542, allocations: 1.468 MB / 435.6 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.2545, allocations: 35.78 kB / 435.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.777e-05/0.2545, allocations: 11.98 kB / 435.7 MB, free: 2.43 MB / 334.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.0001569/0.2546, allocations: 149.8 kB / 435.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.2547, allocations: 23.86 kB / 435.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.014e-05/0.2547, allocations: 30.27 kB / 435.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2547, allocations: 0 / 435.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.2547, allocations: 0 / 435.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2547, allocations: 4 kB / 435.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.2551, allocations: 296.4 kB / 436.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2551, allocations: 0 / 436.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.2552, allocations: 31.92 kB / 436.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.2554, allocations: 52.81 kB / 436.3 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.2554, allocations: 7.984 kB / 436.3 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.2567, allocations: 1.322 MB / 437.6 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.2567, allocations: 3.984 kB / 437.6 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006419/0.2573, allocations: 328 kB / 437.9 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.2574, allocations: 39.84 kB / 437.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.2574, allocations: 8 kB / 438 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.2576, allocations: 15.98 kB / 438 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.778e-05/0.2577, allocations: 31.94 kB / 438 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.2577, allocations: 4.062 kB / 438 MB, free: 15.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001587/0.2579, allocations: 168.5 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2579, allocations: 0 / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003633/0.2582, allocations: 83.78 kB / 438.3 MB, free: 15.67 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.0001195/0.2583, allocations: 103.2 kB / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005499/0.2589, allocations: 278.8 kB / 438.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.2589, allocations: 4.062 kB / 438.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.2592, allocations: 193.2 kB / 438.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.2595, allocations: 32.42 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.2611, allocations: 0.6924 MB / 439.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.2614, allocations: 0.7558 MB / 440.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.226e-05/0.2615, allocations: 27.44 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2615, allocations: 0 / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of Templates: time 0.007073/0.2686, allocations: 4.207 MB / 444.5 MB, free: 9.301 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.414889890002087]