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.005316/0.005316, allocations: 106.2 kB / 15.73 MB, free: 5.984 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.001126/0.001126, allocations: 194.8 kB / 16.67 MB, free: 5.906 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.629/2.629, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 67.89 kB / 1.054 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9474/0.9498, allocations: 157.4 MB / 1.207 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002613/0.9525, allocations: 0.765 MB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001996/0.9545, allocations: 1.248 MB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.9546, allocations: 4 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.073e-05/0.9547, allocations: 11.81 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.9548, allocations: 15.84 kB / 1.209 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007911/0.9556, allocations: 250.1 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.956, allocations: 267.6 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.9561, allocations: 53.09 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.9563, allocations: 103.7 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.9565, allocations: 103.7 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.9566, allocations: 28 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.9567, allocations: 39.98 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.176e-05/0.9568, allocations: 35.91 kB / 1.21 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.9569, allocations: 91.67 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.9572, allocations: 249.6 kB / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.9572, allocations: 0 / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.723e-06/0.9572, allocations: 0 / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.9573, allocations: 3.984 kB / 1.21 GB, free: 10.5 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.0006847/0.9579, allocations: 498.5 kB / 1.211 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001/0.9581, allocations: 16.03 kB / 1.211 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.914e-05/0.9581, allocations: 42.73 kB / 1.211 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.118e-05/0.9582, allocations: 20.83 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005374/0.9587, allocations: 240.2 kB / 1.211 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.9588, allocations: 12.36 kB / 1.211 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.9588, allocations: 24.36 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.959, allocations: 133.7 kB / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.9591, allocations: 3.938 kB / 1.211 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.9591, allocations: 15.92 kB / 1.211 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.9591, allocations: 4 kB / 1.211 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.9592, allocations: 63.97 kB / 1.211 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006052/0.9598, allocations: 456.1 kB / 1.212 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.96, allocations: 98.53 kB / 1.212 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.524e-05/0.9601, allocations: 40.78 kB / 1.212 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.9601, allocations: 8.156 kB / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.9604, allocations: 135.1 kB / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 2.926e-06/0.9604, allocations: 0 / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.000418/0.9608, allocations: 239 kB / 1.212 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.9609, allocations: 55.41 kB / 1.212 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.961, allocations: 151.3 kB / 1.213 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.961, allocations: 29.7 kB / 1.213 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.64e-05/0.9611, allocations: 116.4 kB / 1.213 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.9611, allocations: 19.72 kB / 1.213 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.9613, allocations: 73.58 kB / 1.213 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.9614, allocations: 326.8 kB / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.9615, allocations: 63.97 kB / 1.213 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.9617, allocations: 142 kB / 1.213 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.9619, allocations: 217 kB / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.962, allocations: 4 kB / 1.214 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004803/0.9624, allocations: 304.8 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.034e-05/0.9626, allocations: 73.19 kB / 1.214 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.9626, allocations: 3.984 kB / 1.214 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.9626, allocations: 4 kB / 1.214 GB, free: 6.605 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.706e-05/0.9626, allocations: 4 kB / 1.214 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.9626, allocations: 7.938 kB / 1.214 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.963, allocations: 59.78 kB / 1.214 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.963, allocations: 19.92 kB / 1.214 GB, free: 6.516 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.0001614/0.9632, allocations: 137.8 kB / 1.214 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.9632, allocations: 15.83 kB / 1.214 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.9632, allocations: 12.84 kB / 1.214 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.9633, allocations: 0 / 1.214 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.9633, allocations: 0 / 1.214 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.9633, allocations: 0 / 1.214 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005029/0.9638, allocations: 0.4886 MB / 1.215 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.9638, allocations: 0 / 1.215 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.254e-05/0.9638, allocations: 3.938 kB / 1.215 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.9638, allocations: 0 / 1.215 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.9638, allocations: 11.98 kB / 1.215 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.9638, allocations: 3.938 kB / 1.215 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9638, allocations: 0 / 1.215 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.9642, allocations: 287.3 kB / 1.215 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.827e-05/0.9642, allocations: 92.92 kB / 1.215 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.9643, allocations: 7.984 kB / 1.215 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.734e-05/0.9643, allocations: 0 / 1.215 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.9644, allocations: 11.98 kB / 1.215 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.9644, allocations: 15.98 kB / 1.215 GB, free: 5.332 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.426e-05/0.9645, allocations: 95.27 kB / 1.215 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9645, allocations: 0 / 1.215 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003223/0.9648, allocations: 43.94 kB / 1.215 GB, free: 5.195 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.0007302/0.9655, allocations: 0.8374 MB / 1.216 GB, free: 4.336 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004097/0.966, allocations: 294.6 kB / 1.216 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.966, allocations: 0 / 1.216 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.9661, allocations: 79.91 kB / 1.216 GB, free: 3.945 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.9664, allocations: 28.38 kB / 1.216 GB, free: 3.918 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/0.9691, allocations: 2.038 MB / 1.218 GB, free: 1.734 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.9696, allocations: 0.7124 MB / 1.219 GB, free: 0.9961 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.101e-05/0.9696, allocations: 13.08 kB / 1.219 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.409e-05/0.9697, allocations: 35.42 kB / 1.219 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.9697, allocations: 0 / 1.219 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.9918, allocations: 3.672 MB / 1.223 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.616/8.608, allocations: 3.5 kB / 1.223 GB, free: 13.39 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