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.001556/0.001556, allocations: 119.1 kB / 18.46 MB, free: 4.562 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.001879/0.001879, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.511/1.511, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001526/0.001526, allocations: 47.92 kB / 374.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1248, allocations: 53.33 MB / 427.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00494/0.1298, allocations: 3.172 MB / 430.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.1314, allocations: 0.8218 MB / 431.5 MB, free: 248 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1316, allocations: 7.938 kB / 431.5 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.1318, allocations: 67.42 kB / 431.6 MB, free: 172 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.132, allocations: 98.98 kB / 431.7 MB, free: 72 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2233/0.3553, allocations: 119.5 kB / 431.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007782/0.356, allocations: 421.7 kB / 432.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.3563, allocations: 96.64 kB / 432.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003148/0.3566, allocations: 172.3 kB / 432.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.3568, allocations: 174 kB / 432.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.217e-05/0.3569, allocations: 37 kB / 432.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.357, allocations: 37.97 kB / 432.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.468e-05/0.3571, allocations: 83.94 kB / 432.8 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.3573, allocations: 189.7 kB / 433 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004754/0.3577, allocations: 428.9 kB / 433.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3577, allocations: 0.75 kB / 433.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3577, allocations: 0.5 kB / 433.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.3578, allocations: 1.281 kB / 433.4 MB, free: 7.918 MB / 350.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.0009631/0.3587, allocations: 0.664 MB / 434.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.3588, allocations: 11.44 kB / 434.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.359, allocations: 53.36 kB / 434.1 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.3593, allocations: 282.6 kB / 434.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.764e-05/0.3594, allocations: 81.25 kB / 434.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.3594, allocations: 32.16 kB / 434.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005127/0.3599, allocations: 344.6 kB / 434.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3599, allocations: 0 / 434.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.36, allocations: 11.66 kB / 434.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.36, allocations: 7.938 kB / 434.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.3604, allocations: 225.1 kB / 435.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.3621, allocations: 1.355 MB / 436.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003362/0.3625, allocations: 155.7 kB / 436.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.3626, allocations: 87.06 kB / 436.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.3627, allocations: 10.81 kB / 436.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.3629, allocations: 159.3 kB / 436.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.3629, allocations: 1.156 kB / 436.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001156/0.3641, allocations: 400.2 kB / 437.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.3641, allocations: 111.8 kB / 437.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002917/0.3644, allocations: 262 kB / 437.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.3645, allocations: 32.08 kB / 437.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.3646, allocations: 213.8 kB / 437.8 MB, free: 5.613 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.3646, allocations: 77.91 kB / 437.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.3647, allocations: 63.78 kB / 438 MB, free: 5.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.241e-05/0.3648, allocations: 335 kB / 438.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.365, allocations: 76.7 kB / 438.4 MB, free: 5.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.3652, allocations: 177 kB / 438.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003284/0.3655, allocations: 237.6 kB / 438.8 MB, free: 5.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3655, allocations: 3.938 kB / 438.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006811/0.3662, allocations: 344.3 kB / 439.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3662, allocations: 6.719 kB / 439.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3662, allocations: 3.672 kB / 439.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002836/0.3665, allocations: 57.89 kB / 439.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.3668, allocations: 64.23 kB / 439.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.3679, allocations: 1.567 MB / 440.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.3681, allocations: 49.95 kB / 440.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.3681, allocations: 15.77 kB / 440.9 MB, free: 3.258 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.0001382/0.3683, allocations: 149.9 kB / 441 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.257e-05/0.3683, allocations: 28.22 kB / 441.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.09e-05/0.3684, allocations: 36.39 kB / 441.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.3684, allocations: 3.438 kB / 441.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3684, allocations: 4 kB / 441.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.3684, allocations: 1.219 kB / 441.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003368/0.3687, allocations: 340.1 kB / 441.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.3687, allocations: 2.984 kB / 441.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.3689, allocations: 37.22 kB / 441.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00019/0.3691, allocations: 50.81 kB / 441.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.3691, allocations: 11.39 kB / 441.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008717/0.37, allocations: 1.421 MB / 442.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.37, allocations: 0 / 442.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006978/0.3707, allocations: 358 kB / 443.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.239e-05/0.3708, allocations: 113.9 kB / 443.4 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.3708, allocations: 2.812 kB / 443.4 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.371, allocations: 19.19 kB / 443.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.314e-05/0.3711, allocations: 31.52 kB / 443.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.3711, allocations: 8.625 kB / 443.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.3713, allocations: 183.2 kB / 443.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3713, allocations: 4.062 kB / 443.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004157/0.3717, allocations: 93.94 kB / 443.7 MB, free: 0.9258 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.0001301/0.3718, allocations: 110.6 kB / 443.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006318/0.3725, allocations: 298.8 kB / 444.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3725, allocations: 1.969 kB / 444.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002832/0.3728, allocations: 203.7 kB / 444.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.373, allocations: 41.91 kB / 444.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.3745, allocations: 0.7112 MB / 445.1 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.3749, allocations: 0.7701 MB / 445.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.581e-05/0.375, allocations: 23.5 kB / 445.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.375, allocations: 0.5625 kB / 445.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of Templates: time 0.008517/0.3835, allocations: 4.696 MB / 450.6 MB, free: 15 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/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: 7.756896184000652]