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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) 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.9 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.001273/0.001273, allocations: 180.8 kB / 491.2 MB, free: 1.555 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.822/1.822, allocations: 221.5 MB / 0.7868 GB, free: 13.32 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.001005/0.001005, allocations: 91.89 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.135e-05/2.149e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.334, allocations: 143 MB / 1.212 GB, free: 39.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1/1.334, allocations: 149.9 MB / 1.359 GB, free: 17.3 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/1.334, allocations: 70.62 kB / 1.359 GB, free: 17.3 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01187/1.346, allocations: 3.948 MB / 1.363 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.443e-06/1.346, allocations: 0 / 1.363 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.203e-05/1.346, allocations: 3.875 kB / 1.363 GB, free: 32.82 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.0007898/1.347, allocations: 489.9 kB / 1.363 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/1.347, allocations: 11.34 kB / 1.363 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/1.347, allocations: 28.8 kB / 1.363 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/1.348, allocations: 176.6 kB / 1.363 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/1.348, allocations: 7.312 kB / 1.363 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.542e-05/1.348, allocations: 30 kB / 1.363 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002112/1.348, allocations: 83.08 kB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/1.348, allocations: 187.9 kB / 1.364 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/1.348, allocations: 0 / 1.364 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/1.348, allocations: 21.88 kB / 1.364 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/1.348, allocations: 0 / 1.364 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008233/1.349, allocations: 0.4995 MB / 1.364 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003385/1.349, allocations: 269 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/1.35, allocations: 132.9 kB / 1.365 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/1.35, allocations: 0 / 1.365 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006446/1.35, allocations: 0.4916 MB / 1.365 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.833e-06/1.35, allocations: 0 / 1.365 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.000699/1.351, allocations: 434.8 kB / 1.365 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/1.351, allocations: 62.56 kB / 1.366 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/1.351, allocations: 117.9 kB / 1.366 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.029e-05/1.351, allocations: 48.31 kB / 1.366 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.173e-05/1.351, allocations: 103.1 kB / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.087e-05/1.351, allocations: 99.12 kB / 1.366 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/1.351, allocations: 7.906 kB / 1.366 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001159/1.352, allocations: 333.6 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/1.352, allocations: 158.3 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/1.352, allocations: 249.5 kB / 1.367 GB, free: 31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/1.353, allocations: 139.5 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/1.353, allocations: 7.891 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007919/1.354, allocations: 462.1 kB / 1.367 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.935e-05/1.354, allocations: 71.84 kB / 1.367 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/1.354, allocations: 3.844 kB / 1.367 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/1.354, allocations: 3.875 kB / 1.367 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.876e-05/1.354, allocations: 25.73 kB / 1.367 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/1.354, allocations: 14.19 kB / 1.367 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/1.354, allocations: 74.88 kB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.073e-05/1.354, allocations: 28.98 kB / 1.367 GB, free: 30.82 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.0001593/1.354, allocations: 151.3 kB / 1.368 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004988/1.355, allocations: 429 kB / 1.368 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/1.355, allocations: 30.08 kB / 1.368 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.539e-05/1.355, allocations: 31.38 kB / 1.368 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/1.355, allocations: 11.78 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/1.355, allocations: 4 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/1.355, allocations: 2.812 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008479/1.356, allocations: 0.795 MB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.356, allocations: 3.875 kB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.716e-05/1.356, allocations: 13.59 kB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/1.356, allocations: 6.875 kB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/1.356, allocations: 12.25 kB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/1.356, allocations: 0 / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/1.356, allocations: 3.875 kB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/1.357, allocations: 0.5301 MB / 1.369 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.366e-05/1.357, allocations: 96.52 kB / 1.369 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.804e-05/1.357, allocations: 20.14 kB / 1.369 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.877e-05/1.357, allocations: 7.5 kB / 1.369 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/1.357, allocations: 75.53 kB / 1.37 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.82e-05/1.357, allocations: 34.27 kB / 1.37 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.237e-05/1.357, allocations: 96.67 kB / 1.37 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.357, allocations: 0 / 1.37 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004136/1.358, allocations: 83.91 kB / 1.37 GB, free: 29.97 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.001004/1.359, allocations: 1.114 MB / 1.371 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006275/1.359, allocations: 0.5261 MB / 1.371 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/1.359, allocations: 4.188 kB / 1.371 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002841/1.359, allocations: 285.5 kB / 1.372 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/1.36, allocations: 20.3 kB / 1.372 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009211/1.361, allocations: 405.5 kB / 1.372 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/1.361, allocations: 0.7488 MB / 1.373 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001148/1.361, allocations: 32.44 kB / 1.373 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/1.361, allocations: 78.66 kB / 1.373 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.361, allocations: 0 / 1.373 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/1.39, allocations: 5.615 MB / 1.378 GB, free: 27.85 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002432/1.39, allocations: 141.8 kB / 1.378 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/3.06, allocations: 0 / 1.378 GB, free: 27.66 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat does not exist to compare? outputFormat=mat