Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001543/0.001543, allocations: 116.1 kB / 21.17 MB, free: 0.6133 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.001825/0.001825, allocations: 205.9 kB / 24.47 MB, free: 4.023 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.444/1.444, allocations: 230.4 MB / 258.1 MB, free: 8.164 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") [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.002241/0.002241, allocations: 67.83 kB / 378.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2884, allocations: 53.3 MB / 432.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004654/0.293, allocations: 2.918 MB / 435 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.2947, allocations: 0.7789 MB / 435.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002885/0.295, allocations: 4 kB / 435.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002472/0.2953, allocations: 47.5 kB / 435.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000294/0.2955, allocations: 95.19 kB / 435.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.296, allocations: 103.8 kB / 436 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005565/0.2965, allocations: 374.4 kB / 436.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.2968, allocations: 85.25 kB / 436.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.2969, allocations: 135.6 kB / 436.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.2972, allocations: 155.3 kB / 436.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.489e-05/0.2972, allocations: 32 kB / 436.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.012e-05/0.2973, allocations: 32 kB / 436.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.144e-05/0.2974, allocations: 71.75 kB / 436.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2975, allocations: 163.2 kB / 437 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004552/0.298, allocations: 362.5 kB / 437.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.298, allocations: 4 kB / 437.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.298, allocations: 0 / 437.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.298, allocations: 3.938 kB / 437.4 MB, free: 2.062 MB / 334.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.001124/0.2991, allocations: 0.6092 MB / 438 MB, free: 1.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.2992, allocations: 8.031 kB / 438 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.122e-05/0.2992, allocations: 40.7 kB / 438 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.2997, allocations: 265.1 kB / 438.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.2998, allocations: 84.56 kB / 438.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/0.2998, allocations: 28.38 kB / 438.4 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.3003, allocations: 297.9 kB / 438.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3003, allocations: 0 / 438.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/0.3004, allocations: 16 kB / 438.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3004, allocations: 8 kB / 438.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003678/0.3007, allocations: 194.1 kB / 438.9 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.3025, allocations: 1.127 MB / 440 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.3028, allocations: 150.5 kB / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.303, allocations: 76.83 kB / 440.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.303, allocations: 0 / 440.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002784/0.3033, allocations: 157.8 kB / 440.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.3033, allocations: 0 / 440.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001095/0.3044, allocations: 391.5 kB / 440.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.205e-05/0.3045, allocations: 110.8 kB / 440.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.3047, allocations: 221 kB / 441.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.3047, allocations: 33.69 kB / 441.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.3049, allocations: 180.5 kB / 441.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.487e-05/0.3049, allocations: 71.42 kB / 441.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.502e-05/0.305, allocations: 57.69 kB / 441.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3052, allocations: 338.8 kB / 441.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.3053, allocations: 63.97 kB / 441.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.3055, allocations: 150.1 kB / 442 MB, free: 13.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.3058, allocations: 188.2 kB / 442.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3058, allocations: 0 / 442.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004606/0.3063, allocations: 284.5 kB / 442.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3063, allocations: 6.812 kB / 442.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3063, allocations: 0 / 442.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002846/0.3066, allocations: 53.03 kB / 442.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.3068, allocations: 55.92 kB / 442.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001571/0.3084, allocations: 1.569 MB / 444.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.3086, allocations: 35.77 kB / 444.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.3086, allocations: 8 kB / 444.2 MB, free: 10.74 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.0001864/0.3088, allocations: 161.8 kB / 444.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.676e-05/0.3089, allocations: 23.86 kB / 444.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.131e-05/0.3089, allocations: 26.12 kB / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.3089, allocations: 4 kB / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3089, allocations: 3.984 kB / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3089, allocations: 0 / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.3093, allocations: 329.2 kB / 444.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.3093, allocations: 3.984 kB / 444.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.3095, allocations: 31.98 kB / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001867/0.3096, allocations: 52.81 kB / 444.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.3097, allocations: 8 kB / 444.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.311, allocations: 1.418 MB / 446.2 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.311, allocations: 0 / 446.2 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006499/0.3116, allocations: 327.6 kB / 446.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.3117, allocations: 116.9 kB / 446.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.3118, allocations: 8 kB / 446.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.3119, allocations: 11.98 kB / 446.7 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/0.312, allocations: 31.95 kB / 446.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.312, allocations: 8.062 kB / 446.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001617/0.3122, allocations: 164.5 kB / 446.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3122, allocations: 0 / 446.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.3126, allocations: 91.72 kB / 447 MB, free: 7.715 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.0001621/0.3127, allocations: 107.2 kB / 447.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005595/0.3133, allocations: 277.9 kB / 447.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3133, allocations: 4.062 kB / 447.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002917/0.3136, allocations: 194.5 kB / 447.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.3139, allocations: 24.42 kB / 447.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.3155, allocations: 0.7065 MB / 448.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.316, allocations: 0.7597 MB / 449 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.853e-05/0.316, allocations: 19.44 kB / 449.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.316, allocations: 11.88 kB / 449.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of Templates: time 0.006818/0.3228, allocations: 4.206 MB / 453.3 MB, free: 1.332 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.237117585260421]