Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.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.001347/0.001347, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001601/0.001601, allocations: 214.6 kB / 23.01 MB, free: 4.566 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.783/2.783, allocations: 476.8 MB / 0.7714 GB, free: 4.297 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.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.002027/0.002027, allocations: 66.5 kB / 1.119 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3419, allocations: 170 MB / 1.285 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002157/0.344, allocations: 0.6976 MB / 1.285 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001892/0.3459, allocations: 1.305 MB / 1.287 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.558e-05/0.346, allocations: 0 / 1.287 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.022e-05/0.346, allocations: 3.938 kB / 1.287 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.3461, allocations: 23.84 kB / 1.287 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009497/0.3471, allocations: 315.6 kB / 1.287 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003805/0.3475, allocations: 255.6 kB / 1.287 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.3476, allocations: 12.17 kB / 1.287 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.3478, allocations: 103.8 kB / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.348, allocations: 95.69 kB / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.769e-05/0.348, allocations: 28 kB / 1.287 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.3481, allocations: 35.98 kB / 1.287 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/0.3482, allocations: 11.98 kB / 1.287 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.3483, allocations: 91.73 kB / 1.288 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003199/0.3486, allocations: 223.3 kB / 1.288 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3486, allocations: 0 / 1.288 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3486, allocations: 0 / 1.288 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3486, allocations: 0 / 1.288 GB, free: 8.055 MB / 0.9825 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.0006395/0.3493, allocations: 415.1 kB / 1.288 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3493, allocations: 12.03 kB / 1.288 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.555e-05/0.3494, allocations: 16.92 kB / 1.288 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.3495, allocations: 120.7 kB / 1.288 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.3495, allocations: 8.375 kB / 1.288 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.3496, allocations: 16.38 kB / 1.288 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.3497, allocations: 58.22 kB / 1.288 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3497, allocations: 3.938 kB / 1.288 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.3497, allocations: 3.984 kB / 1.288 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.3497, allocations: 0 / 1.288 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.774e-05/0.3498, allocations: 23.94 kB / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.3504, allocations: 395.5 kB / 1.289 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.615e-05/0.3505, allocations: 30.58 kB / 1.289 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.89e-05/0.3505, allocations: 16.94 kB / 1.289 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.3505, allocations: 3.938 kB / 1.289 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.3507, allocations: 99.3 kB / 1.289 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.3507, allocations: 4 kB / 1.289 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003276/0.351, allocations: 141.5 kB / 1.289 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.3511, allocations: 59.34 kB / 1.289 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.3512, allocations: 126.2 kB / 1.289 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3513, allocations: 33.7 kB / 1.289 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.527e-05/0.3513, allocations: 108.1 kB / 1.289 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.3514, allocations: 15.86 kB / 1.289 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.3515, allocations: 73.61 kB / 1.289 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.3517, allocations: 326.8 kB / 1.29 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.3519, allocations: 91.89 kB / 1.29 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.3521, allocations: 131.5 kB / 1.29 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003008/0.3524, allocations: 240.2 kB / 1.29 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.3524, allocations: 0 / 1.29 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006363/0.353, allocations: 391.4 kB / 1.291 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.168e-05/0.3531, allocations: 101.3 kB / 1.291 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3531, allocations: 0 / 1.291 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3531, allocations: 4 kB / 1.291 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.548e-05/0.3532, allocations: 3.984 kB / 1.291 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.3532, allocations: 4.078 kB / 1.291 GB, free: 4.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.3536, allocations: 83.8 kB / 1.291 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.758e-05/0.3537, allocations: 23.97 kB / 1.291 GB, free: 4.641 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001417/0.3538, allocations: 133.7 kB / 1.291 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.055e-05/0.3539, allocations: 7.953 kB / 1.291 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.3539, allocations: 16.36 kB / 1.291 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3539, allocations: 0 / 1.291 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3539, allocations: 0 / 1.291 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3539, allocations: 0 / 1.291 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.3541, allocations: 156.7 kB / 1.291 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3541, allocations: 7.984 kB / 1.291 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.211e-05/0.3541, allocations: 4 kB / 1.291 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.3541, allocations: 0 / 1.291 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3541, allocations: 4 kB / 1.291 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.3541, allocations: 4 kB / 1.291 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3541, allocations: 0 / 1.291 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.3543, allocations: 136.9 kB / 1.291 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.669e-05/0.3543, allocations: 11.89 kB / 1.291 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.3543, allocations: 12 kB / 1.291 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.453e-05/0.3544, allocations: 4 kB / 1.291 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.3544, allocations: 15.86 kB / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.3544, allocations: 7.984 kB / 1.291 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.376e-05/0.3545, allocations: 98.08 kB / 1.291 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3545, allocations: 96 / 1.291 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002718/0.3547, allocations: 47.94 kB / 1.291 GB, free: 3.918 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001612/0.3549, allocations: 103.2 kB / 1.292 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004932/0.3554, allocations: 329.9 kB / 1.292 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3554, allocations: 0 / 1.292 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.477e-05/0.3555, allocations: 31.98 kB / 1.292 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.3557, allocations: 23.97 kB / 1.292 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004441/0.3562, allocations: 233 kB / 1.292 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.3565, allocations: 0.6924 MB / 1.293 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.704e-05/0.3565, allocations: 11.44 kB / 1.293 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of SimCode: time 4.91e-07/0.3565, allocations: 0 / 1.293 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of Templates: time 0.003952/0.3605, allocations: 1.884 MB / 1.295 GB, free: 0.543 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.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: 11.129911000985885]