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.004959/0.004963, allocations: 98.98 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.001418/0.001418, allocations: 192.8 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.458/2.458, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 75.88 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6332/0.6349, allocations: 159.1 MB / 1.22 GB, free: 2.074 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001621/0.6366, allocations: 0.7557 MB / 1.221 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.638, allocations: 1.252 MB / 1.222 GB, free: 56 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.38e-05/0.638, allocations: 7.938 kB / 1.222 GB, free: 48 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.827e-05/0.6381, allocations: 11.86 kB / 1.222 GB, free: 36 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.718e-05/0.6381, allocations: 11.88 kB / 1.222 GB, free: 24 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006049/0.6388, allocations: 251.1 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.639, allocations: 267.6 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.6392, allocations: 57.05 kB / 1.223 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.6393, allocations: 107.7 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.6394, allocations: 103.7 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.143e-05/0.6395, allocations: 24 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.298e-05/0.6396, allocations: 43.98 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.847e-05/0.6396, allocations: 35.89 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.86e-05/0.6397, allocations: 91.67 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000267/0.64, allocations: 250.8 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.64, allocations: 4 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.222e-06/0.64, allocations: 0 / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.64, allocations: 0 / 1.223 GB, free: 14.82 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.0005554/0.6406, allocations: 0.4905 MB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.6406, allocations: 8.031 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.6407, allocations: 50.73 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.378e-05/0.6407, allocations: 16.89 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.6412, allocations: 244.2 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.6412, allocations: 20.36 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.6413, allocations: 20.38 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.6415, allocations: 131 kB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.6415, allocations: 0 / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.6415, allocations: 15.92 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.6415, allocations: 4 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.6417, allocations: 67.95 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000519/0.6422, allocations: 456.2 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.6423, allocations: 98.53 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.948e-05/0.6424, allocations: 44.83 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.6424, allocations: 3.938 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.6426, allocations: 135.2 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.6426, allocations: 0 / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.00038/0.643, allocations: 236.7 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.6431, allocations: 59.39 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.745e-05/0.6432, allocations: 141.7 kB / 1.226 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.6432, allocations: 37.7 kB / 1.226 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.251e-05/0.6433, allocations: 109.6 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.078e-05/0.6433, allocations: 47.62 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.6434, allocations: 69.67 kB / 1.226 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.6436, allocations: 318.8 kB / 1.226 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.6437, allocations: 67.95 kB / 1.226 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.6439, allocations: 130.5 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.6441, allocations: 215 kB / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.6441, allocations: 0 / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004325/0.6446, allocations: 308.7 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.6446, allocations: 63.64 kB / 1.227 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.6446, allocations: 8 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.6447, allocations: 4 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.368e-05/0.6447, allocations: 7.938 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.6447, allocations: 3.938 kB / 1.227 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.645, allocations: 63.83 kB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.645, allocations: 19.98 kB / 1.227 GB, free: 10.84 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.0001117/0.6452, allocations: 141.4 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.6452, allocations: 15.89 kB / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.6452, allocations: 8.844 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.6452, allocations: 0 / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6452, allocations: 4 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.6452, allocations: 3.984 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.6457, allocations: 492.8 kB / 1.228 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6457, allocations: 7.938 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.969e-06/0.6457, allocations: 0 / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.6457, allocations: 7.984 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.6457, allocations: 3.984 kB / 1.228 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.6458, allocations: 4 kB / 1.228 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.6458, allocations: 0 / 1.228 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002804/0.646, allocations: 295.2 kB / 1.228 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.6461, allocations: 85.06 kB / 1.228 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.6461, allocations: 7.984 kB / 1.228 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.942e-05/0.6462, allocations: 8 kB / 1.228 GB, free: 9.676 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.6462, allocations: 15.91 kB / 1.228 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.6463, allocations: 12 kB / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.455e-05/0.6463, allocations: 97.77 kB / 1.228 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6463, allocations: 0 / 1.228 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002718/0.6466, allocations: 51.94 kB / 1.228 GB, free: 9.504 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.0005755/0.6472, allocations: 0.8375 MB / 1.229 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003642/0.6475, allocations: 294.6 kB / 1.229 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.6476, allocations: 0 / 1.229 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.558e-05/0.6477, allocations: 71.91 kB / 1.229 GB, free: 8.262 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.6479, allocations: 32.47 kB / 1.229 GB, free: 8.23 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.65, allocations: 2.042 MB / 1.231 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.6503, allocations: 0.7124 MB / 1.232 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.279e-05/0.6503, allocations: 9.078 kB / 1.232 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.115e-05/0.6504, allocations: 39.42 kB / 1.232 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.6504, allocations: 0 / 1.232 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.402/2.053, allocations: 3.582 MB / 1.236 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/13.05, allocations: 20.23 kB / 1.236 GB, free: 1.762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 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.mat","/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