Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.874/1.874, allocations: 289.7 MB / 302.2 MB, free: 2.16 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 186.4 kB / 371.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.1 MB / 0.6309 GB, free: 11.77 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008587/0.0008587, allocations: 92 kB / 0.745 GB, free: 54.47 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.137e-05/4.139e-05, allocations: 8 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3052, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.976/1.281, allocations: 139.5 MB / 1.116 GB, free: 44.4 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/1.282, allocations: 69.47 kB / 1.116 GB, free: 44.38 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01081/1.292, allocations: 3.952 MB / 1.12 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.976e-06/1.293, allocations: 4 kB / 1.12 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.061e-05/1.293, allocations: 4 kB / 1.12 GB, free: 42.18 MB / 0.7448 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.0005868/1.293, allocations: 486 kB / 1.12 GB, free: 41.7 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/1.293, allocations: 8.031 kB / 1.12 GB, free: 41.69 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.887e-05/1.293, allocations: 52.48 kB / 1.121 GB, free: 41.64 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.891e-05/1.293, allocations: 23.91 kB / 1.121 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/1.294, allocations: 179.1 kB / 1.121 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/1.294, allocations: 22.69 kB / 1.121 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.955e-05/1.294, allocations: 31.09 kB / 1.121 GB, free: 41.38 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/1.294, allocations: 212.3 kB / 1.121 GB, free: 41.26 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/1.294, allocations: 0 / 1.121 GB, free: 41.26 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/1.294, allocations: 18.31 kB / 1.121 GB, free: 41.25 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/1.294, allocations: 4 kB / 1.121 GB, free: 41.25 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/1.294, allocations: 94.75 kB / 1.121 GB, free: 41.19 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007208/1.295, allocations: 0.5323 MB / 1.122 GB, free: 40.84 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/1.295, allocations: 299.2 kB / 1.122 GB, free: 40.65 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/1.296, allocations: 139.8 kB / 1.122 GB, free: 40.57 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/1.296, allocations: 4.969 kB / 1.122 GB, free: 40.57 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006194/1.296, allocations: 0.5079 MB / 1.123 GB, free: 40.29 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 1.553e-06/1.296, allocations: 3.938 kB / 1.123 GB, free: 40.28 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.0007589/1.297, allocations: 480.3 kB / 1.123 GB, free: 39.97 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/1.297, allocations: 63.53 kB / 1.123 GB, free: 39.9 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.534e-05/1.297, allocations: 122.1 kB / 1.123 GB, free: 39.79 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.258e-05/1.297, allocations: 58.27 kB / 1.123 GB, free: 39.75 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.174e-05/1.297, allocations: 106.7 kB / 1.123 GB, free: 39.65 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.535e-05/1.297, allocations: 101.4 kB / 1.123 GB, free: 39.58 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/1.297, allocations: 13.31 kB / 1.123 GB, free: 39.57 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.314e-05/1.297, allocations: 337 kB / 1.124 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/1.298, allocations: 167.7 kB / 1.124 GB, free: 39.16 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000298/1.298, allocations: 266.2 kB / 1.124 GB, free: 38.95 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/1.298, allocations: 205 kB / 1.124 GB, free: 38.79 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/1.298, allocations: 0 / 1.124 GB, free: 38.79 MB / 0.7448 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007086/1.299, allocations: 0.5504 MB / 1.125 GB, free: 38.38 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.442e-05/1.299, allocations: 72.16 kB / 1.125 GB, free: 38.3 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/1.299, allocations: 0 / 1.125 GB, free: 38.3 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/1.299, allocations: 8 kB / 1.125 GB, free: 38.29 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.152e-05/1.299, allocations: 26.89 kB / 1.125 GB, free: 38.27 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/1.299, allocations: 7.422 kB / 1.125 GB, free: 38.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/1.3, allocations: 80.88 kB / 1.125 GB, free: 38.21 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/1.3, allocations: 26.97 kB / 1.125 GB, free: 38.2 MB / 0.7448 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.000129/1.3, allocations: 174.5 kB / 1.125 GB, free: 38.04 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.846e-05/1.3, allocations: 27.14 kB / 1.125 GB, free: 38.02 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.549e-05/1.3, allocations: 36.94 kB / 1.125 GB, free: 38.02 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/1.3, allocations: 4 kB / 1.125 GB, free: 38.01 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.3, allocations: 1.25 kB / 1.125 GB, free: 38.01 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/1.3, allocations: 3.469 kB / 1.125 GB, free: 38.01 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008691/1.301, allocations: 0.8862 MB / 1.126 GB, free: 37.37 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/1.301, allocations: 0 / 1.126 GB, free: 37.37 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.447e-05/1.301, allocations: 19.28 kB / 1.126 GB, free: 37.36 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/1.301, allocations: 0 / 1.126 GB, free: 37.36 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/1.301, allocations: 18.72 kB / 1.126 GB, free: 37.35 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.301, allocations: 8.75 kB / 1.126 GB, free: 37.34 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.301, allocations: 3.938 kB / 1.126 GB, free: 37.34 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005898/1.302, allocations: 0.5646 MB / 1.127 GB, free: 36.93 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.283e-05/1.302, allocations: 92.83 kB / 1.127 GB, free: 36.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.673e-05/1.302, allocations: 27.8 kB / 1.127 GB, free: 36.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.08e-05/1.302, allocations: 11.5 kB / 1.127 GB, free: 36.81 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/1.302, allocations: 80.88 kB / 1.127 GB, free: 36.78 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/1.302, allocations: 38.02 kB / 1.127 GB, free: 36.76 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.574e-05/1.302, allocations: 91.72 kB / 1.127 GB, free: 36.68 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/1.302, allocations: 0 / 1.127 GB, free: 36.68 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003562/1.302, allocations: 106.1 kB / 1.127 GB, free: 36.59 MB / 0.7448 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.0009991/1.303, allocations: 1.163 MB / 1.128 GB, free: 35.6 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007342/1.304, allocations: 0.5658 MB / 1.129 GB, free: 35.18 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/1.304, allocations: 0 / 1.129 GB, free: 35.18 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003153/1.304, allocations: 302.2 kB / 1.129 GB, free: 35 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/1.305, allocations: 28.44 kB / 1.129 GB, free: 34.99 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008614/1.306, allocations: 463 kB / 1.13 GB, free: 34.64 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001645/1.306, allocations: 0.7377 MB / 1.13 GB, free: 33.9 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001022/1.306, allocations: 37.12 kB / 1.13 GB, free: 33.88 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/1.306, allocations: 77.31 kB / 1.131 GB, free: 33.85 MB / 0.7448 GB Notification: Performance of SimCode: time 1.562e-06/1.306, allocations: 4 kB / 1.131 GB, free: 33.84 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/1.325, allocations: 6.083 MB / 1.136 GB, free: 30.43 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/1.325, allocations: 148.8 kB / 1.137 GB, free: 30.21 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/3.18, allocations: 2.812 kB / 1.137 GB, free: 30.21 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)