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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001307/0.001307, allocations: 180.8 kB / 487.4 MB, free: 5.062 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.668/1.668, allocations: 221.5 MB / 0.7824 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.00126, allocations: 102 kB / 0.9219 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.776e-05/1.778e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.291, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.05/1.341, allocations: 149.1 MB / 1.352 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/1.341, allocations: 68.86 kB / 1.352 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01244/1.353, allocations: 3.949 MB / 1.356 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.004e-06/1.353, allocations: 0 / 1.356 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.002e-05/1.353, allocations: 3.938 kB / 1.356 GB, free: 33.77 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.0006419/1.354, allocations: 480.2 kB / 1.356 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/1.354, allocations: 12.3 kB / 1.356 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.353e-05/1.354, allocations: 28.67 kB / 1.356 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/1.354, allocations: 175.8 kB / 1.356 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/1.354, allocations: 21.72 kB / 1.356 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.043e-05/1.354, allocations: 26.66 kB / 1.356 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001923/1.355, allocations: 87.92 kB / 1.356 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003228/1.355, allocations: 188.2 kB / 1.357 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/1.355, allocations: 0 / 1.357 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/1.355, allocations: 16.5 kB / 1.357 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/1.355, allocations: 7.766 kB / 1.357 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006708/1.356, allocations: 0.4945 MB / 1.357 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/1.356, allocations: 272 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/1.356, allocations: 139.6 kB / 1.357 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/1.356, allocations: 0 / 1.357 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005985/1.357, allocations: 499.4 kB / 1.358 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.693e-06/1.357, allocations: 0 / 1.358 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006044/1.357, allocations: 438 kB / 1.358 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/1.358, allocations: 55.75 kB / 1.358 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/1.358, allocations: 120.5 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.107e-05/1.358, allocations: 47.66 kB / 1.359 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/1.358, allocations: 105.3 kB / 1.359 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.254e-05/1.358, allocations: 101.7 kB / 1.359 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/1.358, allocations: 7.844 kB / 1.359 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001237/1.358, allocations: 338.6 kB / 1.359 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/1.358, allocations: 151.9 kB / 1.359 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002666/1.359, allocations: 252 kB / 1.359 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/1.359, allocations: 135.8 kB / 1.36 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/1.359, allocations: 0 / 1.36 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007444/1.36, allocations: 464.9 kB / 1.36 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.557e-05/1.36, allocations: 70.95 kB / 1.36 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/1.36, allocations: 3.875 kB / 1.36 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/1.36, allocations: 3.969 kB / 1.36 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.2e-05/1.36, allocations: 25.22 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/1.36, allocations: 14.94 kB / 1.36 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/1.36, allocations: 77.2 kB / 1.36 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.014e-05/1.36, allocations: 31.17 kB / 1.36 GB, free: 31.75 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.0001422/1.36, allocations: 142.7 kB / 1.36 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005182/1.361, allocations: 441.5 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/1.361, allocations: 25.03 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.795e-05/1.361, allocations: 27.25 kB / 1.361 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/1.361, allocations: 7.844 kB / 1.361 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/1.361, allocations: 0 / 1.361 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/1.361, allocations: 7.312 kB / 1.361 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008045/1.362, allocations: 0.8057 MB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/1.362, allocations: 0 / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.758e-05/1.362, allocations: 13.11 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/1.362, allocations: 3.969 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/1.362, allocations: 19.72 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/1.362, allocations: 3.844 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.362, allocations: 0 / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000548/1.363, allocations: 0.5237 MB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.961e-05/1.363, allocations: 98.03 kB / 1.362 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.61e-05/1.363, allocations: 18.48 kB / 1.362 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.511e-05/1.363, allocations: 7.469 kB / 1.362 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/1.363, allocations: 81.62 kB / 1.362 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.155e-05/1.363, allocations: 30.58 kB / 1.362 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.93e-05/1.363, allocations: 95.05 kB / 1.363 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.363, allocations: 0 / 1.363 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003774/1.363, allocations: 85.53 kB / 1.363 GB, free: 30.9 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.0009977/1.364, allocations: 1.112 MB / 1.364 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006019/1.365, allocations: 0.5339 MB / 1.364 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.365, allocations: 0.625 kB / 1.364 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002535/1.365, allocations: 286.2 kB / 1.365 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/1.366, allocations: 21.11 kB / 1.365 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008194/1.366, allocations: 402.9 kB / 1.365 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/1.367, allocations: 0.743 MB / 1.366 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001034/1.367, allocations: 36.81 kB / 1.366 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/1.367, allocations: 77.73 kB / 1.366 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.8e-07/1.367, allocations: 3.875 kB / 1.366 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/1.391, allocations: 5.608 MB / 1.371 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/1.391, allocations: 133.3 kB / 1.371 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/3.295, allocations: 3.938 kB / 1.371 GB, free: 28.6 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat does not exist to compare? outputFormat=mat