Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Timer,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Timer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Timer,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Timer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008177/0.008178, allocations: 99.81 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 195.1 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.686/2.686, allocations: 469.4 MB / 0.7421 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 63.91 kB / 1.064 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.926/0.9277, allocations: 159.1 MB / 1.22 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Timer): time 0.002036/0.9297, allocations: 0.7442 MB / 1.22 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001599/0.9314, allocations: 1.252 MB / 1.222 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.179e-05/0.9315, allocations: 0 / 1.222 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.594e-05/0.9315, allocations: 11.86 kB / 1.222 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.9316, allocations: 27.8 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007537/0.9324, allocations: 245.8 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003419/0.9327, allocations: 267.5 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.9329, allocations: 20.2 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.933, allocations: 107.7 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/0.9332, allocations: 91.73 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.592e-05/0.9333, allocations: 24 kB / 1.222 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.9334, allocations: 35.98 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.152e-05/0.9335, allocations: 31.91 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.9336, allocations: 87.75 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.9339, allocations: 231 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.9339, allocations: 0 / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9339, allocations: 0 / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.289e-05/0.934, allocations: 4 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008143/0.9348, allocations: 0.4906 MB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.9348, allocations: 12.62 kB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.419e-05/0.9349, allocations: 38.73 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.934e-05/0.935, allocations: 20.84 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006161/0.9356, allocations: 252.3 kB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.9356, allocations: 16.36 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.9357, allocations: 20.38 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.936, allocations: 135.2 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.936, allocations: 0 / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.936, allocations: 8 kB / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.936, allocations: 0 / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.9361, allocations: 63.89 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008238/0.937, allocations: 0.5163 MB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.9372, allocations: 161.2 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.923e-05/0.9374, allocations: 65.69 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.9374, allocations: 0 / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003651/0.9377, allocations: 204.8 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.9378, allocations: 3.938 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of matching and sorting (n=22): time 0.0005406/0.9383, allocations: 317.3 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.9384, allocations: 85.05 kB / 1.225 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.781e-05/0.9385, allocations: 126.1 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.852e-05/0.9385, allocations: 37.7 kB / 1.225 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.9386, allocations: 104.8 kB / 1.225 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.9387, allocations: 55.62 kB / 1.225 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.9388, allocations: 73.67 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.9389, allocations: 322.8 kB / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.9391, allocations: 84.23 kB / 1.226 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.9393, allocations: 164.1 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.9397, allocations: 258.4 kB / 1.226 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.9397, allocations: 0 / 1.226 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005932/0.9403, allocations: 360.7 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.868e-05/0.9404, allocations: 63.39 kB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.9404, allocations: 4 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.9404, allocations: 4 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.951e-05/0.9405, allocations: 24.25 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.9405, allocations: 4.219 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003683/0.9409, allocations: 71.81 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.941, allocations: 15.98 kB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 27 (thrTim.passed,$PRE.thrTim.passed,noThr.passed,$PRE.noThr.passed,$whenCondition10,$whenCondition11,booPul.y,$PRE.booPul.y,thrTim.entryTime,$PRE.thrTim.entryTime,noThr.entryTime,$PRE.noThr.entryTime,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition9,thrTim1.passed,$PRE.thrTim1.passed,$whenCondition4,$whenCondition5,booPul1.y,$PRE.booPul1.y,thrTim1.entryTime,$PRE.thrTim1.entryTime,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 2 * 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.0001511/0.9411, allocations: 148.5 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.446e-05/0.9412, allocations: 19.89 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.9412, allocations: 20.5 kB / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.9412, allocations: 3.938 kB / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.9412, allocations: 0 / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.9412, allocations: 4 kB / 1.227 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000644/0.9419, allocations: 0.607 MB / 1.228 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.9419, allocations: 4 kB / 1.228 GB, free: 9.734 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-05/0.942, allocations: 8 kB / 1.228 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.942, allocations: 3.938 kB / 1.228 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.942, allocations: 15.98 kB / 1.228 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.942, allocations: 4 kB / 1.228 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.942, allocations: 3.938 kB / 1.228 GB, free: 9.699 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004368/0.9425, allocations: 417.4 kB / 1.228 GB, free: 9.277 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.145e-05/0.9425, allocations: 96.95 kB / 1.228 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.9426, allocations: 11.92 kB / 1.228 GB, free: 9.152 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.9427, allocations: 15.92 kB / 1.228 GB, free: 9.137 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.278e-05/0.9428, allocations: 27.97 kB / 1.228 GB, free: 9.109 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.9428, allocations: 15.98 kB / 1.228 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.52e-05/0.9429, allocations: 95.27 kB / 1.228 GB, free: 9 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.9429, allocations: 0 / 1.228 GB, free: 9 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003576/0.9432, allocations: 48 kB / 1.228 GB, free: 8.953 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 19 ($whenCondition4,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,thrTim1.passed,thrTim1.entryTime,booPul1.y,$whenCondition10,$whenCondition11,$whenCondition9,$whenCondition6,$whenCondition7,$whenCondition8,noThr.passed,noThr.entryTime,thrTim.passed,thrTim.entryTime,booPul.y) * Number of discrete states: 3 (noThr.entryTime,thrTim.entryTime,thrTim1.entryTime) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0007706/0.944, allocations: 0.9654 MB / 1.229 GB, free: 7.961 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000518/0.9446, allocations: 346.5 kB / 1.23 GB, free: 7.598 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.9446, allocations: 0 / 1.23 GB, free: 7.598 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.9448, allocations: 123.4 kB / 1.23 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.9452, allocations: 36.62 kB / 1.23 GB, free: 7.445 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.9479, allocations: 2.282 MB / 1.232 GB, free: 5.016 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.9482, allocations: 0.7086 MB / 1.233 GB, free: 4.281 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.939e-05/0.9483, allocations: 17.55 kB / 1.233 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.446e-05/0.9484, allocations: 43.42 kB / 1.233 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of SimCode: time 1.713e-06/0.9484, allocations: 0 / 1.233 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.9695, allocations: 4.109 MB / 1.237 GB, free: 236 kB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.868, allocations: 8.375 kB / 1.237 GB, free: 232 kB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Timer.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Timer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches