Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001391/0.001391, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001523/0.001523, allocations: 203.4 kB / 23.73 MB, free: 4.379 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.543/1.543, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_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_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 47.92 kB / 378.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3008, allocations: 53.37 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004419/0.3052, allocations: 2.696 MB / 434.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.3069, allocations: 0.7283 MB / 435 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.307, allocations: 7.938 kB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.3072, allocations: 51.5 kB / 435.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.3074, allocations: 91.19 kB / 435.2 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.3078, allocations: 103.8 kB / 435.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.3082, allocations: 378.3 kB / 435.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.3084, allocations: 79.69 kB / 435.7 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.3086, allocations: 147.5 kB / 435.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.3089, allocations: 147.4 kB / 436 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.008e-05/0.3089, allocations: 28 kB / 436 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.934e-05/0.309, allocations: 36 kB / 436.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.82e-05/0.3091, allocations: 71.75 kB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.3092, allocations: 139.4 kB / 436.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004924/0.3097, allocations: 367.8 kB / 436.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3097, allocations: 0 / 436.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3097, allocations: 3.938 kB / 436.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.3097, allocations: 0 / 436.6 MB, free: 1.676 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.001205/0.311, allocations: 0.5417 MB / 437.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.311, allocations: 8.031 kB / 437.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.3111, allocations: 44.69 kB / 437.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004675/0.3116, allocations: 202.7 kB / 437.4 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.3117, allocations: 128 kB / 437.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.3118, allocations: 32.36 kB / 437.6 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005926/0.3124, allocations: 353.4 kB / 437.9 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.3124, allocations: 4 kB / 437.9 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.3124, allocations: 8 kB / 437.9 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.3124, allocations: 8 kB / 437.9 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003653/0.3128, allocations: 194.5 kB / 438.1 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.3145, allocations: 0.9612 MB / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003409/0.3149, allocations: 146.6 kB / 439.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.315, allocations: 78.81 kB / 439.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.315, allocations: 4 kB / 439.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.3154, allocations: 213.2 kB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.3154, allocations: 4 kB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001076/0.3164, allocations: 305.5 kB / 439.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.75e-05/0.3165, allocations: 110.8 kB / 439.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.3168, allocations: 199.8 kB / 440.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.3169, allocations: 29.7 kB / 440.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.317, allocations: 196.4 kB / 440.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.015e-05/0.3171, allocations: 63.44 kB / 440.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.3172, allocations: 61.64 kB / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.3174, allocations: 334.8 kB / 440.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.3175, allocations: 63.97 kB / 440.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.3178, allocations: 196 kB / 441.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003402/0.3181, allocations: 192.2 kB / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3181, allocations: 3.938 kB / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000477/0.3186, allocations: 272.5 kB / 441.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3186, allocations: 8 kB / 441.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.3186, allocations: 3.984 kB / 441.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003071/0.3189, allocations: 53.05 kB / 441.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.3192, allocations: 55.91 kB / 441.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.3208, allocations: 1.442 MB / 443.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.3211, allocations: 43.83 kB / 443.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.3211, allocations: 8 kB / 443.1 MB, free: 10.72 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.0002437/0.3213, allocations: 157.6 kB / 443.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.83e-05/0.3214, allocations: 19.84 kB / 443.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.987e-05/0.3214, allocations: 21.97 kB / 443.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3214, allocations: 4 kB / 443.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.3214, allocations: 4.094 kB / 443.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3214, allocations: 3.984 kB / 443.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003094/0.3217, allocations: 217.2 kB / 443.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3217, allocations: 0 / 443.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.3219, allocations: 39.91 kB / 443.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002009/0.3221, allocations: 52.75 kB / 443.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.3221, allocations: 8 kB / 443.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.3237, allocations: 1.295 MB / 444.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3237, allocations: 0 / 444.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007191/0.3244, allocations: 325.8 kB / 445.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.317e-05/0.3245, allocations: 35.89 kB / 445.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.3245, allocations: 3.938 kB / 445.3 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.3247, allocations: 19.98 kB / 445.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3248, allocations: 31.88 kB / 445.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.3248, allocations: 8 kB / 445.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.325, allocations: 153.4 kB / 445.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.325, allocations: 0 / 445.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000429/0.3254, allocations: 79.84 kB / 445.6 MB, free: 8.098 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.00021/0.3256, allocations: 113.6 kB / 445.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000672/0.3263, allocations: 279.8 kB / 446 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3263, allocations: 3.938 kB / 446 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.3266, allocations: 194.5 kB / 446.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.3269, allocations: 36.2 kB / 446.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.3287, allocations: 0.6542 MB / 446.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.3289, allocations: 154.7 kB / 447 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.322e-05/0.329, allocations: 21.92 kB / 447 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.391e-05/0.3291, allocations: 23.44 kB / 447 MB, free: 6.559 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3291, allocations: 0 / 447 MB, free: 6.559 MB / 350.1 MB Notification: Performance of Templates: time 0.008234/0.3373, allocations: 3.255 MB / 450.3 MB, free: 3.359 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.800613133236766]