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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.522/1.522, allocations: 252 MB / 268 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 175.3 kB / 327.6 MB, free: 2.086 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.988/1.988, allocations: 205.4 MB / 0.5786 GB, free: 20.09 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.0007797/0.0007798, allocations: 86.78 kB / 0.6832 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004385/0.0004387, allocations: 14.09 kB / 0.7976 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2475, allocations: 106.3 MB / 0.9015 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001487/0.249, allocations: 1.217 MB / 0.9027 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006179/0.2497, allocations: 348 kB / 0.903 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.642e-05/0.2498, allocations: 4 kB / 0.903 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.405e-05/0.2498, allocations: 7.922 kB / 0.903 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.838e-05/0.2499, allocations: 3.938 kB / 0.903 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.2502, allocations: 103.8 kB / 0.9031 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.2503, allocations: 239.3 kB / 0.9033 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.2505, allocations: 48.95 kB / 0.9034 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.2506, allocations: 91.78 kB / 0.9035 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.128e-05/0.2507, allocations: 83.69 kB / 0.9035 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.573e-05/0.2507, allocations: 12 kB / 0.9036 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.829e-05/0.2508, allocations: 19.94 kB / 0.9036 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.845e-05/0.2508, allocations: 55.84 kB / 0.9036 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.78e-05/0.2509, allocations: 109.4 kB / 0.9037 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.2511, allocations: 167.6 kB / 0.9039 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2511, allocations: 0 / 0.9039 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.124e-06/0.2511, allocations: 0 / 0.9039 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.87e-06/0.2511, allocations: 3.938 kB / 0.9039 GB, free: 60.79 MB / 0.6042 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.0006282/0.2517, allocations: 447.2 kB / 0.9043 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2518, allocations: 12.03 kB / 0.9043 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.2518, allocations: 28.73 kB / 0.9044 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.2522, allocations: 260 kB / 0.9046 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.975e-05/0.2522, allocations: 16.36 kB / 0.9046 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.922e-05/0.2523, allocations: 32.38 kB / 0.9047 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.2526, allocations: 210.6 kB / 0.9049 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2526, allocations: 192 / 0.9049 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.2526, allocations: 15.92 kB / 0.9049 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.2526, allocations: 4 kB / 0.9049 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.2528, allocations: 95.88 kB / 0.905 GB, free: 59.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007745/0.2536, allocations: 0.5314 MB / 0.9055 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006065/0.2542, allocations: 298.4 kB / 0.9058 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.2544, allocations: 116.8 kB / 0.9059 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.2544, allocations: 4 kB / 0.9059 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005414/0.2549, allocations: 479 kB / 0.9063 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=42): time 1.874e-06/0.255, allocations: 4 kB / 0.9063 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=42): time 0.0007573/0.2557, allocations: 0.5201 MB / 0.9069 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.2558, allocations: 63.41 kB / 0.9069 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.544e-05/0.2559, allocations: 163.2 kB / 0.9071 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.2559, allocations: 53.69 kB / 0.9071 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.616e-05/0.256, allocations: 112.9 kB / 0.9072 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.437e-05/0.256, allocations: 94.94 kB / 0.9073 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.95e-05/0.256, allocations: 8 kB / 0.9073 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.553e-05/0.2561, allocations: 342.8 kB / 0.9077 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.2563, allocations: 129.1 kB / 0.9078 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.2565, allocations: 223.6 kB / 0.908 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.2568, allocations: 259.5 kB / 0.9082 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.2568, allocations: 0 / 0.9082 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004839/0.2573, allocations: 386.6 kB / 0.9086 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2573, allocations: 7.938 kB / 0.9086 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2573, allocations: 8.297 kB / 0.9086 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.2573, allocations: 11.94 kB / 0.9086 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.287e-05/0.2574, allocations: 27.92 kB / 0.9087 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.2574, allocations: 7.938 kB / 0.9087 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.2576, allocations: 47.67 kB / 0.9087 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.2576, allocations: 16 kB / 0.9087 GB, free: 55.55 MB / 0.6042 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.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,tru.y,fal.y,$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,falCle.y,$PRE.truCle.u,truCle.u,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,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,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.falCle.clr,falCle.clr,$PRE.truCle.clr,truCle.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.2578, allocations: 171 kB / 0.9089 GB, free: 55.37 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.584e-05/0.2578, allocations: 23.72 kB / 0.9089 GB, free: 55.35 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.782e-05/0.2579, allocations: 38.31 kB / 0.9089 GB, free: 55.31 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2579, allocations: 11.92 kB / 0.909 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2579, allocations: 0 / 0.909 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2579, allocations: 0 / 0.909 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007527/0.2587, allocations: 0.8037 MB / 0.9097 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2587, allocations: 0 / 0.9097 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.82e-05/0.2587, allocations: 15.86 kB / 0.9098 GB, free: 54.42 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2587, allocations: 4 kB / 0.9098 GB, free: 54.42 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.2588, allocations: 19.97 kB / 0.9098 GB, free: 54.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2588, allocations: 0 / 0.9098 GB, free: 54.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2588, allocations: 4 kB / 0.9098 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005307/0.2593, allocations: 0.5144 MB / 0.9103 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.81e-05/0.2593, allocations: 92.86 kB / 0.9104 GB, free: 53.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.2594, allocations: 19.98 kB / 0.9104 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.2596, allocations: 27.97 kB / 0.9104 GB, free: 53.71 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.2597, allocations: 55.91 kB / 0.9105 GB, free: 53.65 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.2597, allocations: 27.98 kB / 0.9105 GB, free: 53.62 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.823e-05/0.2598, allocations: 118.4 kB / 0.9106 GB, free: 53.51 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2598, allocations: 0 / 0.9106 GB, free: 53.51 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002986/0.2601, allocations: 83.83 kB / 0.9107 GB, free: 53.43 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($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.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 14 (iniFalOut.u,iniTruOut.u,falCle.u,truCle.u,swiCleInp.u,swiCleInp.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001403/0.2603, allocations: 133.8 kB / 0.9108 GB, free: 53.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004701/0.2607, allocations: 355.4 kB / 0.9112 GB, free: 52.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2607, allocations: 4.062 kB / 0.9112 GB, free: 52.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002558/0.261, allocations: 219.9 kB / 0.9114 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.2614, allocations: 43.41 kB / 0.9114 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008165/0.2622, allocations: 0.5457 MB / 0.912 GB, free: 52.11 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001337/0.2623, allocations: 0.7335 MB / 0.9127 GB, free: 51.35 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2624, allocations: 39.42 kB / 0.9127 GB, free: 51.31 MB / 0.6042 GB Notification: Performance of SimCode: time 5.31e-07/0.2625, allocations: 0 / 0.9127 GB, free: 51.31 MB / 0.6042 GB Notification: Performance of Templates: time 0.004418/0.2669, allocations: 3.249 MB / 0.9159 GB, free: 48.06 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)