Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001244/0.001244, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.001651/0.001651, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.2 MB / 255.1 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002543/0.002543, allocations: 67.89 kB / 374.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1077, allocations: 53.32 MB / 427.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00421/0.1119, allocations: 2.894 MB / 430.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.1133, allocations: 0.775 MB / 431.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1134, allocations: 8 kB / 431.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1136, allocations: 51.5 kB / 431.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001873/0.1138, allocations: 91.12 kB / 431.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.1141, allocations: 103.8 kB / 431.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004204/0.1145, allocations: 366.4 kB / 432.1 MB, free: 252 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.1147, allocations: 87.27 kB / 432.2 MB, free: 156 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.1149, allocations: 143.5 kB / 432.4 MB, free: 12 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.18/0.2949, allocations: 151 kB / 432.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.295, allocations: 30.19 kB / 432.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.336e-05/0.2951, allocations: 32.5 kB / 432.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.081e-05/0.2952, allocations: 69 kB / 432.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.2954, allocations: 161.5 kB / 432.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005982/0.296, allocations: 369.4 kB / 433.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.296, allocations: 0 / 433.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.296, allocations: 1.156 kB / 433.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.296, allocations: 0 / 433.1 MB, free: 8.199 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001218/0.2972, allocations: 0.609 MB / 433.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.2973, allocations: 10.66 kB / 433.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.2974, allocations: 38.45 kB / 433.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005082/0.2979, allocations: 275.3 kB / 434.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.206e-05/0.298, allocations: 77.41 kB / 434.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-05/0.2981, allocations: 33 kB / 434.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007187/0.2988, allocations: 301.7 kB / 434.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.2988, allocations: 0 / 434.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.2989, allocations: 13.75 kB / 434.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.2989, allocations: 10.72 kB / 434.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004716/0.2994, allocations: 190.1 kB / 434.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.3013, allocations: 1.126 MB / 435.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.3017, allocations: 143.6 kB / 436 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.3019, allocations: 82.08 kB / 436 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.3019, allocations: 3.375 kB / 436 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/0.3022, allocations: 159.1 kB / 436.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.804e-06/0.3022, allocations: 1.094 kB / 436.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001395/0.3036, allocations: 384.7 kB / 436.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.3036, allocations: 107 kB / 436.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.3039, allocations: 224.1 kB / 436.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.3039, allocations: 33.02 kB / 436.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.081e-05/0.304, allocations: 183.9 kB / 437.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.263e-05/0.3041, allocations: 71.84 kB / 437.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.3042, allocations: 57.48 kB / 437.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.718e-05/0.3042, allocations: 337.9 kB / 437.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.3044, allocations: 64.47 kB / 437.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.3046, allocations: 141.3 kB / 437.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.3049, allocations: 195.8 kB / 438 MB, free: 5.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.305, allocations: 0 / 438 MB, free: 5.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006471/0.3056, allocations: 276.4 kB / 438.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3056, allocations: 6.516 kB / 438.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3056, allocations: 2.5 kB / 438.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000393/0.306, allocations: 54.56 kB / 438.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.3064, allocations: 53.55 kB / 438.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.3079, allocations: 1.566 MB / 439.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/0.3083, allocations: 41 kB / 439.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.097e-05/0.3083, allocations: 15.97 kB / 440 MB, free: 3.988 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001931/0.3085, allocations: 150.3 kB / 440.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.911e-05/0.3086, allocations: 23.61 kB / 440.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.668e-05/0.3086, allocations: 32.08 kB / 440.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.3086, allocations: 1.469 kB / 440.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.3086, allocations: 1.547 kB / 440.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3086, allocations: 0.7031 kB / 440.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000411/0.3091, allocations: 321.3 kB / 440.5 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3091, allocations: 5.125 kB / 440.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/0.3093, allocations: 31.42 kB / 440.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002305/0.3095, allocations: 51.02 kB / 440.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.3096, allocations: 6.156 kB / 440.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00103/0.3106, allocations: 1.425 MB / 442 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3106, allocations: 0 / 442 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009103/0.3115, allocations: 325.5 kB / 442.3 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.3116, allocations: 111.7 kB / 442.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.3117, allocations: 12.81 kB / 442.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.3119, allocations: 20.81 kB / 442.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.312, allocations: 29.17 kB / 442.5 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.3121, allocations: 5.938 kB / 442.5 MB, free: 2.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002048/0.3123, allocations: 161.3 kB / 442.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3123, allocations: 2.531 kB / 442.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006852/0.313, allocations: 84.12 kB / 442.7 MB, free: 1.902 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001526/0.3131, allocations: 108.2 kB / 442.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006735/0.3138, allocations: 278.7 kB / 443.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3138, allocations: 0 / 443.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003573/0.3141, allocations: 191.8 kB / 443.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.3146, allocations: 44.84 kB / 443.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.3166, allocations: 0.6902 MB / 444 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.3168, allocations: 0.765 MB / 444.8 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.781e-05/0.3169, allocations: 22.77 kB / 444.8 MB, free: 388 kB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3169, allocations: 0 / 444.8 MB, free: 388 kB / 350.1 MB Notification: Performance of Templates: time 0.008713/0.3256, allocations: 4.207 MB / 449 MB, free: 52 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.226480568991974]