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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01149/0.01149, allocations: 103.8 kB / 15.73 MB, free: 6.008 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.003198/0.003199, allocations: 197.4 kB / 16.68 MB, free: 5.934 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.564/2.564, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 64.12 kB / 1.054 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9117/0.9131, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002122/0.9153, allocations: 0.7617 MB / 1.208 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001698/0.917, allocations: 1.252 MB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.459e-05/0.9171, allocations: 4 kB / 1.209 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.42e-05/0.9171, allocations: 11.86 kB / 1.209 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.385e-05/0.9172, allocations: 15.8 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007451/0.918, allocations: 252 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003191/0.9183, allocations: 263.6 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.9185, allocations: 61.03 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.9187, allocations: 103.7 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.9189, allocations: 103.7 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.84e-05/0.9189, allocations: 24 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.42e-05/0.919, allocations: 39.98 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.54e-05/0.9191, allocations: 39.89 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.9192, allocations: 91.62 kB / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003301/0.9195, allocations: 249.5 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.9195, allocations: 3.938 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9195, allocations: 0 / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.9196, allocations: 0 / 1.21 GB, free: 10.3 MB / 0.9356 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.0007461/0.9203, allocations: 0.4907 MB / 1.211 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.9204, allocations: 12.03 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.516e-05/0.9204, allocations: 42.73 kB / 1.211 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.759e-05/0.9205, allocations: 16.84 kB / 1.211 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.9211, allocations: 240.2 kB / 1.211 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.9211, allocations: 8.375 kB / 1.211 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.768e-05/0.9212, allocations: 24.36 kB / 1.211 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002203/0.9214, allocations: 137.9 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.9214, allocations: 0 / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.9214, allocations: 7.984 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.9215, allocations: 4 kB / 1.211 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001227/0.9216, allocations: 63.97 kB / 1.211 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.9222, allocations: 460.1 kB / 1.212 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.9223, allocations: 106.5 kB / 1.212 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.465e-05/0.9224, allocations: 36.84 kB / 1.212 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 7.524e-06/0.9224, allocations: 7.938 kB / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.9227, allocations: 131.2 kB / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.904e-06/0.9227, allocations: 0 / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.0004068/0.9231, allocations: 241.4 kB / 1.212 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.9231, allocations: 59.34 kB / 1.212 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.9232, allocations: 145.6 kB / 1.213 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.9233, allocations: 33.7 kB / 1.213 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.052e-05/0.9234, allocations: 112.5 kB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.9234, allocations: 23.7 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.9235, allocations: 73.58 kB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.9236, allocations: 326.8 kB / 1.213 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.9238, allocations: 67.97 kB / 1.213 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.924, allocations: 131.4 kB / 1.213 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.9242, allocations: 224.2 kB / 1.214 GB, free: 6.82 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.9243, allocations: 4 kB / 1.214 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004852/0.9248, allocations: 307.5 kB / 1.214 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/0.9248, allocations: 67.41 kB / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.9248, allocations: 3.984 kB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.9249, allocations: 4 kB / 1.214 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.751e-05/0.9249, allocations: 4 kB / 1.214 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.9249, allocations: 7.938 kB / 1.214 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003833/0.9253, allocations: 64.03 kB / 1.214 GB, free: 6.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-05/0.9253, allocations: 15.98 kB / 1.214 GB, free: 6.324 MB / 0.9356 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.0001205/0.9255, allocations: 129.8 kB / 1.214 GB, free: 6.188 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.289e-05/0.9255, allocations: 15.83 kB / 1.214 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.9255, allocations: 16.84 kB / 1.214 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.9256, allocations: 0 / 1.214 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.9256, allocations: 0 / 1.214 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.9256, allocations: 8 kB / 1.214 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000505/0.9261, allocations: 490.3 kB / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.9261, allocations: 0 / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.177e-05/0.9261, allocations: 0 / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.9261, allocations: 0 / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.9261, allocations: 15.97 kB / 1.215 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.9262, allocations: 3.938 kB / 1.215 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.9262, allocations: 0 / 1.215 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.9265, allocations: 291.3 kB / 1.215 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.9265, allocations: 88.92 kB / 1.215 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.9266, allocations: 11.92 kB / 1.215 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.795e-05/0.9266, allocations: 0 / 1.215 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.9267, allocations: 15.98 kB / 1.215 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.9267, allocations: 11.98 kB / 1.215 GB, free: 5.141 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.096e-05/0.9268, allocations: 99.2 kB / 1.215 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9268, allocations: 0 / 1.215 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003058/0.9271, allocations: 43.94 kB / 1.215 GB, free: 5 MB / 0.9356 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.0006105/0.9277, allocations: 0.8364 MB / 1.216 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003908/0.9281, allocations: 295 kB / 1.216 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.9281, allocations: 4.062 kB / 1.216 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.9282, allocations: 79.91 kB / 1.216 GB, free: 3.746 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.9286, allocations: 24.2 kB / 1.216 GB, free: 3.723 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.9308, allocations: 2.041 MB / 1.218 GB, free: 1.539 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.9311, allocations: 0.7085 MB / 1.219 GB, free: 0.8047 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.438e-05/0.9311, allocations: 9.094 kB / 1.219 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.9312, allocations: 39.64 kB / 1.219 GB, free: 0.7578 MB / 0.9356 GB Notification: Performance of SimCode: time 3.1e-07/0.9312, allocations: 0 / 1.219 GB, free: 0.7578 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.9516, allocations: 3.677 MB / 1.223 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/8.712, allocations: 0 / 1.223 GB, free: 13.19 MB / 0.9512 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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