Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008409/0.0008409, allocations: 91.61 kB / 22.18 MB, free: 2.371 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.0008318/0.0008318, allocations: 159.6 kB / 25.45 MB, free: 9.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8454/0.8454, allocations: 158.6 MB / 187.2 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 299.7 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.901e-05/2.05e-05, allocations: 6.281 kB / 299.7 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002395/0.002415, allocations: 2.618 MB / 302.3 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009208/0.003336, allocations: 0.7524 MB / 303.1 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.003444, allocations: 7.938 kB / 303.1 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.003567, allocations: 47.56 kB / 303.1 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.003689, allocations: 99.06 kB / 303.2 MB, free: 3.348 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.003943, allocations: 103.7 kB / 303.3 MB, free: 3.246 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.004218, allocations: 386.2 kB / 303.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.004363, allocations: 75.69 kB / 303.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.004517, allocations: 215.5 kB / 304 MB, free: 2.582 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.004643, allocations: 111.7 kB / 304.1 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.844e-05/0.004681, allocations: 28 kB / 304.1 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.849e-05/0.00471, allocations: 32 kB / 304.2 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.272e-05/0.004752, allocations: 67.73 kB / 304.2 MB, free: 2.348 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.035e-05/0.004833, allocations: 115.7 kB / 304.3 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002647/0.005098, allocations: 382.7 kB / 304.7 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.0051, allocations: 4 kB / 304.7 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.005101, allocations: 0 / 304.7 MB, free: 1.855 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.005105, allocations: 0 / 304.7 MB, free: 1.855 MB / 282.7 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.0006277/0.005732, allocations: 0.5339 MB / 305.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.005763, allocations: 11.98 kB / 305.3 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.567e-05/0.005819, allocations: 48.64 kB / 305.3 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.006052, allocations: 205.9 kB / 305.5 MB, free: 1.004 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.181e-05/0.006134, allocations: 132 kB / 305.6 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.006167, allocations: 28.38 kB / 305.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003248/0.006492, allocations: 349.9 kB / 306 MB, free: 464 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.006501, allocations: 192 / 306 MB, free: 464 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.006522, allocations: 16.12 kB / 306 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.006528, allocations: 4 kB / 306 MB, free: 444 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.006748, allocations: 190.5 kB / 306.2 MB, free: 256 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009386/0.007686, allocations: 0.9697 MB / 307.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.007888, allocations: 154.2 kB / 307.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.921e-05/0.007967, allocations: 72.84 kB / 307.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.00798, allocations: 0 / 307.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001809/0.008161, allocations: 201.3 kB / 307.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 9.22e-07/0.008162, allocations: 0 / 307.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005545/0.008717, allocations: 318.3 kB / 307.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.00876, allocations: 106.8 kB / 308 MB, free: 14.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.008881, allocations: 215.7 kB / 308.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.008897, allocations: 29.7 kB / 308.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.497e-05/0.008972, allocations: 180.5 kB / 308.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.714e-05/0.009009, allocations: 71.39 kB / 308.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.158e-05/0.00907, allocations: 61.69 kB / 308.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.654e-05/0.009147, allocations: 326.8 kB / 308.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.963e-05/0.009227, allocations: 71.97 kB / 309 MB, free: 13.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.00935, allocations: 200 kB / 309.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.009517, allocations: 180.2 kB / 309.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.009519, allocations: 0 / 309.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002657/0.009785, allocations: 279.8 kB / 309.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.009798, allocations: 11.98 kB / 309.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.009803, allocations: 0 / 309.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.009971, allocations: 56.81 kB / 309.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.01009, allocations: 52.14 kB / 309.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007687/0.01086, allocations: 1.441 MB / 311.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.01096, allocations: 43.8 kB / 311.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.01098, allocations: 11.98 kB / 311.2 MB, free: 10.9 MB / 298.7 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 9.897e-05/0.01107, allocations: 157.9 kB / 311.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.01109, allocations: 15.91 kB / 311.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.186e-05/0.01111, allocations: 21.97 kB / 311.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.01112, allocations: 7.938 kB / 311.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.01112, allocations: 3.984 kB / 311.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.01112, allocations: 0 / 311.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.01127, allocations: 229 kB / 311.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.01127, allocations: 0 / 311.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.152e-05/0.01135, allocations: 31.98 kB / 311.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.955e-05/0.01145, allocations: 52.81 kB / 311.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.01146, allocations: 4 kB / 311.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006141/0.01208, allocations: 1.295 MB / 313 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.01208, allocations: 0 / 313 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.01242, allocations: 329.6 kB / 313.3 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.01247, allocations: 31.88 kB / 313.4 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.01249, allocations: 4 kB / 313.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.843e-05/0.01255, allocations: 23.92 kB / 313.4 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/0.01261, allocations: 36.08 kB / 313.4 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.01262, allocations: 7.984 kB / 313.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.208e-05/0.01269, allocations: 140.2 kB / 313.6 MB, free: 8.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01269, allocations: 0 / 313.6 MB, free: 8.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000214/0.01291, allocations: 91.77 kB / 313.7 MB, free: 8.277 MB / 298.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: 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 8.233e-05/0.01299, allocations: 109.4 kB / 313.8 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003239/0.01331, allocations: 270.8 kB / 314 MB, free: 7.887 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.01331, allocations: 8.125 kB / 314.1 MB, free: 7.879 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.01346, allocations: 187.5 kB / 314.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.01362, allocations: 31.92 kB / 314.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008276/0.01445, allocations: 0.6177 MB / 314.9 MB, free: 6.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.193e-05/0.01453, allocations: 154.8 kB / 315 MB, free: 6.824 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.289e-05/0.01457, allocations: 20.5 kB / 315.1 MB, free: 6.801 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01457, allocations: 4 kB / 315.1 MB, free: 6.797 MB / 298.7 MB Notification: Performance of Templates: time 0.003656/0.01823, allocations: 4.19 MB / 319.3 MB, free: 2.602 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.207681485451758]