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.0018/0.0018, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001999/0.001999, allocations: 209.9 kB / 24.48 MB, free: 3.934 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.483/1.483, allocations: 230.5 MB / 258.1 MB, free: 7.785 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.002221/0.002221, allocations: 59.91 kB / 379 MB, free: 2.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.256, allocations: 53.41 MB / 432.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004394/0.2604, allocations: 2.703 MB / 435.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.2619, allocations: 0.7322 MB / 435.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.2621, allocations: 12 kB / 435.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.2622, allocations: 51.5 kB / 435.9 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.2624, allocations: 87.12 kB / 436 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003586/0.2628, allocations: 107.8 kB / 436.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004365/0.2632, allocations: 370.5 kB / 436.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.2634, allocations: 79.64 kB / 436.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001993/0.2636, allocations: 147.5 kB / 436.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.2639, allocations: 135.2 kB / 436.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.83e-05/0.2639, allocations: 32 kB / 436.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.256e-05/0.264, allocations: 28 kB / 436.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.54e-05/0.2641, allocations: 71.77 kB / 436.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.2642, allocations: 139.4 kB / 437.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004592/0.2647, allocations: 369.5 kB / 437.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2647, allocations: 0 / 437.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.2647, allocations: 0 / 437.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.2647, allocations: 0 / 437.4 MB, free: 1.461 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.001049/0.2657, allocations: 0.5339 MB / 438 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.2658, allocations: 15.98 kB / 438 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.69e-05/0.2659, allocations: 36.7 kB / 438 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/0.2663, allocations: 206.7 kB / 438.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.2664, allocations: 140 kB / 438.3 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.04e-05/0.2665, allocations: 28.38 kB / 438.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.267, allocations: 349.5 kB / 438.7 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.267, allocations: 3.938 kB / 438.7 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.267, allocations: 12 kB / 438.7 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.267, allocations: 8 kB / 438.7 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003793/0.2674, allocations: 186.5 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.2692, allocations: 0.9689 MB / 439.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.2695, allocations: 150.6 kB / 440 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.2696, allocations: 72.78 kB / 440.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.2696, allocations: 4 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003218/0.27, allocations: 220.7 kB / 440.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.27, allocations: 0 / 440.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001031/0.271, allocations: 302.5 kB / 440.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.2711, allocations: 106.8 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.2713, allocations: 211.7 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.2713, allocations: 25.7 kB / 441 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.2715, allocations: 184.4 kB / 441.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.738e-05/0.2715, allocations: 75.41 kB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.442e-05/0.2716, allocations: 57.66 kB / 441.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.2718, allocations: 338.8 kB / 441.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.272, allocations: 63.97 kB / 441.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.2722, allocations: 193 kB / 441.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.2725, allocations: 196.1 kB / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2725, allocations: 0 / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004504/0.273, allocations: 272.5 kB / 442.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.273, allocations: 8.219 kB / 442.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.273, allocations: 4 kB / 442.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002679/0.2732, allocations: 52.8 kB / 442.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.2735, allocations: 51.92 kB / 442.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.2749, allocations: 1.453 MB / 443.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.2751, allocations: 31.83 kB / 443.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.2752, allocations: 8 kB / 443.9 MB, free: 10.5 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.0001605/0.2753, allocations: 153.4 kB / 444.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.2754, allocations: 27.97 kB / 444.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.2754, allocations: 25.95 kB / 444.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2754, allocations: 0 / 444.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.2754, allocations: 3.938 kB / 444.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.2754, allocations: 0 / 444.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.2757, allocations: 221.2 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2757, allocations: 0 / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.2758, allocations: 31.92 kB / 444.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001867/0.276, allocations: 60.75 kB / 444.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.276, allocations: 4 kB / 444.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.2773, allocations: 1.295 MB / 445.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2773, allocations: 0 / 445.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006514/0.278, allocations: 329.2 kB / 446 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.563e-05/0.278, allocations: 39.8 kB / 446.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.2781, allocations: 8 kB / 446.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.2782, allocations: 11.98 kB / 446.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.63e-05/0.2783, allocations: 43.81 kB / 446.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.2783, allocations: 8 kB / 446.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001266/0.2785, allocations: 145.5 kB / 446.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2785, allocations: 4.062 kB / 446.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003658/0.2788, allocations: 75.89 kB / 446.4 MB, free: 7.883 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.0001409/0.279, allocations: 103.2 kB / 446.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005525/0.2795, allocations: 278.5 kB / 446.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2795, allocations: 4 kB / 446.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.2798, allocations: 191 kB / 446.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.2801, allocations: 43.2 kB / 447 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.2818, allocations: 0.6873 MB / 447.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.2819, allocations: 158.7 kB / 447.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/0.282, allocations: 19.44 kB / 447.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.282, allocations: 0 / 447.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of Templates: time 0.006955/0.2889, allocations: 4.2 MB / 452 MB, free: 2.141 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.448206154163927]