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.42/2.42, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.001107/0.001107, allocations: 191.4 kB / 0.4902 GB, free: 2.301 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.518/1.518, allocations: 223.2 MB / 0.7992 GB, free: 14.72 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.001027/0.001027, allocations: 96.22 kB / 0.9396 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003703, allocations: 15.11 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2921, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2133/0.5055, allocations: 150.6 MB / 1.376 GB, free: 2.98 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.5058, allocations: 67.97 kB / 1.376 GB, free: 2.914 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0128/0.5186, allocations: 3.984 MB / 1.38 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.154e-06/0.5187, allocations: 3.938 kB / 1.38 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.48e-05/0.5187, allocations: 4 kB / 1.38 GB, free: 14.91 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.0009397/0.5197, allocations: 494.9 kB / 1.381 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.5197, allocations: 8.031 kB / 1.381 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.5199, allocations: 27.81 kB / 1.381 GB, free: 14.33 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.52, allocations: 171 kB / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.572e-05/0.5201, allocations: 24 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.767e-05/0.5202, allocations: 35.97 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.5207, allocations: 217.3 kB / 1.381 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.5207, allocations: 4 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.5207, allocations: 15.97 kB / 1.381 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.5208, allocations: 3.953 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002329/0.521, allocations: 91.95 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009631/0.522, allocations: 0.5471 MB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.5225, allocations: 298.8 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.5225, allocations: 0 / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008351/0.5233, allocations: 0.5143 MB / 1.383 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 2.785e-06/0.5233, allocations: 0 / 1.383 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001105/0.5245, allocations: 0.6276 MB / 1.383 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.5245, allocations: 59.84 kB / 1.383 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.5247, allocations: 128.9 kB / 1.383 GB, free: 11.47 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.68e-05/0.5248, allocations: 57.69 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.5249, allocations: 105 kB / 1.384 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.808e-05/0.525, allocations: 98.89 kB / 1.384 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.784e-05/0.5251, allocations: 20 kB / 1.384 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5252, allocations: 331.2 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.5256, allocations: 177.1 kB / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004139/0.526, allocations: 272.1 kB / 1.384 GB, free: 10.38 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.5264, allocations: 201.5 kB / 1.385 GB, free: 10.18 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.5264, allocations: 0 / 1.385 GB, free: 10.18 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00094/0.5273, allocations: 0.5607 MB / 1.385 GB, free: 9.598 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.845e-05/0.5274, allocations: 71.39 kB / 1.385 GB, free: 9.516 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.5274, allocations: 4 kB / 1.385 GB, free: 9.512 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/0.5275, allocations: 8 kB / 1.385 GB, free: 9.504 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.038e-05/0.5275, allocations: 23.86 kB / 1.385 GB, free: 9.48 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.5276, allocations: 8 kB / 1.385 GB, free: 9.473 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.528, allocations: 91.84 kB / 1.385 GB, free: 9.383 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.138e-05/0.5281, allocations: 27.98 kB / 1.385 GB, free: 9.355 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.000229/0.5283, allocations: 179.4 kB / 1.386 GB, free: 9.172 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.151e-05/0.5284, allocations: 23.81 kB / 1.386 GB, free: 9.148 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.5285, allocations: 38.27 kB / 1.386 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.5285, allocations: 8 kB / 1.386 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.5285, allocations: 0 / 1.386 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.5285, allocations: 0 / 1.386 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.5297, allocations: 0.8919 MB / 1.387 GB, free: 8.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5297, allocations: 0 / 1.387 GB, free: 8.16 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-05/0.5298, allocations: 15.92 kB / 1.387 GB, free: 8.145 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.5298, allocations: 0 / 1.387 GB, free: 8.145 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/0.5298, allocations: 27.91 kB / 1.387 GB, free: 8.117 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.5298, allocations: 3.938 kB / 1.387 GB, free: 8.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5298, allocations: 4 kB / 1.387 GB, free: 8.109 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007955/0.5306, allocations: 0.5817 MB / 1.387 GB, free: 7.508 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.721e-05/0.5307, allocations: 88.92 kB / 1.387 GB, free: 7.402 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.623e-05/0.5308, allocations: 27.98 kB / 1.387 GB, free: 7.375 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.5309, allocations: 11.98 kB / 1.387 GB, free: 7.363 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.5311, allocations: 76.28 kB / 1.387 GB, free: 7.289 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.43e-05/0.5311, allocations: 35.91 kB / 1.387 GB, free: 7.254 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.47e-05/0.5312, allocations: 103.3 kB / 1.387 GB, free: 7.152 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5312, allocations: 0 / 1.387 GB, free: 7.152 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004382/0.5317, allocations: 99.98 kB / 1.388 GB, free: 7.055 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.0002865/0.532, allocations: 151.1 kB / 1.388 GB, free: 6.898 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0009244/0.5329, allocations: 0.5828 MB / 1.388 GB, free: 6.293 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5329, allocations: 0 / 1.388 GB, free: 6.293 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004013/0.5333, allocations: 310.4 kB / 1.389 GB, free: 5.992 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.5336, allocations: 27.88 kB / 1.389 GB, free: 5.965 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009401/0.5345, allocations: 0.5163 MB / 1.389 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.535, allocations: 0.7416 MB / 1.39 GB, free: 4.648 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001277/0.5352, allocations: 42.84 kB / 1.39 GB, free: 4.605 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.5353, allocations: 43.41 kB / 1.39 GB, free: 4.562 MB / 0.8855 GB Notification: Performance of SimCode: time 3.1e-07/0.5353, allocations: 0 / 1.39 GB, free: 4.562 MB / 0.8855 GB Notification: Performance of Templates: time 0.009051/0.5444, allocations: 4.217 MB / 1.394 GB, free: 372 kB / 0.8855 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