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.984/1.984, allocations: 292.6 MB / 307.5 MB, free: 5.25 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.001106/0.001106, allocations: 187.7 kB / 377.1 MB, free: 1.543 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.781/1.781, allocations: 205.4 MB / 0.6366 GB, free: 8.617 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.001138/0.001139, allocations: 98.16 kB / 0.7509 GB, free: 63.31 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005992/0.0005991, allocations: 16 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3326, allocations: 116.3 MB / 0.9884 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.806/1.139, allocations: 139.5 MB / 1.125 GB, free: 35.27 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/1.139, allocations: 73.03 kB / 1.125 GB, free: 35.21 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01044/1.149, allocations: 3.969 MB / 1.129 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.948e-06/1.149, allocations: 3.422 kB / 1.129 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.103e-05/1.149, allocations: 4 kB / 1.129 GB, free: 32.49 MB / 0.7292 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.0006438/1.15, allocations: 493.1 kB / 1.129 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.187e-05/1.15, allocations: 16.02 kB / 1.129 GB, free: 31.96 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.562e-05/1.15, allocations: 45.45 kB / 1.129 GB, free: 31.92 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.122e-05/1.15, allocations: 27.81 kB / 1.129 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/1.15, allocations: 174.6 kB / 1.129 GB, free: 31.68 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.674e-05/1.151, allocations: 28.12 kB / 1.129 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/1.151, allocations: 31.97 kB / 1.129 GB, free: 31.63 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003727/1.151, allocations: 210.3 kB / 1.13 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/1.151, allocations: 0 / 1.13 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/1.151, allocations: 15.55 kB / 1.13 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/1.151, allocations: 4 kB / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/1.151, allocations: 97.06 kB / 1.13 GB, free: 31.39 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007745/1.152, allocations: 0.5489 MB / 1.13 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004187/1.152, allocations: 303.4 kB / 1.131 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/1.152, allocations: 8 kB / 1.131 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007112/1.153, allocations: 0.5076 MB / 1.131 GB, free: 30.3 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=48): time 1.543e-06/1.153, allocations: 0 / 1.131 GB, free: 30.3 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48): time 0.001015/1.154, allocations: 0.6251 MB / 1.132 GB, free: 29.74 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/1.154, allocations: 63.27 kB / 1.132 GB, free: 29.67 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/1.154, allocations: 125.2 kB / 1.132 GB, free: 29.55 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.126e-05/1.155, allocations: 57.12 kB / 1.132 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/1.155, allocations: 104.5 kB / 1.132 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/1.155, allocations: 102 kB / 1.132 GB, free: 29.29 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-05/1.155, allocations: 12 kB / 1.132 GB, free: 29.28 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001177/1.155, allocations: 345.9 kB / 1.132 GB, free: 28.95 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/1.155, allocations: 177.9 kB / 1.133 GB, free: 28.79 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000362/1.156, allocations: 267.2 kB / 1.133 GB, free: 28.53 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/1.156, allocations: 193 kB / 1.133 GB, free: 28.34 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/1.156, allocations: 352 / 1.133 GB, free: 28.34 MB / 0.7292 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007743/1.157, allocations: 0.566 MB / 1.134 GB, free: 27.79 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.167e-05/1.157, allocations: 70.25 kB / 1.134 GB, free: 27.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/1.157, allocations: 5.781 kB / 1.134 GB, free: 27.71 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/1.157, allocations: 4 kB / 1.134 GB, free: 27.71 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.511e-05/1.157, allocations: 27.8 kB / 1.134 GB, free: 27.68 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/1.157, allocations: 4.547 kB / 1.134 GB, free: 27.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000409/1.157, allocations: 89.78 kB / 1.134 GB, free: 27.61 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.995e-05/1.157, allocations: 24 kB / 1.134 GB, free: 27.59 MB / 0.7292 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.00018/1.157, allocations: 183.2 kB / 1.134 GB, free: 27.41 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/1.157, allocations: 27.77 kB / 1.134 GB, free: 27.38 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.065e-05/1.158, allocations: 30.97 kB / 1.134 GB, free: 27.36 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/1.158, allocations: 5.5 kB / 1.134 GB, free: 27.35 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/1.158, allocations: 0 / 1.134 GB, free: 27.35 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/1.158, allocations: 7.328 kB / 1.134 GB, free: 27.35 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/1.159, allocations: 0.8928 MB / 1.135 GB, free: 26.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/1.159, allocations: 0.5625 kB / 1.135 GB, free: 26.53 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.18e-05/1.159, allocations: 14.7 kB / 1.135 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/1.159, allocations: 8 kB / 1.135 GB, free: 26.51 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.281e-05/1.159, allocations: 20.11 kB / 1.135 GB, free: 26.5 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/1.159, allocations: 4.625 kB / 1.135 GB, free: 26.49 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/1.159, allocations: 0 / 1.135 GB, free: 26.49 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007154/1.16, allocations: 0.5754 MB / 1.136 GB, free: 25.95 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.129e-05/1.16, allocations: 94.14 kB / 1.136 GB, free: 25.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.315e-05/1.16, allocations: 23.14 kB / 1.136 GB, free: 25.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/1.16, allocations: 12.05 kB / 1.136 GB, free: 25.82 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/1.16, allocations: 87.84 kB / 1.136 GB, free: 25.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-05/1.16, allocations: 35.41 kB / 1.136 GB, free: 25.74 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.574e-05/1.16, allocations: 99.19 kB / 1.136 GB, free: 25.65 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.3e-07/1.16, allocations: 0 / 1.136 GB, free: 25.65 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004186/1.161, allocations: 103.8 kB / 1.136 GB, free: 25.55 MB / 0.7292 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.001077/1.162, allocations: 1.179 MB / 1.137 GB, free: 24.41 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007975/1.163, allocations: 0.5784 MB / 1.138 GB, free: 23.86 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/1.163, allocations: 0 / 1.138 GB, free: 23.86 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003453/1.163, allocations: 303.2 kB / 1.138 GB, free: 23.58 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/1.163, allocations: 28.5 kB / 1.138 GB, free: 23.56 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/1.165, allocations: 2.334 MB / 1.14 GB, free: 21.21 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/1.165, allocations: 0.7451 MB / 1.141 GB, free: 20.46 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001295/1.165, allocations: 32.14 kB / 1.141 GB, free: 20.44 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/1.165, allocations: 83.16 kB / 1.141 GB, free: 20.37 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/1.165, allocations: 0 / 1.141 GB, free: 20.37 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01893/1.184, allocations: 5.888 MB / 1.147 GB, free: 17.09 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001379/1.184, allocations: 185 kB / 1.147 GB, free: 16.84 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/3.025, allocations: 4.062 kB / 1.147 GB, free: 16.84 MB / 0.7292 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)