Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.002005/0.002005, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002752/0.002752, allocations: 210.8 kB / 23.73 MB, free: 4.387 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.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 55.92 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2525, allocations: 53.36 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004652/0.2571, allocations: 2.926 MB / 434.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.2587, allocations: 0.779 MB / 435.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.2589, allocations: 8 kB / 435.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.2591, allocations: 63.36 kB / 435.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.2593, allocations: 95.06 kB / 435.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/0.2597, allocations: 131.8 kB / 435.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004785/0.2602, allocations: 422.1 kB / 436 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.2604, allocations: 95.97 kB / 436.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.2607, allocations: 171.4 kB / 436.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.2609, allocations: 151.2 kB / 436.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.18e-05/0.2609, allocations: 36 kB / 436.4 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.891e-05/0.261, allocations: 36 kB / 436.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.283e-05/0.2611, allocations: 83.69 kB / 436.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.2613, allocations: 151.3 kB / 436.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005215/0.2618, allocations: 436.8 kB / 437.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.2618, allocations: 8 kB / 437.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2618, allocations: 3.938 kB / 437.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.2618, allocations: 0 / 437.1 MB, free: 1.125 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001114/0.263, allocations: 0.5791 MB / 437.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.263, allocations: 12.03 kB / 437.7 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.2632, allocations: 56.64 kB / 437.8 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.2637, allocations: 227.5 kB / 438 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.2638, allocations: 132 kB / 438.1 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.126e-05/0.2639, allocations: 32.38 kB / 438.2 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.2645, allocations: 390.2 kB / 438.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.2646, allocations: 4 kB / 438.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.2646, allocations: 8 kB / 438.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.2646, allocations: 8 kB / 438.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004385/0.265, allocations: 226.5 kB / 438.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.2669, allocations: 1.19 MB / 440 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.2672, allocations: 162.2 kB / 440.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.2674, allocations: 83.41 kB / 440.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.2674, allocations: 0 / 440.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003374/0.2678, allocations: 217.2 kB / 440.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.393e-06/0.2678, allocations: 0 / 440.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00116/0.2689, allocations: 325.7 kB / 440.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.461e-05/0.269, allocations: 118.7 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.2693, allocations: 244.9 kB / 441.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.2693, allocations: 29.7 kB / 441.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/0.2695, allocations: 224.2 kB / 441.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.627e-05/0.2696, allocations: 63.48 kB / 441.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.2697, allocations: 65.98 kB / 441.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2698, allocations: 334.8 kB / 441.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.27, allocations: 76.62 kB / 441.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.2703, allocations: 224.9 kB / 442.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.2707, allocations: 243.5 kB / 442.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2707, allocations: 4 kB / 442.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007257/0.2714, allocations: 336.4 kB / 442.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.2714, allocations: 11.94 kB / 442.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2714, allocations: 4 kB / 442.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002793/0.2717, allocations: 53.16 kB / 442.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00026/0.272, allocations: 63.91 kB / 442.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.2736, allocations: 1.434 MB / 444.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.2739, allocations: 55.84 kB / 444.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.2739, allocations: 12 kB / 444.3 MB, free: 9.465 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001944/0.2741, allocations: 153.7 kB / 444.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.414e-05/0.2742, allocations: 27.81 kB / 444.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.2742, allocations: 34.27 kB / 444.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.2742, allocations: 0 / 444.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2742, allocations: 3.938 kB / 444.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2742, allocations: 4 kB / 444.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.2745, allocations: 229.2 kB / 444.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.2745, allocations: 0 / 444.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.2747, allocations: 39.98 kB / 444.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001919/0.2749, allocations: 44.81 kB / 444.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.2749, allocations: 19.92 kB / 444.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.2763, allocations: 1.299 MB / 446.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2763, allocations: 0 / 446.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007296/0.277, allocations: 353.7 kB / 446.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-05/0.2771, allocations: 39.8 kB / 446.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.2771, allocations: 0 / 446.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.2773, allocations: 19.98 kB / 446.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2774, allocations: 31.94 kB / 446.6 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.2774, allocations: 8 kB / 446.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000172/0.2776, allocations: 164.5 kB / 446.8 MB, free: 6.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2776, allocations: 0 / 446.8 MB, free: 6.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000423/0.278, allocations: 95.78 kB / 446.8 MB, free: 6.754 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001264/0.2781, allocations: 107.2 kB / 447 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006436/0.2788, allocations: 311.8 kB / 447.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2788, allocations: 0 / 447.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003069/0.2791, allocations: 198.6 kB / 447.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.2794, allocations: 29.12 kB / 447.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.281, allocations: 0.6882 MB / 448.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.2812, allocations: 168.8 kB / 448.3 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.2813, allocations: 22.3 kB / 448.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.613e-05/0.2813, allocations: 19.44 kB / 448.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2813, allocations: 0 / 448.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of Templates: time 0.008145/0.2895, allocations: 3.264 MB / 451.6 MB, free: 1.934 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.772956166416407]