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.491/1.491, allocations: 249.3 MB / 261.8 MB, free: 5.918 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.001026/0.001026, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.858/1.858, allocations: 205.1 MB / 0.572 GB, free: 10.63 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.0008845/0.0008843, allocations: 90.42 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 6.176e-05/6.214e-05, allocations: 4 kB / 0.788 GB, free: 96.98 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2318, allocations: 106.3 MB / 0.8919 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7991/1.031, allocations: 131.9 MB / 1.021 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/1.031, allocations: 75.62 kB / 1.021 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005642/1.037, allocations: 1.959 MB / 1.023 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.623e-06/1.037, allocations: 0 / 1.023 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.215e-06/1.037, allocations: 4 kB / 1.023 GB, free: 0.9922 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.0006487/1.038, allocations: 446.7 kB / 1.023 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/1.038, allocations: 16.03 kB / 1.023 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.46e-05/1.038, allocations: 49.16 kB / 1.023 GB, free: 472 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.027e-05/1.038, allocations: 19.91 kB / 1.023 GB, free: 452 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/1.038, allocations: 178.9 kB / 1.023 GB, free: 232 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/1.038, allocations: 18.69 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/1.038, allocations: 27.23 kB / 1.023 GB, free: 200 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/1.039, allocations: 195.7 kB / 1.024 GB, free: 44 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/1.039, allocations: 4 kB / 1.024 GB, free: 40 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.376e-05/1.039, allocations: 25.88 kB / 1.024 GB, free: 24 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/1.039, allocations: 0 / 1.024 GB, free: 24 kB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/1.039, allocations: 98.47 kB / 1.024 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009506/1.04, allocations: 0.5376 MB / 1.024 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007058/1.041, allocations: 339.2 kB / 1.025 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/1.041, allocations: 142.5 kB / 1.025 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/1.041, allocations: 7.891 kB / 1.025 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007531/1.042, allocations: 496 kB / 1.025 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 1.874e-06/1.042, allocations: 0 / 1.025 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.00087/1.042, allocations: 447 kB / 1.026 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/1.043, allocations: 55.41 kB / 1.026 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/1.043, allocations: 137.9 kB / 1.026 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.527e-05/1.043, allocations: 54.95 kB / 1.026 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/1.043, allocations: 105.3 kB / 1.026 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/1.043, allocations: 100.5 kB / 1.026 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/1.043, allocations: 14.12 kB / 1.026 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002314/1.043, allocations: 333.9 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/1.043, allocations: 119.4 kB / 1.026 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/1.044, allocations: 206.3 kB / 1.027 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/1.044, allocations: 96.64 kB / 1.027 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/1.044, allocations: 0 / 1.027 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006113/1.045, allocations: 371 kB / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/1.045, allocations: 4 kB / 1.027 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/1.045, allocations: 8.25 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/1.045, allocations: 4 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/1.045, allocations: 31.08 kB / 1.027 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.241e-05/1.045, allocations: 4 kB / 1.027 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/1.045, allocations: 34.39 kB / 1.027 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/1.045, allocations: 23.92 kB / 1.027 GB, free: 12.93 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.0002043/1.045, allocations: 158.2 kB / 1.027 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.782e-05/1.045, allocations: 35.38 kB / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/1.046, allocations: 32.62 kB / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/1.046, allocations: 4 kB / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/1.046, allocations: 0 / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/1.046, allocations: 7.984 kB / 1.027 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/1.047, allocations: 0.8537 MB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/1.047, allocations: 0 / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.171e-05/1.047, allocations: 7.5 kB / 1.028 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/1.047, allocations: 11.94 kB / 1.028 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/1.047, allocations: 19.66 kB / 1.028 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.047, allocations: 4 kB / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/1.047, allocations: 3.938 kB / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007826/1.048, allocations: 0.5289 MB / 1.029 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.849e-05/1.048, allocations: 92.88 kB / 1.029 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.042e-05/1.048, allocations: 29.67 kB / 1.029 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/1.048, allocations: 27.33 kB / 1.029 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/1.048, allocations: 82.95 kB / 1.029 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/1.048, allocations: 30.17 kB / 1.029 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.931e-05/1.048, allocations: 103.9 kB / 1.029 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.01e-07/1.048, allocations: 4 kB / 1.029 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003282/1.049, allocations: 79.55 kB / 1.029 GB, free: 11.13 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.001459/1.05, allocations: 1.12 MB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006868/1.051, allocations: 368.7 kB / 1.031 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/1.051, allocations: 0 / 1.031 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003866/1.051, allocations: 257.5 kB / 1.031 GB, free: 9.691 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/1.052, allocations: 27.33 kB / 1.031 GB, free: 9.672 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/1.053, allocations: 470 kB / 1.031 GB, free: 9.266 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005087/1.053, allocations: 0.7377 MB / 1.032 GB, free: 8.496 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001133/1.053, allocations: 38.97 kB / 1.032 GB, free: 8.461 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/1.054, allocations: 81.27 kB / 1.032 GB, free: 8.422 MB / 0.6511 GB Notification: Performance of SimCode: time 5.01e-07/1.054, allocations: 0 / 1.032 GB, free: 8.422 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/1.072, allocations: 5.172 MB / 1.037 GB, free: 3.367 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/1.072, allocations: 157.6 kB / 1.037 GB, free: 3.148 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.86, allocations: 4 kB / 1.037 GB, free: 3.145 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)