Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.23/2.23, allocations: 248.7 MB / 256.2 MB, free: 7.07 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.001416/0.001416, allocations: 182.7 kB / 315.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.3 MB / 0.5662 GB, free: 0.625 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001103, allocations: 96.39 kB / 0.6704 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.353e-05, allocations: 8 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2101, allocations: 106.3 MB / 0.8841 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8836/1.094, allocations: 132 MB / 1.013 GB, free: 7.102 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/1.094, allocations: 70.39 kB / 1.013 GB, free: 7.062 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008117/1.102, allocations: 1.957 MB / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.413e-06/1.102, allocations: 4 kB / 1.015 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.247e-06/1.102, allocations: 0 / 1.015 GB, free: 5.324 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.0008865/1.103, allocations: 437.8 kB / 1.015 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/1.103, allocations: 12.03 kB / 1.015 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.92e-05/1.103, allocations: 15.91 kB / 1.015 GB, free: 4.84 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/1.104, allocations: 188.8 kB / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/1.104, allocations: 8 kB / 1.016 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.84e-05/1.104, allocations: 19.98 kB / 1.016 GB, free: 4.594 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002897/1.104, allocations: 86.36 kB / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/1.105, allocations: 187.1 kB / 1.016 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/1.105, allocations: 0 / 1.016 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/1.105, allocations: 11.97 kB / 1.016 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/1.105, allocations: 3.984 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/1.106, allocations: 0.4943 MB / 1.016 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009985/1.107, allocations: 321.8 kB / 1.017 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002887/1.107, allocations: 127.5 kB / 1.017 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/1.107, allocations: 8.328 kB / 1.017 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009821/1.108, allocations: 481.8 kB / 1.017 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 2.805e-06/1.108, allocations: 4 kB / 1.017 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.001057/1.109, allocations: 401.3 kB / 1.018 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/1.109, allocations: 67.28 kB / 1.018 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/1.11, allocations: 124.6 kB / 1.018 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.794e-05/1.11, allocations: 41.33 kB / 1.018 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.063e-05/1.11, allocations: 113 kB / 1.018 GB, free: 2.562 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/1.11, allocations: 94.11 kB / 1.018 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/1.11, allocations: 0 / 1.018 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001406/1.11, allocations: 333.2 kB / 1.018 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/1.11, allocations: 113.9 kB / 1.019 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003763/1.111, allocations: 195 kB / 1.019 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/1.111, allocations: 84.3 kB / 1.019 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/1.111, allocations: 4 kB / 1.019 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007518/1.112, allocations: 318.5 kB / 1.019 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/1.112, allocations: 11.95 kB / 1.019 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/1.112, allocations: 224 / 1.019 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.765e-05/1.112, allocations: 8 kB / 1.019 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/1.112, allocations: 32.3 kB / 1.019 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/1.112, allocations: 8.781 kB / 1.019 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/1.112, allocations: 15.98 kB / 1.019 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.347e-05/1.112, allocations: 15 kB / 1.019 GB, free: 1.543 MB / 0.6355 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.0001979/1.113, allocations: 139.7 kB / 1.019 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009753/1.114, allocations: 410.7 kB / 1.02 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.731e-05/1.114, allocations: 27.77 kB / 1.02 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/1.114, allocations: 33.55 kB / 1.02 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/1.114, allocations: 4 kB / 1.02 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/1.114, allocations: 6.812 kB / 1.02 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.114, allocations: 0 / 1.02 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/1.115, allocations: 0.7696 MB / 1.021 GB, free: 400 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.115, allocations: 0 / 1.021 GB, free: 400 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.178e-05/1.115, allocations: 15.3 kB / 1.021 GB, free: 388 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/1.115, allocations: 4 kB / 1.021 GB, free: 384 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/1.115, allocations: 15.53 kB / 1.021 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/1.115, allocations: 0 / 1.021 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.115, allocations: 4 kB / 1.021 GB, free: 368 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009899/1.116, allocations: 0.5005 MB / 1.021 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.862e-05/1.117, allocations: 96.88 kB / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/1.117, allocations: 19.17 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/1.117, allocations: 19.97 kB / 1.021 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002357/1.117, allocations: 78.09 kB / 1.021 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.99e-05/1.117, allocations: 33.53 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.493e-05/1.117, allocations: 104.2 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.61e-07/1.117, allocations: 0 / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005113/1.118, allocations: 63.98 kB / 1.021 GB, free: 15.56 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.001387/1.119, allocations: 1.077 MB / 1.022 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0008348/1.12, allocations: 333.4 kB / 1.023 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.12, allocations: 0 / 1.023 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000464/1.121, allocations: 238.7 kB / 1.023 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/1.121, allocations: 20.09 kB / 1.023 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/1.123, allocations: 437.1 kB / 1.023 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/1.123, allocations: 0.7374 MB / 1.024 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001869/1.123, allocations: 39.27 kB / 1.024 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/1.124, allocations: 82.83 kB / 1.024 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of SimCode: time 9.31e-07/1.124, allocations: 4 kB / 1.024 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04081/1.164, allocations: 4.757 MB / 1.029 GB, free: 8.203 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003219/1.165, allocations: 143.9 kB / 1.029 GB, free: 8.008 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.648/3.812, allocations: 9.422 kB / 1.029 GB, free: 8 MB / 0.6511 GB