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.0008895/0.0008895, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009609/0.0009609, allocations: 170.8 kB / 24.91 MB, free: 9.152 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 0.962/0.962, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.643e-06/1.643e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.55e-05/2.714e-05, allocations: 6.312 kB / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003393/0.00342, allocations: 3.165 MB / 276.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.004477, allocations: 0.8252 MB / 277.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.004596, allocations: 15.94 kB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.004721, allocations: 59.42 kB / 277.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001358/0.004857, allocations: 106.9 kB / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002775/0.005134, allocations: 127.7 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.005426, allocations: 433.9 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.005577, allocations: 107 kB / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.005839, allocations: 251.5 kB / 278.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.005991, allocations: 127.6 kB / 278.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.691e-05/0.006028, allocations: 36 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.614e-05/0.006094, allocations: 36 kB / 278.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.785e-05/0.006142, allocations: 83.72 kB / 278.9 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.947e-05/0.006221, allocations: 131.7 kB / 279 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.006489, allocations: 294.9 kB / 279.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.006491, allocations: 0 / 279.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.006492, allocations: 3.938 kB / 279.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.006497, allocations: 0 / 279.3 MB, free: 11.46 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.0005636/0.00706, allocations: 0.5544 MB / 279.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.007093, allocations: 8.031 kB / 279.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.00724, allocations: 64.88 kB / 279.9 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.007451, allocations: 198.1 kB / 280.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.418e-05/0.007536, allocations: 136 kB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.007572, allocations: 32.38 kB / 280.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.007846, allocations: 315.4 kB / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.007857, allocations: 192 / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.007879, allocations: 20.12 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.007887, allocations: 11.94 kB / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.007997, allocations: 84.53 kB / 280.7 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.009078, allocations: 1.052 MB / 281.7 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.009226, allocations: 114.4 kB / 281.8 MB, free: 8.691 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.62e-05/0.009273, allocations: 40.84 kB / 281.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.009287, allocations: 4 kB / 281.9 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.009442, allocations: 176.2 kB / 282.1 MB, free: 8.441 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.009444, allocations: 0 / 282.1 MB, free: 8.441 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000394/0.009838, allocations: 190.3 kB / 282.2 MB, free: 8.246 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.009892, allocations: 110.8 kB / 282.4 MB, free: 8.113 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.01002, allocations: 233.2 kB / 282.6 MB, free: 7.875 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.01004, allocations: 33.7 kB / 282.6 MB, free: 7.836 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.854e-05/0.01012, allocations: 204.1 kB / 282.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.01016, allocations: 71.41 kB / 282.9 MB, free: 7.562 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.01022, allocations: 61.95 kB / 282.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.394e-05/0.01032, allocations: 338.8 kB / 283.3 MB, free: 7.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.671e-05/0.01035, allocations: 28.64 kB / 283.3 MB, free: 7.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.01046, allocations: 184.9 kB / 283.5 MB, free: 6.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.0106, allocations: 171.5 kB / 283.7 MB, free: 6.688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.01061, allocations: 4 kB / 283.7 MB, free: 6.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002793/0.01089, allocations: 220.4 kB / 283.9 MB, free: 6.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.01091, allocations: 7.938 kB / 283.9 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.01092, allocations: 4 kB / 283.9 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.01108, allocations: 45.16 kB / 283.9 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.01126, allocations: 71.91 kB / 284 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009154/0.01218, allocations: 1.32 MB / 285.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.01232, allocations: 47.77 kB / 285.4 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.01234, allocations: 7.984 kB / 285.4 MB, free: 4.871 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 0.0001007/0.01244, allocations: 135.4 kB / 285.5 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.01246, allocations: 23.92 kB / 285.5 MB, free: 4.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.676e-05/0.01249, allocations: 30.27 kB / 285.6 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.0125, allocations: 4 kB / 285.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.0125, allocations: 0 / 285.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.0125, allocations: 4.031 kB / 285.6 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001403/0.01264, allocations: 165.6 kB / 285.7 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01265, allocations: 0 / 285.7 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.01277, allocations: 47.91 kB / 285.8 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001016/0.01287, allocations: 32.83 kB / 285.8 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.01288, allocations: 4 kB / 285.8 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005475/0.01343, allocations: 1.178 MB / 287 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.01343, allocations: 0 / 287 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002151/0.01365, allocations: 204.7 kB / 287.2 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.01369, allocations: 27.95 kB / 287.2 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.01371, allocations: 11.98 kB / 287.2 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.471e-05/0.01378, allocations: 15.98 kB / 287.2 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.01383, allocations: 27.94 kB / 287.3 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.495e-06/0.01384, allocations: 4 kB / 287.3 MB, free: 2.836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.534e-05/0.01389, allocations: 78.77 kB / 287.4 MB, free: 2.754 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01389, allocations: 0 / 287.4 MB, free: 2.754 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002216/0.01412, allocations: 87.84 kB / 287.4 MB, free: 2.668 MB / 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.0001037/0.01422, allocations: 92.36 kB / 287.5 MB, free: 2.566 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002851/0.0145, allocations: 238.3 kB / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.01451, allocations: 0 / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.01464, allocations: 175.3 kB / 287.9 MB, free: 2.133 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.01479, allocations: 41.11 kB / 288 MB, free: 2.094 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.01598, allocations: 0.5907 MB / 288.6 MB, free: 1.477 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.97e-05/0.01603, allocations: 92.3 kB / 288.7 MB, free: 1.367 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.558e-05/0.0161, allocations: 30.22 kB / 288.7 MB, free: 1.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.952e-05/0.0162, allocations: 95.28 kB / 288.8 MB, free: 1.246 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.0162, allocations: 4 kB / 288.8 MB, free: 1.242 MB / 266.7 MB Notification: Performance of Templates: time 0.005336/0.02154, allocations: 3.226 MB / 292 MB, free: 14.07 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 -s gbode -gbm=radauIIA3 -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.899411307182163]