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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001544/0.001544, allocations: 109.6 kB / 16.39 MB, free: 6 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.001871/0.001871, allocations: 191.2 kB / 17.32 MB, free: 5.621 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.53/1.53, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.612/2.612, allocations: 442.7 MB / 0.7167 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 75.88 kB / 1.027 GB, free: 1.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9948/0.9964, allocations: 153 MB / 1.177 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002688/0.9992, allocations: 0.7594 MB / 1.178 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002141/1.001, allocations: 1.342 MB / 1.179 GB, free: 8.809 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/1.002, allocations: 0 / 1.179 GB, free: 8.809 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 4.774e-05/1.002, allocations: 11.86 kB / 1.179 GB, free: 8.797 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/1.002, allocations: 19.8 kB / 1.179 GB, free: 8.777 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001035/1.003, allocations: 309.8 kB / 1.179 GB, free: 8.48 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004995/1.003, allocations: 367.5 kB / 1.18 GB, free: 8.121 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/1.003, allocations: 61.03 kB / 1.18 GB, free: 8.062 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/1.004, allocations: 151.8 kB / 1.18 GB, free: 7.914 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002716/1.004, allocations: 143.5 kB / 1.18 GB, free: 7.773 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001011/1.004, allocations: 36 kB / 1.18 GB, free: 7.738 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/1.004, allocations: 51.98 kB / 1.18 GB, free: 7.688 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 7.617e-05/1.004, allocations: 67.86 kB / 1.18 GB, free: 7.621 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001808/1.005, allocations: 135.6 kB / 1.18 GB, free: 7.488 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004954/1.005, allocations: 339.1 kB / 1.18 GB, free: 7.156 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/1.005, allocations: 3.938 kB / 1.18 GB, free: 7.152 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.555e-06/1.005, allocations: 0 / 1.18 GB, free: 7.152 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.128e-05/1.005, allocations: 0 / 1.18 GB, free: 7.152 MB / 0.9044 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.0009813/1.006, allocations: 0.5393 MB / 1.181 GB, free: 6.551 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/1.006, allocations: 8.031 kB / 1.181 GB, free: 6.543 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/1.006, allocations: 24.83 kB / 1.181 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/1.007, allocations: 264.2 kB / 1.181 GB, free: 6.223 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.183e-05/1.007, allocations: 16.38 kB / 1.181 GB, free: 6.207 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/1.007, allocations: 40.36 kB / 1.181 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/1.007, allocations: 217 kB / 1.182 GB, free: 5.953 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/1.007, allocations: 3.938 kB / 1.182 GB, free: 5.949 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/1.008, allocations: 15.97 kB / 1.182 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/1.008, allocations: 4 kB / 1.182 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/1.008, allocations: 95.94 kB / 1.182 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009259/1.009, allocations: 0.5586 MB / 1.182 GB, free: 5.227 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004888/1.009, allocations: 266.5 kB / 1.182 GB, free: 4.957 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/1.009, allocations: 127.3 kB / 1.183 GB, free: 4.832 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/1.009, allocations: 0 / 1.183 GB, free: 4.832 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007988/1.01, allocations: 494.5 kB / 1.183 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=44): time 2.545e-06/1.01, allocations: 0 / 1.183 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of matching and sorting (n=44): time 0.001091/1.011, allocations: 0.572 MB / 1.184 GB, free: 3.758 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/1.011, allocations: 55.41 kB / 1.184 GB, free: 3.691 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/1.012, allocations: 151.5 kB / 1.184 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 8.447e-05/1.012, allocations: 65.69 kB / 1.184 GB, free: 3.465 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.222e-05/1.012, allocations: 112.9 kB / 1.184 GB, free: 3.352 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 9.341e-05/1.012, allocations: 102.8 kB / 1.184 GB, free: 3.25 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/1.012, allocations: 126.2 kB / 1.184 GB, free: 3.121 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001399/1.012, allocations: 338.8 kB / 1.185 GB, free: 2.781 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/1.013, allocations: 173.1 kB / 1.185 GB, free: 2.613 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003945/1.013, allocations: 281.8 kB / 1.185 GB, free: 2.297 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/1.013, allocations: 369.1 kB / 1.185 GB, free: 1.883 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/1.013, allocations: 4 kB / 1.185 GB, free: 1.879 MB / 0.9044 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009067/1.014, allocations: 0.5603 MB / 1.186 GB, free: 1.301 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.664e-05/1.014, allocations: 63.39 kB / 1.186 GB, free: 1.227 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/1.014, allocations: 4 kB / 1.186 GB, free: 1.223 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.89e-05/1.015, allocations: 12.25 kB / 1.186 GB, free: 1.211 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.65e-05/1.015, allocations: 27.92 kB / 1.186 GB, free: 1.184 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.137e-05/1.015, allocations: 15.88 kB / 1.186 GB, free: 1.168 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004692/1.015, allocations: 75.62 kB / 1.186 GB, free: 1.094 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.268e-05/1.015, allocations: 28 kB / 1.186 GB, free: 1.066 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 70 ($PRE.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,tru.y,fal.y,truCleTruIni.clr,$PRE.truCleTruIni.clr,truCleFalIni.clr,$PRE.truCleFalIni.clr,falCleTruIni.clr,$PRE.falCleTruIni.clr,falCleFalIni.clr,$PRE.falCleFalIni.clr,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp1.clr,$PRE.swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,swiCleInp.clr,$PRE.swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,truCleFalIni.y,truCleFalIni.u,$PRE.truCleFalIni.u,falCleFalIni.y,falCleFalIni.u,$PRE.falCleFalIni.u,truCleTruIni.y,truCleTruIni.u,$PRE.truCleTruIni.u,falCleTruIni.y,falCleTruIni.u,$PRE.falCleTruIni.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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.000223/1.015, allocations: 178.9 kB / 1.186 GB, free: 0.8789 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.059e-05/1.015, allocations: 27.8 kB / 1.186 GB, free: 0.8516 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/1.016, allocations: 38.31 kB / 1.186 GB, free: 0.8125 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/1.016, allocations: 3.984 kB / 1.186 GB, free: 0.8086 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.016, allocations: 3.938 kB / 1.186 GB, free: 0.8047 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/1.016, allocations: 100.8 kB / 1.186 GB, free: 0.6875 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.035e-05/1.016, allocations: 19.98 kB / 1.186 GB, free: 0.668 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.252e-05/1.016, allocations: 11.98 kB / 1.186 GB, free: 0.6562 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/1.016, allocations: 55.92 kB / 1.186 GB, free: 0.6016 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000775/1.017, allocations: 0.5215 MB / 1.187 GB, free: 76 kB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007558/1.018, allocations: 0.608 MB / 1.188 GB, free: 15.45 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002841/1.018, allocations: 231.9 kB / 1.188 GB, free: 15.22 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.486e-05/1.018, allocations: 105 kB / 1.188 GB, free: 15.12 MB / 0.92 GB Notification: Performance of Backend: time 9.42e-07/1.018, allocations: 0 / 1.188 GB, free: 15.12 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001093/1.019, allocations: 0.5197 MB / 1.188 GB, free: 14.57 MB / 0.92 GB Notification: Performance of SimCode: time 0.0008871/1.02, allocations: 0.7605 MB / 1.189 GB, free: 13.76 MB / 0.92 GB Notification: Performance of Templates: time 0.009662/1.03, allocations: 4.36 MB / 1.193 GB, free: 9.422 MB / 0.92 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/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