Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: 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_9_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_9_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.00154/0.00154, allocations: 110.3 kB / 16.41 MB, free: 6.402 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.001605/0.001605, allocations: 190.7 kB / 17.35 MB, free: 5.695 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.359/1.359, 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 9.1.3-maint.9.1.x/package.mo): time 2.224/2.224, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 63.91 kB / 0.9516 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9415/0.943, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002085/0.9451, allocations: 0.7766 MB / 1.089 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.9468, allocations: 1.344 MB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.365e-05/0.9469, allocations: 2.062 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.347e-05/0.9469, allocations: 10.36 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.993e-05/0.947, allocations: 15.22 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007955/0.9478, allocations: 323 kB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.9482, allocations: 365.3 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.9484, allocations: 55.36 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.9486, allocations: 155.8 kB / 1.092 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.9488, allocations: 139.6 kB / 1.092 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.84e-05/0.9489, allocations: 36.09 kB / 1.092 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.9491, allocations: 45.83 kB / 1.092 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.574e-05/0.9492, allocations: 71.48 kB / 1.092 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.9494, allocations: 136.7 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.9499, allocations: 333.3 kB / 1.092 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.9499, allocations: 4.719 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.764e-06/0.9499, allocations: 0 / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.343e-06/0.9499, allocations: 0 / 1.092 GB, free: 3.332 MB / 0.8575 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.0007734/0.9507, allocations: 0.549 MB / 1.093 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.9507, allocations: 9.391 kB / 1.093 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.864e-05/0.9509, allocations: 24.34 kB / 1.093 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005371/0.9514, allocations: 250.5 kB / 1.093 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/0.9514, allocations: 32.94 kB / 1.093 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.69e-05/0.9515, allocations: 32.94 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003911/0.9519, allocations: 206.1 kB / 1.093 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.9519, allocations: 4.594 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.952, allocations: 17.73 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.952, allocations: 3.125 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.9522, allocations: 96.33 kB / 1.094 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008058/0.953, allocations: 0.5721 MB / 1.094 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004615/0.9535, allocations: 259.8 kB / 1.094 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.9537, allocations: 118.3 kB / 1.094 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.9537, allocations: 5.406 kB / 1.094 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007736/0.9545, allocations: 497.3 kB / 1.095 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=44): time 1.794e-06/0.9545, allocations: 0 / 1.095 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of matching and sorting (n=44): time 0.001108/0.9556, allocations: 0.5698 MB / 1.095 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.9557, allocations: 65.72 kB / 1.096 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.9558, allocations: 156.7 kB / 1.096 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.954e-05/0.9559, allocations: 52.61 kB / 1.096 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.556e-05/0.9559, allocations: 113.4 kB / 1.096 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.78e-05/0.956, allocations: 103.4 kB / 1.096 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.9562, allocations: 121.7 kB / 1.096 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.9563, allocations: 341.5 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003252/0.9566, allocations: 171.4 kB / 1.097 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003864/0.957, allocations: 283.5 kB / 1.097 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004596/0.9575, allocations: 370.2 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.9575, allocations: 0.75 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009268/0.9584, allocations: 0.5547 MB / 1.098 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.577e-05/0.9585, allocations: 71.7 kB / 1.098 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.9585, allocations: 3.641 kB / 1.098 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.9586, allocations: 5.688 kB / 1.098 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.548e-05/0.9587, allocations: 27.69 kB / 1.098 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.958e-05/0.9587, allocations: 14.2 kB / 1.098 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.9591, allocations: 77.62 kB / 1.098 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.757e-05/0.9592, allocations: 28.73 kB / 1.098 GB, free: 15.86 MB / 0.8731 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.0002155/0.9594, allocations: 176.5 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.071e-05/0.9595, allocations: 27.59 kB / 1.098 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.564e-05/0.9596, allocations: 33.77 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.9596, allocations: 1.312 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.9596, allocations: 8.734 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.055e-05/0.9597, allocations: 96.34 kB / 1.098 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.771e-05/0.9598, allocations: 28.19 kB / 1.098 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.357e-05/0.9598, allocations: 11.91 kB / 1.098 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.96, allocations: 55.03 kB / 1.098 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007766/0.9608, allocations: 0.5138 MB / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007981/0.9616, allocations: 0.6192 MB / 1.099 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003293/0.9619, allocations: 230.4 kB / 1.1 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 8.154e-05/0.962, allocations: 102.6 kB / 1.1 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of Backend: time 9.12e-07/0.962, allocations: 0 / 1.1 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001156/0.9632, allocations: 0.5211 MB / 1.1 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of SimCode: time 0.00087/0.9641, allocations: 0.7579 MB / 1.101 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of Templates: time 0.01031/0.9744, allocations: 4.379 MB / 1.105 GB, free: 13.39 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches