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.007713/0.007714, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001245/0.001245, allocations: 183.8 kB / 16.67 MB, free: 5.977 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.536/1.536, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.03/3.03, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001379, allocations: 71.89 kB / 1.054 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.4143, allocations: 157.4 MB / 1.208 GB, free: 9.598 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002778/0.4171, allocations: 0.7632 MB / 1.209 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002097/0.4193, allocations: 1.249 MB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.4194, allocations: 4 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 6.505e-05/0.4195, allocations: 11.81 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.4197, allocations: 11.86 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.4207, allocations: 254.4 kB / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005023/0.4212, allocations: 275.5 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.4214, allocations: 57.05 kB / 1.21 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.4217, allocations: 103.8 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.4219, allocations: 111.6 kB / 1.211 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.179e-05/0.422, allocations: 24 kB / 1.211 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.4221, allocations: 35.98 kB / 1.211 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.179e-05/0.4222, allocations: 35.91 kB / 1.211 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.4223, allocations: 91.67 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004054/0.4227, allocations: 255.2 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.4227, allocations: 0 / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.144e-06/0.4227, allocations: 0 / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.4228, allocations: 0 / 1.211 GB, free: 6.332 MB / 0.9669 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.0008455/0.4236, allocations: 0.4907 MB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.4237, allocations: 8.625 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.4238, allocations: 20.83 kB / 1.211 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006088/0.4244, allocations: 240.2 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.4244, allocations: 12.38 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.4245, allocations: 24.36 kB / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.4248, allocations: 130.1 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.4248, allocations: 3.938 kB / 1.212 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.227e-05/0.4248, allocations: 11.98 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.4248, allocations: 4 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.425, allocations: 63.97 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007232/0.4257, allocations: 460.1 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.4259, allocations: 90.53 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.687e-05/0.426, allocations: 40.84 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.426, allocations: 4 kB / 1.212 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.4263, allocations: 143.1 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 1.753e-06/0.4263, allocations: 0 / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.0005025/0.4268, allocations: 235.3 kB / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.4269, allocations: 59.39 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.427, allocations: 137.7 kB / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.427, allocations: 33.7 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.4272, allocations: 120.5 kB / 1.213 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.4272, allocations: 31.55 kB / 1.213 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.4273, allocations: 69.67 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.4275, allocations: 322.8 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.4277, allocations: 67.95 kB / 1.214 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.4278, allocations: 127.6 kB / 1.214 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.4281, allocations: 217.5 kB / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4281, allocations: 3.938 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005363/0.4287, allocations: 312.8 kB / 1.214 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.218e-05/0.4288, allocations: 76.89 kB / 1.214 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4288, allocations: 0 / 1.214 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.4288, allocations: 4 kB / 1.214 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.783e-05/0.4289, allocations: 15.94 kB / 1.214 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.4289, allocations: 4 kB / 1.214 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.4292, allocations: 51.84 kB / 1.214 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.4293, allocations: 19.98 kB / 1.214 GB, free: 2.41 MB / 0.9669 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.000228/0.4295, allocations: 142.3 kB / 1.215 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.4296, allocations: 15.84 kB / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.399e-05/0.4296, allocations: 8.844 kB / 1.215 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.4296, allocations: 7.984 kB / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.4296, allocations: 0 / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4296, allocations: 0 / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005627/0.4302, allocations: 490.3 kB / 1.215 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4302, allocations: 0 / 1.215 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.661e-05/0.4302, allocations: 7.938 kB / 1.215 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.4303, allocations: 0 / 1.215 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.4303, allocations: 7.984 kB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.4303, allocations: 0 / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4303, allocations: 0 / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003292/0.4306, allocations: 294 kB / 1.215 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.718e-05/0.4307, allocations: 88.95 kB / 1.215 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.4307, allocations: 7.984 kB / 1.215 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.091e-05/0.4308, allocations: 4 kB / 1.215 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.4309, allocations: 11.98 kB / 1.215 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.4309, allocations: 15.98 kB / 1.215 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.884e-05/0.431, allocations: 93.77 kB / 1.216 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.431, allocations: 0 / 1.216 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003343/0.4313, allocations: 44 kB / 1.216 GB, free: 1.098 MB / 0.9669 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.0001912/0.4315, allocations: 116.4 kB / 1.216 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004263/0.4319, allocations: 302.5 kB / 1.216 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4319, allocations: 0 / 1.216 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.4321, allocations: 75.97 kB / 1.216 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.4324, allocations: 27.8 kB / 1.216 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006009/0.433, allocations: 271.9 kB / 1.216 GB, free: 272 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.4334, allocations: 0.7046 MB / 1.217 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.567e-05/0.4335, allocations: 13.08 kB / 1.217 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.047e-05/0.4335, allocations: 15.44 kB / 1.217 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of SimCode: time 5.51e-07/0.4335, allocations: 4 kB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of Templates: time 0.006565/0.4401, allocations: 2.205 MB / 1.219 GB, free: 13.32 MB / 0.9825 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