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.0009525/0.0009525, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001096/0.001096, allocations: 166.7 kB / 24.82 MB, free: 9.266 MB / 18.57 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.025/1.025, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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 1.322e-06/1.322e-06, allocations: 0 / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.493e-05, allocations: 8.781 kB / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003371/0.003396, allocations: 3.116 MB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.004896, allocations: 0.8021 MB / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.005056, allocations: 8 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.005196, allocations: 59.42 kB / 277.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.005376, allocations: 110.9 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.005781, allocations: 127.6 kB / 277.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004204/0.006201, allocations: 429.9 kB / 278.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.006417, allocations: 100.4 kB / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.006864, allocations: 247.5 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.007059, allocations: 131.7 kB / 278.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.561e-05/0.007105, allocations: 36 kB / 278.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.595e-05/0.007181, allocations: 36 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.426e-05/0.007235, allocations: 91.59 kB / 278.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.841e-05/0.007324, allocations: 123.7 kB / 278.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003592/0.007683, allocations: 298.9 kB / 279.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.007687, allocations: 0 / 279.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.007688, allocations: 0 / 279.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.007693, allocations: 0 / 279.1 MB, free: 11.56 MB / 266.7 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.0007277/0.008421, allocations: 0.683 MB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.00846, allocations: 12.03 kB / 279.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.008613, allocations: 76.66 kB / 279.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.008847, allocations: 224.9 kB / 280.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.633e-05/0.008923, allocations: 132 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.008958, allocations: 32.38 kB / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.009244, allocations: 334.6 kB / 280.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.009254, allocations: 4.188 kB / 280.6 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.009274, allocations: 16.12 kB / 280.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.009281, allocations: 8 kB / 280.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.00941, allocations: 100.4 kB / 280.7 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.0105, allocations: 1.37 MB / 282.1 MB, free: 8.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.01067, allocations: 115.1 kB / 282.2 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.899e-05/0.01072, allocations: 43.66 kB / 282.2 MB, free: 8.195 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.01073, allocations: 8 kB / 282.2 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001599/0.01089, allocations: 198.3 kB / 282.4 MB, free: 7.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.0109, allocations: 0 / 282.4 MB, free: 7.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.00048/0.01138, allocations: 233.3 kB / 282.6 MB, free: 7.719 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.01142, allocations: 106.8 kB / 282.8 MB, free: 7.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.01157, allocations: 292 kB / 283 MB, free: 7.289 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.01159, allocations: 29.7 kB / 283.1 MB, free: 7.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.01171, allocations: 262.9 kB / 283.3 MB, free: 6.992 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.92e-05/0.01174, allocations: 67.42 kB / 283.4 MB, free: 6.926 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.378e-05/0.01182, allocations: 75.59 kB / 283.5 MB, free: 6.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.01194, allocations: 0.5039 MB / 284 MB, free: 6.328 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.288e-05/0.01198, allocations: 36.62 kB / 284 MB, free: 6.293 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.01212, allocations: 228.5 kB / 284.2 MB, free: 5.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.01227, allocations: 201.5 kB / 284.4 MB, free: 5.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.01227, allocations: 0 / 284.4 MB, free: 5.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003739/0.01265, allocations: 263.3 kB / 284.7 MB, free: 5.484 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.01266, allocations: 8 kB / 284.7 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.01266, allocations: 0 / 284.7 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001223/0.01279, allocations: 47.81 kB / 284.7 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.01292, allocations: 71.84 kB / 284.8 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000918/0.01384, allocations: 1.958 MB / 286.8 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.01396, allocations: 43.77 kB / 286.8 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.01397, allocations: 12.12 kB / 286.8 MB, free: 3.23 MB / 266.7 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 9.98e-05/0.01407, allocations: 183 kB / 287 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.0141, allocations: 27.86 kB / 287 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.01413, allocations: 30.27 kB / 287.1 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01413, allocations: 4 kB / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.01414, allocations: 0 / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.01414, allocations: 0 / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.0143, allocations: 200.9 kB / 287.3 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.0143, allocations: 0 / 287.3 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.477e-05/0.01439, allocations: 43.92 kB / 287.3 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.266e-05/0.01448, allocations: 47.62 kB / 287.3 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.01449, allocations: 0 / 287.3 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000679/0.01517, allocations: 1.733 MB / 289.1 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01517, allocations: 0 / 289.1 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002753/0.01545, allocations: 254.8 kB / 289.3 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.236e-05/0.0155, allocations: 35.81 kB / 289.4 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.01552, allocations: 8 kB / 289.4 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.846e-05/0.01559, allocations: 23.95 kB / 289.4 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/0.01564, allocations: 27.95 kB / 289.4 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.01565, allocations: 7.984 kB / 289.4 MB, free: 452 kB / 266.7 MB Notification: Performance of sorting global known variables: time 8.229e-05/0.01574, allocations: 189.1 kB / 289.6 MB, free: 260 kB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01574, allocations: 0 / 289.6 MB, free: 260 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002581/0.01599, allocations: 95.78 kB / 289.7 MB, free: 164 kB / 266.7 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.0001157/0.01611, allocations: 99.25 kB / 289.8 MB, free: 56 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003213/0.01643, allocations: 316.7 kB / 290.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01643, allocations: 0 / 290.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.01658, allocations: 229.4 kB / 290.3 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001751/0.01675, allocations: 35.75 kB / 290.4 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.01805, allocations: 0.6198 MB / 291 MB, free: 14.8 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.823e-05/0.01809, allocations: 88.31 kB / 291.1 MB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.909e-05/0.01816, allocations: 26.22 kB / 291.1 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.01827, allocations: 114.2 kB / 291.2 MB, free: 14.55 MB / 282.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01827, allocations: 0 / 291.2 MB, free: 14.55 MB / 282.7 MB Notification: Performance of Templates: time 0.005215/0.02348, allocations: 3.159 MB / 294.4 MB, free: 11.44 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9657220081426203]