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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01398/0.01398, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001698/0.001698, allocations: 189.2 kB / 16.67 MB, free: 5.93 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.685/2.685, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 60.12 kB / 1.054 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.116/1.118, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002076/1.12, allocations: 0.759 MB / 1.208 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001782/1.122, allocations: 1.244 MB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.794e-05/1.122, allocations: 0 / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.114e-05/1.122, allocations: 15.86 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.078e-05/1.122, allocations: 15.8 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007695/1.123, allocations: 254.1 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002767/1.123, allocations: 267.6 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/1.123, allocations: 57.03 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/1.123, allocations: 107.7 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/1.123, allocations: 111.7 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/1.123, allocations: 24 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.079e-05/1.124, allocations: 35.98 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.239e-05/1.124, allocations: 31.91 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001102/1.124, allocations: 95.67 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003005/1.124, allocations: 247.2 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/1.124, allocations: 0 / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.373e-06/1.124, allocations: 0 / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.402e-06/1.124, allocations: 0 / 1.211 GB, free: 10.35 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.0006892/1.125, allocations: 0.4884 MB / 1.211 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/1.125, allocations: 12.03 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.812e-05/1.125, allocations: 16.84 kB / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005055/1.125, allocations: 244.2 kB / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/1.125, allocations: 12.38 kB / 1.212 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.047e-05/1.125, allocations: 20.38 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/1.126, allocations: 130.1 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/1.126, allocations: 7.875 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/1.126, allocations: 11.94 kB / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/1.126, allocations: 8 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/1.126, allocations: 67.95 kB / 1.212 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000616/1.126, allocations: 452.2 kB / 1.212 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/1.127, allocations: 102.5 kB / 1.212 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.858e-05/1.127, allocations: 40.84 kB / 1.212 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/1.127, allocations: 4 kB / 1.212 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002873/1.127, allocations: 141.6 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/1.127, allocations: 0 / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.0004283/1.127, allocations: 241.3 kB / 1.213 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/1.128, allocations: 59.34 kB / 1.213 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/1.128, allocations: 137.7 kB / 1.213 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/1.128, allocations: 37.69 kB / 1.213 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.425e-05/1.128, allocations: 112.4 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/1.128, allocations: 23.7 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/1.128, allocations: 69.67 kB / 1.213 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001316/1.128, allocations: 318.8 kB / 1.214 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/1.128, allocations: 67.95 kB / 1.214 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/1.128, allocations: 129.9 kB / 1.214 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/1.129, allocations: 220.7 kB / 1.214 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.129, allocations: 0 / 1.214 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004504/1.129, allocations: 312.6 kB / 1.214 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/1.129, allocations: 67.64 kB / 1.214 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/1.129, allocations: 4 kB / 1.214 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/1.129, allocations: 4 kB / 1.214 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.857e-05/1.129, allocations: 11.98 kB / 1.214 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/1.129, allocations: 7.938 kB / 1.214 GB, free: 6.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/1.13, allocations: 55.78 kB / 1.214 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/1.13, allocations: 23.92 kB / 1.214 GB, free: 6.43 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.0001262/1.13, allocations: 133.8 kB / 1.215 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.177e-05/1.13, allocations: 15.84 kB / 1.215 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.845e-05/1.13, allocations: 12.83 kB / 1.215 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/1.13, allocations: 4 kB / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/1.13, allocations: 0 / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/1.13, allocations: 0 / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006094/1.13, allocations: 488.3 kB / 1.215 GB, free: 5.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/1.13, allocations: 7.984 kB / 1.215 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.2e-05/1.13, allocations: 4 kB / 1.215 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/1.13, allocations: 3.984 kB / 1.215 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/1.13, allocations: 4 kB / 1.215 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/1.131, allocations: 7.875 kB / 1.215 GB, free: 5.691 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/1.131, allocations: 0 / 1.215 GB, free: 5.691 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/1.131, allocations: 291.2 kB / 1.215 GB, free: 5.391 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/1.131, allocations: 88.92 kB / 1.215 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/1.131, allocations: 8 kB / 1.215 GB, free: 5.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.137e-05/1.131, allocations: 11.98 kB / 1.215 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/1.131, allocations: 11.98 kB / 1.215 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/1.131, allocations: 12 kB / 1.215 GB, free: 5.242 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.707e-05/1.131, allocations: 93.14 kB / 1.216 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/1.131, allocations: 0 / 1.216 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003146/1.131, allocations: 51.92 kB / 1.216 GB, free: 5.102 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.0001847/1.132, allocations: 120.4 kB / 1.216 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004101/1.132, allocations: 288.9 kB / 1.216 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.132, allocations: 0 / 1.216 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/1.132, allocations: 79.91 kB / 1.216 GB, free: 4.594 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/1.133, allocations: 27.48 kB / 1.216 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005011/1.133, allocations: 275.9 kB / 1.216 GB, free: 4.277 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/1.133, allocations: 0.7085 MB / 1.217 GB, free: 3.543 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.875e-05/1.133, allocations: 13.08 kB / 1.217 GB, free: 3.531 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.761e-05/1.133, allocations: 19.44 kB / 1.217 GB, free: 3.512 MB / 0.9356 GB Notification: Performance of SimCode: time 1.914e-06/1.133, allocations: 0 / 1.217 GB, free: 3.512 MB / 0.9356 GB Notification: Performance of Templates: time 0.005557/1.139, allocations: 2.146 MB / 1.219 GB, free: 1.383 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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