Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001542/0.001542, allocations: 112.9 kB / 19.17 MB, free: 3.891 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.001647/0.001647, allocations: 210.5 kB / 22.13 MB, free: 0.9375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.465/1.465, allocations: 230.4 MB / 255.4 MB, free: 15.05 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-beta.om/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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.84 kB / 374.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.112, allocations: 53.31 MB / 428.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004888/0.1169, allocations: 3.168 MB / 431.2 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.1186, allocations: 0.8256 MB / 432.1 MB, free: 372 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.1187, allocations: 15.88 kB / 432.1 MB, free: 356 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.1189, allocations: 63.42 kB / 432.1 MB, free: 292 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.1191, allocations: 99.05 kB / 432.2 MB, free: 192 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.1196, allocations: 123.7 kB / 432.4 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2353/0.3549, allocations: 407.3 kB / 432.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.3551, allocations: 101.1 kB / 432.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003362/0.3555, allocations: 166.2 kB / 433 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.3557, allocations: 174.8 kB / 433.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7e-05/0.3558, allocations: 34.97 kB / 433.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.3559, allocations: 43.39 kB / 433.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.459e-05/0.3559, allocations: 81.31 kB / 433.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.3561, allocations: 190.2 kB / 433.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004632/0.3566, allocations: 430 kB / 434 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3566, allocations: 0 / 434 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3566, allocations: 0 / 434 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.3566, allocations: 3.281 kB / 434 MB, free: 7.965 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.0009471/0.3575, allocations: 0.6593 MB / 434.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.3576, allocations: 11.09 kB / 434.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.3578, allocations: 52.81 kB / 434.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.3581, allocations: 283.9 kB / 435 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.797e-05/0.3582, allocations: 80.47 kB / 435 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.3582, allocations: 32.91 kB / 435.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.3587, allocations: 338.1 kB / 435.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.3588, allocations: 3.75 kB / 435.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.3588, allocations: 17.19 kB / 435.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3588, allocations: 9.875 kB / 435.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004058/0.3592, allocations: 215 kB / 435.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3609, allocations: 1.359 MB / 437 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.3612, allocations: 165.3 kB / 437.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.3614, allocations: 78.48 kB / 437.2 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.3614, allocations: 7.547 kB / 437.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002614/0.3617, allocations: 157.2 kB / 437.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.3617, allocations: 3.75 kB / 437.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001299/0.363, allocations: 404.4 kB / 437.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.363, allocations: 111.2 kB / 437.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.3634, allocations: 263.4 kB / 438.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.3634, allocations: 31.83 kB / 438.2 MB, free: 5.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.3635, allocations: 214.3 kB / 438.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.2e-05/0.3636, allocations: 76.41 kB / 438.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.3638, allocations: 61.34 kB / 438.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.673e-05/0.3638, allocations: 337.5 kB / 438.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.3641, allocations: 78.62 kB / 438.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.3644, allocations: 177.8 kB / 439.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004955/0.3649, allocations: 235.6 kB / 439.3 MB, free: 5.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.3649, allocations: 1.75 kB / 439.3 MB, free: 5.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001029/0.3659, allocations: 344.8 kB / 439.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.366, allocations: 9.594 kB / 439.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.366, allocations: 3.062 kB / 439.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.3664, allocations: 60.5 kB / 439.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.3667, allocations: 58.88 kB / 439.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.3682, allocations: 1.566 MB / 441.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000413/0.3686, allocations: 50.67 kB / 441.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.3687, allocations: 11.5 kB / 441.4 MB, free: 3.363 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.0002012/0.3689, allocations: 156.2 kB / 441.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.888e-05/0.3689, allocations: 27.14 kB / 441.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.924e-05/0.369, allocations: 35.86 kB / 441.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.369, allocations: 2.906 kB / 441.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.369, allocations: 5.219 kB / 441.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.369, allocations: 1.312 kB / 441.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000451/0.3695, allocations: 337.8 kB / 442 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3695, allocations: 0 / 442 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002944/0.3697, allocations: 41.27 kB / 442 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002775/0.37, allocations: 53.53 kB / 442.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.3701, allocations: 11.81 kB / 442.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.3713, allocations: 1.42 MB / 443.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3713, allocations: 4.156 kB / 443.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.3724, allocations: 349.3 kB / 443.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.3725, allocations: 112.2 kB / 444 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.623e-05/0.3726, allocations: 7.047 kB / 444 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.3728, allocations: 19.7 kB / 444 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.373, allocations: 34.39 kB / 444 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.373, allocations: 6.359 kB / 444 MB, free: 1.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002487/0.3732, allocations: 188.7 kB / 444.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3732, allocations: 0 / 444.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007165/0.374, allocations: 93.91 kB / 444.3 MB, free: 1.027 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.0001428/0.3741, allocations: 108 kB / 444.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008406/0.3749, allocations: 306.4 kB / 444.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3749, allocations: 0 / 444.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003881/0.3753, allocations: 200.1 kB / 444.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.3757, allocations: 40.89 kB / 444.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.3776, allocations: 0.7152 MB / 445.7 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.378, allocations: 0.7738 MB / 446.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.575e-05/0.3781, allocations: 23.88 kB / 446.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3781, allocations: 0 / 446.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of Templates: time 0.008506/0.3866, allocations: 4.691 MB / 451.2 MB, free: 15.1 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.77116719679907]