Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",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.007692/0.007692, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001465/0.001465, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 3.033/3.033, allocations: 469.4 MB / 0.7422 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 76.09 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3547, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002196/0.357, allocations: 0.7735 MB / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001956/0.3589, allocations: 1.24 MB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.3591, allocations: 4 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.865e-05/0.3592, allocations: 15.8 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.3593, allocations: 15.86 kB / 1.222 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008365/0.3601, allocations: 261.7 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003735/0.3605, allocations: 267.5 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.3607, allocations: 57.03 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.3609, allocations: 103.8 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001829/0.3611, allocations: 99.67 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.094e-05/0.3612, allocations: 27.98 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.3613, allocations: 39.98 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.052e-05/0.3613, allocations: 31.91 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.3615, allocations: 103.7 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.3618, allocations: 243.1 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3618, allocations: 0 / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3618, allocations: 0 / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.3619, allocations: 0 / 1.223 GB, free: 11.36 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007419/0.3626, allocations: 0.4905 MB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3627, allocations: 8.031 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.348e-05/0.3627, allocations: 50.73 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.565e-05/0.3628, allocations: 16.89 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.3634, allocations: 248.2 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.3634, allocations: 12.38 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.041e-05/0.3635, allocations: 24.36 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.3637, allocations: 137.8 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3638, allocations: 0 / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.3638, allocations: 4 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.3638, allocations: 4 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3639, allocations: 71.89 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006477/0.3646, allocations: 464.2 kB / 1.224 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001705/0.3648, allocations: 90.53 kB / 1.225 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.233e-05/0.3648, allocations: 40.84 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.773e-06/0.3649, allocations: 3.938 kB / 1.225 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.3652, allocations: 147.3 kB / 1.225 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.3652, allocations: 3.938 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.0004735/0.3657, allocations: 240.4 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.3657, allocations: 55.41 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.3658, allocations: 147.7 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.544e-05/0.3659, allocations: 33.7 kB / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.206e-05/0.366, allocations: 108.6 kB / 1.225 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.366, allocations: 43.67 kB / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.3661, allocations: 69.67 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3662, allocations: 322.8 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.3664, allocations: 63.97 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001711/0.3666, allocations: 135.6 kB / 1.226 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.3668, allocations: 211 kB / 1.226 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3668, allocations: 0 / 1.226 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004795/0.3673, allocations: 312.6 kB / 1.226 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.886e-05/0.3674, allocations: 63.41 kB / 1.226 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3674, allocations: 0 / 1.226 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.3674, allocations: 4.25 kB / 1.226 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.208e-05/0.3674, allocations: 19.92 kB / 1.226 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3675, allocations: 4 kB / 1.226 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003373/0.3678, allocations: 55.83 kB / 1.226 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.3678, allocations: 19.98 kB / 1.227 GB, free: 7.359 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: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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.0001262/0.368, allocations: 138.3 kB / 1.227 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.368, allocations: 11.89 kB / 1.227 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.133e-05/0.3681, allocations: 12.83 kB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3681, allocations: 4 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3681, allocations: 0 / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.3681, allocations: 0 / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.3686, allocations: 497 kB / 1.227 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3686, allocations: 4 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.248e-05/0.3686, allocations: 0 / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3686, allocations: 4 kB / 1.227 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.3686, allocations: 4 kB / 1.227 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3686, allocations: 3.984 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3686, allocations: 0 / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002906/0.3689, allocations: 291.3 kB / 1.227 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.369, allocations: 81.06 kB / 1.228 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.369, allocations: 4 kB / 1.228 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.771e-05/0.3691, allocations: 7.984 kB / 1.228 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.3691, allocations: 19.92 kB / 1.228 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.3692, allocations: 15.98 kB / 1.228 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.757e-05/0.3692, allocations: 98.39 kB / 1.228 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3692, allocations: 3.938 kB / 1.228 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003509/0.3696, allocations: 47.89 kB / 1.228 GB, free: 6.039 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: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * 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.0006302/0.3702, allocations: 0.8377 MB / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004264/0.3707, allocations: 297.7 kB / 1.229 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3707, allocations: 3.938 kB / 1.229 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.3708, allocations: 79.91 kB / 1.229 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.3711, allocations: 27.55 kB / 1.229 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.3734, allocations: 2.041 MB / 1.231 GB, free: 2.566 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.3737, allocations: 0.7085 MB / 1.232 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.724e-05/0.3737, allocations: 13.08 kB / 1.232 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.84e-05/0.3738, allocations: 39.42 kB / 1.232 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.3738, allocations: 0 / 1.232 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.394, allocations: 3.588 MB / 1.235 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.649/8.043, allocations: 19.78 kB / 1.235 GB, free: 14.29 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches