Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_11_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.007894/0.007894, allocations: 100.5 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.002096/0.002096, allocations: 188.9 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.73/2.73, allocations: 469.8 MB / 0.7425 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 63.91 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7117/0.7137, allocations: 159.1 MB / 1.22 GB, free: 2.113 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.00204/0.7158, allocations: 0.7545 MB / 1.221 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.7174, allocations: 1.244 MB / 1.222 GB, free: 108 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.849e-05/0.7175, allocations: 4 kB / 1.222 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.239e-05/0.7175, allocations: 15.8 kB / 1.222 GB, free: 88 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.673e-05/0.7176, allocations: 11.86 kB / 1.222 GB, free: 76 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000726/0.7183, allocations: 253.1 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.7187, allocations: 267.6 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.7189, allocations: 60.98 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.719, allocations: 99.8 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.7192, allocations: 107.7 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.7192, allocations: 28 kB / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.871e-05/0.7193, allocations: 39.98 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.058e-05/0.7194, allocations: 31.91 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.7195, allocations: 91.67 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000308/0.7198, allocations: 254.8 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.7198, allocations: 0 / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.102e-06/0.7198, allocations: 0 / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.7198, allocations: 0 / 1.223 GB, free: 14.88 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006562/0.7205, allocations: 0.4905 MB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.7205, allocations: 12.03 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.775e-05/0.7206, allocations: 50.73 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.012e-05/0.7207, allocations: 16.89 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000536/0.7212, allocations: 244.2 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.7212, allocations: 12.38 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.425e-05/0.7213, allocations: 24.36 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.7215, allocations: 129.9 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.7216, allocations: 0 / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.7216, allocations: 8 kB / 1.224 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.7216, allocations: 4 kB / 1.224 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.7217, allocations: 71.89 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/0.7223, allocations: 460.2 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.7225, allocations: 98.53 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.491e-05/0.7226, allocations: 36.84 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.7226, allocations: 11.94 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.7229, allocations: 131.2 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 3.757e-06/0.7229, allocations: 3.984 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.0004436/0.7233, allocations: 233.5 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.7234, allocations: 59.41 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.7235, allocations: 150.5 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.7236, allocations: 33.7 kB / 1.226 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.7237, allocations: 105.7 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.594e-05/0.7237, allocations: 43.67 kB / 1.226 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.7238, allocations: 69.67 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.724, allocations: 326.8 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.7241, allocations: 67.97 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.7243, allocations: 134.5 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/0.7246, allocations: 213.9 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.7246, allocations: 0 / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004904/0.7251, allocations: 308.7 kB / 1.227 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.709e-05/0.7252, allocations: 67.66 kB / 1.227 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.7252, allocations: 3.938 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.7252, allocations: 7.984 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.64e-05/0.7252, allocations: 7.938 kB / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.7253, allocations: 7.984 kB / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.7256, allocations: 59.83 kB / 1.227 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.775e-05/0.7257, allocations: 23.92 kB / 1.227 GB, free: 10.88 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: 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.0001318/0.7258, allocations: 139 kB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.7258, allocations: 11.89 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.913e-05/0.7259, allocations: 16.83 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.7259, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.7259, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.7259, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005152/0.7264, allocations: 494.2 kB / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.7264, allocations: 8 kB / 1.228 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.127e-05/0.7264, allocations: 0 / 1.228 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.7264, allocations: 0 / 1.228 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.7265, allocations: 7.984 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.7265, allocations: 0 / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.7265, allocations: 0 / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/0.7268, allocations: 294.1 kB / 1.228 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.7269, allocations: 89 kB / 1.228 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.7269, allocations: 7.984 kB / 1.228 GB, free: 9.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.267e-05/0.727, allocations: 4 kB / 1.228 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.727, allocations: 15.92 kB / 1.228 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.7271, allocations: 11.98 kB / 1.228 GB, free: 9.699 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.239e-05/0.7271, allocations: 100.8 kB / 1.228 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7271, allocations: 0 / 1.228 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003045/0.7275, allocations: 43.95 kB / 1.228 GB, free: 9.559 MB / 0.9512 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.0006781/0.7281, allocations: 0.8343 MB / 1.229 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004243/0.7286, allocations: 298.6 kB / 1.229 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7286, allocations: 0 / 1.229 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.7287, allocations: 79.14 kB / 1.229 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.729, allocations: 32.75 kB / 1.229 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.7314, allocations: 2.042 MB / 1.231 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.7318, allocations: 0.7124 MB / 1.232 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.971e-05/0.7319, allocations: 9.094 kB / 1.232 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.045e-05/0.7319, allocations: 39.36 kB / 1.232 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of SimCode: time 3.8e-07/0.7319, allocations: 0 / 1.232 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.7567, allocations: 3.593 MB / 1.236 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/8.39, allocations: 15.42 kB / 1.236 GB, free: 1.805 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches