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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.201/2.201, allocations: 390.5 MB / 398 MB, free: 10.97 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.001181/0.001181, allocations: 187.5 kB / 491.2 MB, free: 1.602 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.553/1.553, allocations: 221.5 MB / 0.7868 GB, free: 13.28 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.0009393/0.0009393, allocations: 98.45 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.849e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3365, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.103/1.44, allocations: 149.9 MB / 1.359 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/1.44, allocations: 73.39 kB / 1.359 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01089/1.451, allocations: 3.946 MB / 1.363 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.493e-06/1.451, allocations: 0 / 1.363 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.236e-06/1.451, allocations: 4 kB / 1.363 GB, free: 33.11 MB / 0.8386 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.0005664/1.452, allocations: 491.4 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/1.452, allocations: 11.62 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.799e-05/1.452, allocations: 24.55 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/1.452, allocations: 172.5 kB / 1.363 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/1.452, allocations: 12.84 kB / 1.363 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.747e-05/1.452, allocations: 29.95 kB / 1.363 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001842/1.452, allocations: 82.25 kB / 1.363 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/1.453, allocations: 188.6 kB / 1.364 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/1.453, allocations: 4 kB / 1.364 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.795e-05/1.453, allocations: 21.83 kB / 1.364 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/1.453, allocations: 0 / 1.364 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006995/1.454, allocations: 0.5024 MB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/1.454, allocations: 266.5 kB / 1.364 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/1.454, allocations: 127 kB / 1.364 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/1.454, allocations: 5.125 kB / 1.364 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005975/1.455, allocations: 0.495 MB / 1.365 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.994e-06/1.455, allocations: 3.312 kB / 1.365 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006572/1.455, allocations: 439.9 kB / 1.365 GB, free: 32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.449e-05/1.455, allocations: 58.62 kB / 1.365 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.402e-05/1.455, allocations: 122.6 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.469e-05/1.456, allocations: 47.34 kB / 1.366 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.383e-05/1.456, allocations: 99.08 kB / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.362e-05/1.456, allocations: 99.05 kB / 1.366 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/1.456, allocations: 5.297 kB / 1.366 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001159/1.456, allocations: 333 kB / 1.366 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/1.456, allocations: 156.9 kB / 1.366 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/1.456, allocations: 257.2 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/1.457, allocations: 132.1 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/1.457, allocations: 7.797 kB / 1.367 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008253/1.458, allocations: 463.7 kB / 1.367 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/1.458, allocations: 72.86 kB / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/1.458, allocations: 0 / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/1.458, allocations: 7.688 kB / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.005e-05/1.458, allocations: 31.55 kB / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/1.458, allocations: 3.844 kB / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/1.458, allocations: 71.86 kB / 1.367 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.369e-05/1.458, allocations: 29.53 kB / 1.367 GB, free: 31.11 MB / 0.8386 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 () * 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.0001536/1.458, allocations: 148.6 kB / 1.367 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.601e-05/1.459, allocations: 27.77 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.149e-05/1.459, allocations: 30.42 kB / 1.368 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/1.459, allocations: 3.938 kB / 1.368 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/1.459, allocations: 3.844 kB / 1.368 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/1.459, allocations: 2.484 kB / 1.368 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008344/1.459, allocations: 0.8041 MB / 1.368 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/1.459, allocations: 3.844 kB / 1.368 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.733e-05/1.46, allocations: 12.73 kB / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.46, allocations: 3.875 kB / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/1.46, allocations: 15.44 kB / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/1.46, allocations: 0 / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/1.46, allocations: 0 / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006619/1.46, allocations: 0.5359 MB / 1.369 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.997e-05/1.46, allocations: 92.72 kB / 1.369 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.578e-05/1.46, allocations: 19.73 kB / 1.369 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.33e-05/1.461, allocations: 7 kB / 1.369 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/1.461, allocations: 77.89 kB / 1.369 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.009e-05/1.461, allocations: 35.42 kB / 1.369 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.586e-05/1.461, allocations: 92.52 kB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.665e-06/1.461, allocations: 7.938 kB / 1.369 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005113/1.461, allocations: 90.08 kB / 1.369 GB, free: 30.31 MB / 0.8386 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) * 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.0003839/1.462, allocations: 144.9 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008274/1.463, allocations: 0.5304 MB / 1.37 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/1.463, allocations: 0.625 kB / 1.37 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003622/1.463, allocations: 291.2 kB / 1.37 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/1.463, allocations: 16.7 kB / 1.37 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007963/1.464, allocations: 351 kB / 1.371 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/1.465, allocations: 0.7428 MB / 1.371 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001177/1.465, allocations: 34.8 kB / 1.371 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/1.465, allocations: 44.97 kB / 1.371 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.465, allocations: 3.781 kB / 1.371 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of Templates: time 0.009033/1.474, allocations: 4.063 MB / 1.375 GB, free: 28.92 MB / 0.8386 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches