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.128/2.128, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.001012/0.001012, allocations: 175.8 kB / 492.3 MB, free: 0.6055 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.555/1.555, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.001045/0.001046, allocations: 98.75 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.957e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3167, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9981/1.315, allocations: 149.8 MB / 1.359 GB, free: 18.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001678/1.315, allocations: 67.28 kB / 1.359 GB, free: 18.91 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01098/1.326, allocations: 3.975 MB / 1.363 GB, free: 34.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.012e-06/1.326, allocations: 0 / 1.363 GB, free: 34.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.654e-06/1.326, allocations: 0 / 1.363 GB, free: 34.42 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.0004918/1.327, allocations: 489.9 kB / 1.363 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/1.327, allocations: 7.812 kB / 1.363 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.247e-05/1.327, allocations: 29.77 kB / 1.363 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.973e-05/1.327, allocations: 176.4 kB / 1.363 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/1.327, allocations: 21.34 kB / 1.363 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.259e-05/1.327, allocations: 33.56 kB / 1.363 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/1.327, allocations: 213.3 kB / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/1.327, allocations: 0 / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/1.327, allocations: 18.64 kB / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/1.327, allocations: 3.844 kB / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/1.328, allocations: 102.9 kB / 1.364 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006349/1.328, allocations: 0.5308 MB / 1.364 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003466/1.329, allocations: 297.3 kB / 1.364 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/1.329, allocations: 141.1 kB / 1.365 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/1.329, allocations: 3.875 kB / 1.365 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006028/1.329, allocations: 0.5017 MB / 1.365 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.713e-06/1.329, allocations: 0 / 1.365 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006428/1.33, allocations: 479.9 kB / 1.366 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/1.33, allocations: 59.56 kB / 1.366 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.959e-05/1.33, allocations: 127.2 kB / 1.366 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.075e-05/1.33, allocations: 59.94 kB / 1.366 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/1.33, allocations: 105.1 kB / 1.366 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/1.33, allocations: 108 kB / 1.366 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/1.33, allocations: 18.56 kB / 1.366 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.651e-05/1.33, allocations: 340.6 kB / 1.366 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/1.331, allocations: 169.1 kB / 1.366 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/1.331, allocations: 268.8 kB / 1.367 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/1.331, allocations: 191.4 kB / 1.367 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/1.331, allocations: 0 / 1.367 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006804/1.332, allocations: 0.5448 MB / 1.367 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/1.332, allocations: 72.81 kB / 1.368 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/1.332, allocations: 3.969 kB / 1.368 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/1.332, allocations: 3.875 kB / 1.368 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.894e-05/1.332, allocations: 28.16 kB / 1.368 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/1.332, allocations: 3.875 kB / 1.368 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/1.332, allocations: 85.45 kB / 1.368 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.851e-05/1.332, allocations: 33.11 kB / 1.368 GB, free: 32.24 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.0001403/1.333, allocations: 169 kB / 1.368 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.823e-05/1.333, allocations: 29.94 kB / 1.368 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.127e-05/1.333, allocations: 37.58 kB / 1.368 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.333, allocations: 3.844 kB / 1.368 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.333, allocations: 0 / 1.368 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/1.333, allocations: 2.625 kB / 1.368 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009078/1.334, allocations: 0.8854 MB / 1.369 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.334, allocations: 0 / 1.369 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.501e-05/1.334, allocations: 18.59 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/1.334, allocations: 3.906 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/1.334, allocations: 21.39 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/1.334, allocations: 7.812 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.334, allocations: 0 / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/1.334, allocations: 0.5598 MB / 1.369 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/1.334, allocations: 95.56 kB / 1.369 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.493e-05/1.335, allocations: 27 kB / 1.369 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.304e-05/1.335, allocations: 11.16 kB / 1.369 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/1.335, allocations: 76.36 kB / 1.37 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-05/1.335, allocations: 34.3 kB / 1.37 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.525e-05/1.335, allocations: 102.7 kB / 1.37 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.335, allocations: 3.938 kB / 1.37 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003498/1.335, allocations: 101.1 kB / 1.37 GB, free: 31.41 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.0001929/1.335, allocations: 149.4 kB / 1.37 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006263/1.336, allocations: 0.5728 MB / 1.371 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.336, allocations: 0 / 1.371 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002724/1.336, allocations: 298.3 kB / 1.371 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/1.337, allocations: 33.08 kB / 1.371 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005751/1.337, allocations: 385 kB / 1.371 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/1.338, allocations: 0.7441 MB / 1.372 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.984e-05/1.338, allocations: 31.09 kB / 1.372 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/1.338, allocations: 43.58 kB / 1.372 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of SimCode: time 1.192e-06/1.338, allocations: 0 / 1.372 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of Templates: time 0.006341/1.344, allocations: 4.224 MB / 1.376 GB, free: 30.02 MB / 0.8386 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