Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.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.001352/0.001352, allocations: 102.1 kB / 19.7 MB, free: 2.246 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.001388/0.001388, allocations: 222.5 kB / 23.01 MB, free: 5.086 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.21/3.21, allocations: 0.49 GB / 0.7958 GB, free: 33.37 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) 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(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 78.73 kB / 1.155 GB, free: 25.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3311, allocations: 176.1 MB / 1.327 GB, free: 1.41 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002141/0.3333, allocations: 0.7968 MB / 1.328 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.3349, allocations: 1.19 MB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.069e-05/0.335, allocations: 0 / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.45e-05/0.335, allocations: 7.875 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.768e-05/0.3351, allocations: 19.84 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004751/0.3356, allocations: 136.5 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.3357, allocations: 131.7 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.746e-05/0.3358, allocations: 11.98 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.857e-05/0.3359, allocations: 51.89 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.336, allocations: 47.89 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.3361, allocations: 8 kB / 1.33 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.13e-05/0.3361, allocations: 35.91 kB / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.623e-05/0.3362, allocations: 15.92 kB / 1.33 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.959e-05/0.3362, allocations: 47.84 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.3364, allocations: 115.5 kB / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3364, allocations: 0 / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3364, allocations: 0 / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.3364, allocations: 8 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006888/0.3371, allocations: 343.8 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.3372, allocations: 12.03 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.3372, allocations: 8.891 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.3374, allocations: 114.5 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.3374, allocations: 8.375 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.3374, allocations: 12.36 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.3377, allocations: 86.08 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3377, allocations: 192 / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.3377, allocations: 3.938 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3377, allocations: 0 / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.338, allocations: 71.92 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000497/0.3385, allocations: 303.7 kB / 1.331 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.3387, allocations: 58.47 kB / 1.331 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.3388, allocations: 40.92 kB / 1.331 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.3389, allocations: 0 / 1.331 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002976/0.3392, allocations: 99.34 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.163e-06/0.3392, allocations: 0 / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0005833/0.3397, allocations: 173.4 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.3398, allocations: 55.41 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.34, allocations: 122.1 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.34, allocations: 25.7 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3401, allocations: 104.1 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.418e-05/0.3402, allocations: 15.91 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.329e-05/0.3402, allocations: 29.7 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.3404, allocations: 326.8 kB / 1.332 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.3406, allocations: 59.95 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.3408, allocations: 82.52 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004135/0.3413, allocations: 148.1 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3413, allocations: 0 / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005973/0.3419, allocations: 215.2 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.058e-05/0.3419, allocations: 37.75 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3419, allocations: 4 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3419, allocations: 0 / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.342, allocations: 15.98 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3421, allocations: 0 / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.3423, allocations: 47.88 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.3423, allocations: 4 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.3424, allocations: 125.7 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.3424, allocations: 7.953 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.383e-05/0.3425, allocations: 16.36 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3425, allocations: 0 / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3425, allocations: 0 / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3425, allocations: 3.938 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.3426, allocations: 156.6 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3426, allocations: 3.984 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.9e-05/0.3427, allocations: 19.97 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3427, allocations: 4 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.3427, allocations: 4 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3427, allocations: 0 / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3427, allocations: 320 / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003766/0.3431, allocations: 156.9 kB / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.436e-05/0.3431, allocations: 11.95 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.3431, allocations: 4 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.7e-05/0.3432, allocations: 7.984 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.3433, allocations: 7.984 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.3433, allocations: 8.094 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.64e-05/0.3433, allocations: 98.83 kB / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3433, allocations: 0 / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00027/0.3436, allocations: 20 kB / 1.333 GB, free: 11.27 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001728/0.3438, allocations: 111.2 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004977/0.3443, allocations: 175.2 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3443, allocations: 0 / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.3445, allocations: 44.09 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.3447, allocations: 25.89 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004268/0.3451, allocations: 183.8 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.3454, allocations: 0.6885 MB / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.644e-05/0.3455, allocations: 15.38 kB / 1.334 GB, free: 9.961 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.3455, allocations: 4 kB / 1.334 GB, free: 9.957 MB / 1.029 GB Notification: Performance of Templates: time 0.003288/0.3487, allocations: 1.318 MB / 1.335 GB, free: 8.652 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.968112134985859]