Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001567/0.001567, allocations: 104.2 kB / 19.74 MB, free: 2.07 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.001748/0.001748, allocations: 214.8 kB / 23.04 MB, free: 4.863 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.223/3.223, allocations: 0.49 GB / 0.7959 GB, free: 35.51 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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_12_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_12_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.002021/0.002021, allocations: 66.75 kB / 1.155 GB, free: 25.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.321, allocations: 176.1 MB / 1.327 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002329/0.3233, allocations: 0.6948 MB / 1.328 GB, free: 280 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002181/0.3255, allocations: 1.284 MB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.122e-05/0.3256, allocations: 0 / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.264e-05/0.3256, allocations: 3.938 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.3257, allocations: 19.86 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.3268, allocations: 314.2 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.3272, allocations: 259.5 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.3273, allocations: 16.16 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.3275, allocations: 95.88 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.3277, allocations: 83.73 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.215e-05/0.3277, allocations: 24 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.3278, allocations: 35.98 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.177e-05/0.3278, allocations: 11.94 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.328, allocations: 87.8 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.3283, allocations: 223.3 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 9.178e-06/0.3283, allocations: 3.984 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.494e-06/0.3283, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.3283, allocations: 0 / 1.33 GB, free: 13.83 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.0007666/0.3291, allocations: 419.1 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.952e-05/0.3292, allocations: 8.031 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.389e-05/0.3293, allocations: 12.94 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.3294, allocations: 117.1 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.3295, allocations: 12.36 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.206e-05/0.3295, allocations: 20.38 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.3297, allocations: 62.22 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3297, allocations: 3.938 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.3297, allocations: 0 / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.3297, allocations: 0 / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.037e-05/0.3298, allocations: 23.92 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006217/0.3304, allocations: 316.3 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 7.653e-05/0.3305, allocations: 30.52 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.737e-05/0.3305, allocations: 24.94 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.3305, allocations: 3.938 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.3308, allocations: 107.2 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 4.108e-06/0.3308, allocations: 3.984 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0004193/0.3312, allocations: 141.5 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.3313, allocations: 55.41 kB / 1.332 GB, free: 12.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.3314, allocations: 129.8 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.3314, allocations: 29.7 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.3316, allocations: 104.2 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.3316, allocations: 23.84 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.3317, allocations: 69.61 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3319, allocations: 322.8 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.3322, allocations: 177 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002974/0.3325, allocations: 232 kB / 1.333 GB, free: 11.19 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.3328, allocations: 235 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3328, allocations: 0 / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007073/0.3335, allocations: 482.7 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.176e-05/0.3336, allocations: 101.1 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3336, allocations: 4 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.3336, allocations: 0 / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.355e-05/0.3336, allocations: 4 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.944e-06/0.3336, allocations: 4 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/0.3341, allocations: 83.95 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.105e-05/0.3342, allocations: 19.98 kB / 1.333 GB, free: 10.18 MB / 1.029 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.0001339/0.3343, allocations: 134.8 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.141e-05/0.3343, allocations: 11.95 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.266e-05/0.3343, allocations: 12.38 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3343, allocations: 0 / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3343, allocations: 0 / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3343, allocations: 384 / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.3345, allocations: 137.2 kB / 1.334 GB, free: 9.848 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3345, allocations: 0 / 1.334 GB, free: 9.848 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.967e-06/0.3345, allocations: 0 / 1.334 GB, free: 9.848 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3345, allocations: 11.92 kB / 1.334 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.3345, allocations: 0 / 1.334 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3345, allocations: 0 / 1.334 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3345, allocations: 0 / 1.334 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.3347, allocations: 144.9 kB / 1.334 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.518e-05/0.3347, allocations: 11.88 kB / 1.334 GB, free: 9.664 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3347, allocations: 4 kB / 1.334 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.792e-05/0.3348, allocations: 8 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.3348, allocations: 11.98 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-06/0.3348, allocations: 7.938 kB / 1.334 GB, free: 9.633 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.545e-05/0.3349, allocations: 101 kB / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3349, allocations: 0 / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002577/0.3352, allocations: 43.98 kB / 1.334 GB, free: 9.492 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: 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.0001522/0.3353, allocations: 103.2 kB / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005264/0.3358, allocations: 411.2 kB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3358, allocations: 4.312 kB / 1.335 GB, free: 8.922 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.665e-05/0.3359, allocations: 39.98 kB / 1.335 GB, free: 8.883 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3362, allocations: 31.5 kB / 1.335 GB, free: 8.855 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004292/0.3366, allocations: 224.9 kB / 1.335 GB, free: 8.602 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.896e-05/0.3367, allocations: 83.81 kB / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.057e-05/0.3367, allocations: 19.44 kB / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.3367, allocations: 0 / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of Templates: time 0.004006/0.3407, allocations: 1.906 MB / 1.337 GB, free: 6.586 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.162802038015798]