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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.01009/0.01009, allocations: 99.42 kB / 15.73 MB, free: 6.012 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.00175/0.00175, allocations: 193 kB / 16.67 MB, free: 5.949 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.851/2.851, allocations: 472.7 MB / 0.7453 GB, free: 4.547 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 63.91 kB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3624, allocations: 159.9 MB / 1.225 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Timer): time 0.002555/0.3651, allocations: 0.7444 MB / 1.226 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001869/0.367, allocations: 1.256 MB / 1.227 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.078e-05/0.3671, allocations: 4 kB / 1.227 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.172e-05/0.3671, allocations: 7.875 kB / 1.227 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.3673, allocations: 19.84 kB / 1.227 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008133/0.3681, allocations: 253.8 kB / 1.227 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003529/0.3685, allocations: 255.6 kB / 1.228 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.3686, allocations: 28.19 kB / 1.228 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.3688, allocations: 103.8 kB / 1.228 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.369, allocations: 99.73 kB / 1.228 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.739e-05/0.369, allocations: 20 kB / 1.228 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.178e-05/0.3691, allocations: 32 kB / 1.228 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.166e-05/0.3692, allocations: 35.91 kB / 1.228 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.3693, allocations: 95.67 kB / 1.228 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.3696, allocations: 223.3 kB / 1.228 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3697, allocations: 8 kB / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3697, allocations: 0 / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.3697, allocations: 0 / 1.228 GB, free: 6.484 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008052/0.3705, allocations: 498.4 kB / 1.229 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.3705, allocations: 12.02 kB / 1.229 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.821e-05/0.3706, allocations: 38.75 kB / 1.229 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.3707, allocations: 24.83 kB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006197/0.3713, allocations: 253.1 kB / 1.229 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.3714, allocations: 12.38 kB / 1.229 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/0.3714, allocations: 24.36 kB / 1.229 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.3717, allocations: 138.5 kB / 1.229 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.3717, allocations: 0 / 1.229 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.3717, allocations: 0 / 1.229 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3717, allocations: 8 kB / 1.229 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.3719, allocations: 63.89 kB / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008334/0.3727, allocations: 0.5123 MB / 1.23 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002788/0.373, allocations: 161.2 kB / 1.23 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.375e-05/0.3731, allocations: 61.69 kB / 1.23 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.3731, allocations: 4 kB / 1.23 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000409/0.3735, allocations: 210.3 kB / 1.23 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.3736, allocations: 0 / 1.23 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22): time 0.0005621/0.3741, allocations: 317.4 kB / 1.231 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.3742, allocations: 88.98 kB / 1.231 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.3743, allocations: 126.1 kB / 1.231 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.986e-05/0.3744, allocations: 41.7 kB / 1.231 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.369e-05/0.3745, allocations: 108.7 kB / 1.231 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.713e-05/0.3745, allocations: 47.64 kB / 1.231 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.3746, allocations: 73.69 kB / 1.231 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3748, allocations: 326.8 kB / 1.231 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.375, allocations: 92.23 kB / 1.231 GB, free: 3.023 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.3752, allocations: 156.7 kB / 1.232 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/0.3755, allocations: 249 kB / 1.232 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3755, allocations: 0 / 1.232 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005563/0.3761, allocations: 356.6 kB / 1.232 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.581e-05/0.3762, allocations: 63.41 kB / 1.232 GB, free: 2.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3762, allocations: 4 kB / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3762, allocations: 384 / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.539e-05/0.3763, allocations: 32.08 kB / 1.232 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.3763, allocations: 0 / 1.232 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.3767, allocations: 67.81 kB / 1.232 GB, free: 2.02 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.3767, allocations: 23.94 kB / 1.232 GB, free: 1.996 MB / 0.9825 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.0001499/0.3769, allocations: 148.5 kB / 1.232 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.3769, allocations: 19.89 kB / 1.232 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/0.377, allocations: 16.48 kB / 1.232 GB, free: 1.805 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.377, allocations: 7.938 kB / 1.232 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.377, allocations: 0 / 1.232 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.377, allocations: 0 / 1.232 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006043/0.3776, allocations: 0.6096 MB / 1.233 GB, free: 1.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3776, allocations: 0 / 1.233 GB, free: 1.133 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.658e-05/0.3777, allocations: 15.98 kB / 1.233 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.3777, allocations: 7.938 kB / 1.233 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.3777, allocations: 7.984 kB / 1.233 GB, free: 1.102 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3777, allocations: 3.938 kB / 1.233 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3777, allocations: 0 / 1.233 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004175/0.3782, allocations: 426.5 kB / 1.234 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.292e-05/0.3782, allocations: 92.95 kB / 1.234 GB, free: 0.5547 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.3783, allocations: 11.94 kB / 1.234 GB, free: 0.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.3784, allocations: 11.98 kB / 1.234 GB, free: 0.5312 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.431e-05/0.3785, allocations: 23.95 kB / 1.234 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.3785, allocations: 16 kB / 1.234 GB, free: 0.4922 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.461e-05/0.3786, allocations: 91.27 kB / 1.234 GB, free: 412 kB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3786, allocations: 0 / 1.234 GB, free: 412 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003628/0.3789, allocations: 59.98 kB / 1.234 GB, free: 352 kB / 0.9825 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.0008029/0.3797, allocations: 0.961 MB / 1.235 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005033/0.3803, allocations: 350.5 kB / 1.235 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3803, allocations: 3.938 kB / 1.235 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.3804, allocations: 112 kB / 1.235 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.3809, allocations: 40.53 kB / 1.235 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.3836, allocations: 2.284 MB / 1.237 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.3839, allocations: 0.7047 MB / 1.238 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.444e-05/0.384, allocations: 21.55 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.172e-05/0.384, allocations: 35.42 kB / 1.238 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/0.384, allocations: 0 / 1.238 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.4095, allocations: 4.106 MB / 1.242 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/8.375, allocations: 8.391 kB / 1.242 GB, free: 7.629 MB / 0.9981 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