Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.595/1.595, allocations: 249.5 MB / 257 MB, free: 6.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009638/0.0009636, allocations: 180.8 kB / 316.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.3 MB / 0.5671 GB, free: 15.93 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001045/0.001044, allocations: 80.55 kB / 0.6714 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.557e-05/3.532e-05, allocations: 11.98 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.212, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7802/0.9923, allocations: 132.2 MB / 1.014 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.9926, allocations: 73.52 kB / 1.014 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005296/0.9979, allocations: 1.958 MB / 1.016 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.603e-06/0.9979, allocations: 0 / 1.016 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.715e-06/0.9979, allocations: 0 / 1.016 GB, free: 3.418 MB / 0.6355 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.00068/0.9986, allocations: 445.2 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.9987, allocations: 12.03 kB / 1.017 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.9987, allocations: 19.89 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.9989, allocations: 182.9 kB / 1.017 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.9989, allocations: 15.11 kB / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.607e-05/0.999, allocations: 19.98 kB / 1.017 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001858/0.9992, allocations: 85.05 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.9995, allocations: 180.7 kB / 1.017 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.9995, allocations: 3.938 kB / 1.017 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.534e-05/0.9996, allocations: 14.7 kB / 1.017 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.9996, allocations: 4 kB / 1.017 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008722/1, allocations: 0.4986 MB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005925/1.001, allocations: 313.6 kB / 1.018 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/1.001, allocations: 130.5 kB / 1.018 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/1.001, allocations: 4 kB / 1.018 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000623/1.002, allocations: 480.9 kB / 1.019 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 1.624e-06/1.002, allocations: 0 / 1.019 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0006195/1.003, allocations: 406.9 kB / 1.019 GB, free: 0.9922 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/1.003, allocations: 63.41 kB / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/1.003, allocations: 134.7 kB / 1.019 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/1.003, allocations: 45.5 kB / 1.019 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.238e-05/1.003, allocations: 96.86 kB / 1.019 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.63e-05/1.003, allocations: 102 kB / 1.02 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.605e-05/1.003, allocations: 0 / 1.02 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001164/1.003, allocations: 334.4 kB / 1.02 GB, free: 256 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/1.003, allocations: 113.9 kB / 1.02 GB, free: 192 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/1.003, allocations: 195 kB / 1.02 GB, free: 24 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/1.004, allocations: 83.81 kB / 1.02 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.004, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004188/1.004, allocations: 318.1 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/1.004, allocations: 8 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/1.004, allocations: 7.953 kB / 1.021 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/1.004, allocations: 4 kB / 1.021 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.551e-05/1.004, allocations: 27.98 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/1.004, allocations: 8.219 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/1.004, allocations: 15.98 kB / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/1.004, allocations: 19.75 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 66 ($PRE.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,$PRE.falCle.clr,falCle.clr,falCle.y,$PRE.truCle.u,truCle.u,$PRE.truCle.clr,truCle.clr,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.clr,iniFalOut.clr,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,$PRE.iniTruOut.clr,iniTruOut.clr,iniTruOut.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.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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.0001316/1.004, allocations: 149.5 kB / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005027/1.005, allocations: 400.5 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/1.005, allocations: 31.75 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.873e-05/1.005, allocations: 28.94 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/1.005, allocations: 4 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.005, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/1.005, allocations: 7.984 kB / 1.021 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008779/1.006, allocations: 0.7652 MB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/1.006, allocations: 3.953 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.385e-05/1.006, allocations: 11.88 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/1.006, allocations: 4 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/1.006, allocations: 19.78 kB / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/1.006, allocations: 4 kB / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.006, allocations: 0 / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006017/1.007, allocations: 0.4975 MB / 1.022 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.384e-05/1.007, allocations: 100.9 kB / 1.023 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/1.007, allocations: 19.48 kB / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/1.007, allocations: 15.98 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/1.007, allocations: 81.83 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/1.007, allocations: 37.84 kB / 1.023 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.55e-05/1.007, allocations: 94.16 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/1.007, allocations: 0 / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003221/1.008, allocations: 67.42 kB / 1.023 GB, free: 13.64 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.clr,falCle.y,truCle.u,truCle.clr,truCle.y,iniFalOut.u,iniFalOut.clr,iniFalOut.y,iniTruOut.u,iniTruOut.clr,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 18 (iniTruOut.u,iniTruOut.clr,iniFalOut.u,iniFalOut.clr,truCle.u,truCle.clr,falCle.u,falCle.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.001026/1.009, allocations: 1.07 MB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000498/1.009, allocations: 336.3 kB / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.009, allocations: 0 / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000301/1.01, allocations: 246.9 kB / 1.024 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/1.01, allocations: 22.88 kB / 1.024 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/1.011, allocations: 427.1 kB / 1.025 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/1.011, allocations: 0.7413 MB / 1.026 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001073/1.011, allocations: 35.27 kB / 1.026 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/1.012, allocations: 79.52 kB / 1.026 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of SimCode: time 1.934e-06/1.012, allocations: 4 kB / 1.026 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.024/1.036, allocations: 4.764 MB / 1.03 GB, free: 6.293 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/1.036, allocations: 144.5 kB / 1.031 GB, free: 6.105 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/2.783, allocations: 1.125 kB / 1.031 GB, free: 6.105 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)