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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.391/2.391, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 197 kB / 498.1 MB, free: 5.66 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.645/1.645, allocations: 223.2 MB / 0.7948 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008784/0.0008784, allocations: 99.88 kB / 0.9346 GB, free: 7.109 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 12.89 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2861, allocations: 142.4 MB / 1.223 GB, free: 89.54 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.4776, allocations: 149.8 MB / 1.369 GB, free: 3.535 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.4779, allocations: 75.94 kB / 1.369 GB, free: 3.461 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0154/0.4933, allocations: 3.984 MB / 1.373 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.196e-06/0.4934, allocations: 0 / 1.373 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.41e-05/0.4934, allocations: 4 kB / 1.373 GB, free: 15.46 MB / 0.8855 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.0008724/0.4943, allocations: 0.499 MB / 1.374 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.4943, allocations: 8.031 kB / 1.374 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.4945, allocations: 23.89 kB / 1.374 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.4946, allocations: 167 kB / 1.374 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.517e-05/0.4947, allocations: 23.98 kB / 1.374 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.4e-05/0.4948, allocations: 39.92 kB / 1.374 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.4953, allocations: 201.5 kB / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.4953, allocations: 0 / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.4954, allocations: 15.97 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.4954, allocations: 7.953 kB / 1.374 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.4957, allocations: 103.9 kB / 1.374 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.4968, allocations: 0.5432 MB / 1.375 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006432/0.4974, allocations: 298.6 kB / 1.375 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.4975, allocations: 7.984 kB / 1.375 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/0.4985, allocations: 0.5078 MB / 1.376 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 2.635e-06/0.4985, allocations: 0 / 1.376 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001498/0.5, allocations: 0.6238 MB / 1.376 GB, free: 12.22 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/0.5001, allocations: 59.84 kB / 1.376 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.5003, allocations: 124.9 kB / 1.376 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.5004, allocations: 57.69 kB / 1.376 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.5005, allocations: 109 kB / 1.376 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.5006, allocations: 102.9 kB / 1.377 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.704e-05/0.5007, allocations: 12 kB / 1.377 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.5009, allocations: 343.1 kB / 1.377 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.5013, allocations: 177.1 kB / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005417/0.5019, allocations: 276 kB / 1.377 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.5023, allocations: 193.5 kB / 1.378 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.5023, allocations: 0 / 1.378 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001256/0.5036, allocations: 0.5604 MB / 1.378 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.527e-05/0.5037, allocations: 68.17 kB / 1.378 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.5037, allocations: 7.984 kB / 1.378 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.5037, allocations: 4 kB / 1.378 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.324e-05/0.5038, allocations: 31.86 kB / 1.378 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.5039, allocations: 4.312 kB / 1.378 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005701/0.5045, allocations: 83.94 kB / 1.378 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/0.5045, allocations: 35.98 kB / 1.378 GB, free: 9.898 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,$PRE.falCleTruIni.clr,falCleTruIni.clr,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,$PRE.truCleTruIni.clr,truCleTruIni.clr,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,$PRE.falCleFalIni.clr,falCleFalIni.clr,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,$PRE.truCleFalIni.clr,truCleFalIni.clr,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.latInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000263/0.5048, allocations: 170.9 kB / 1.378 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.599e-05/0.5049, allocations: 31.7 kB / 1.378 GB, free: 9.691 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.505, allocations: 34.28 kB / 1.379 GB, free: 9.66 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.515e-06/0.505, allocations: 4 kB / 1.379 GB, free: 9.656 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.505, allocations: 7.938 kB / 1.379 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.5051, allocations: 7.984 kB / 1.379 GB, free: 9.641 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.5066, allocations: 0.888 MB / 1.379 GB, free: 8.695 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.5066, allocations: 4 kB / 1.379 GB, free: 8.691 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.217e-05/0.5067, allocations: 7.938 kB / 1.379 GB, free: 8.684 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.5067, allocations: 4 kB / 1.379 GB, free: 8.68 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/0.5068, allocations: 19.97 kB / 1.379 GB, free: 8.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.5068, allocations: 4 kB / 1.379 GB, free: 8.656 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5068, allocations: 0 / 1.379 GB, free: 8.656 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.5078, allocations: 0.5779 MB / 1.38 GB, free: 8.062 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.601e-05/0.5079, allocations: 92.83 kB / 1.38 GB, free: 7.953 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.511e-05/0.508, allocations: 23.98 kB / 1.38 GB, free: 7.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.5082, allocations: 15.98 kB / 1.38 GB, free: 7.914 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.5084, allocations: 84.22 kB / 1.38 GB, free: 7.832 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.516e-05/0.5085, allocations: 31.97 kB / 1.38 GB, free: 7.801 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.553e-05/0.5086, allocations: 95.27 kB / 1.38 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5086, allocations: 3.938 kB / 1.38 GB, free: 7.703 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000597/0.5092, allocations: 103.9 kB / 1.38 GB, free: 7.602 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y,truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 18 (truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000292/0.5095, allocations: 162.9 kB / 1.381 GB, free: 7.434 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001204/0.5107, allocations: 0.5824 MB / 1.381 GB, free: 6.828 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5107, allocations: 0 / 1.381 GB, free: 6.828 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005122/0.5112, allocations: 298.4 kB / 1.381 GB, free: 6.539 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.5116, allocations: 36.55 kB / 1.381 GB, free: 6.504 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.5128, allocations: 0.5087 MB / 1.382 GB, free: 5.961 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.5132, allocations: 0.7377 MB / 1.383 GB, free: 5.191 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000165/0.5133, allocations: 42.95 kB / 1.383 GB, free: 5.148 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.5135, allocations: 39.41 kB / 1.383 GB, free: 5.113 MB / 0.8855 GB Notification: Performance of SimCode: time 3.81e-07/0.5135, allocations: 0 / 1.383 GB, free: 5.113 MB / 0.8855 GB Notification: Performance of Templates: time 0.01097/0.5245, allocations: 4.219 MB / 1.387 GB, free: 0.9102 MB / 0.8855 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches