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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001979/0.001979, allocations: 103.7 kB / 16.29 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 187.9 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.94/1.94, allocations: 292.3 MB / 0.5495 GB, free: 17.49 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 71.91 kB / 0.6722 GB, free: 6.496 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3528, allocations: 114.6 MB / 0.7841 GB, free: 3.824 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.003116/0.3559, allocations: 0.776 MB / 0.7849 GB, free: 3.039 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002637/0.3586, allocations: 1.34 MB / 0.7862 GB, free: 1.684 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.3588, allocations: 4 kB / 0.7862 GB, free: 1.68 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 7.356e-05/0.3589, allocations: 11.81 kB / 0.7862 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001072/0.359, allocations: 15.84 kB / 0.7862 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.3602, allocations: 305.8 kB / 0.7865 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005305/0.3608, allocations: 379.3 kB / 0.7868 GB, free: 0.9883 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002661/0.361, allocations: 49.09 kB / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002513/0.3613, allocations: 155.7 kB / 0.787 GB, free: 0.7891 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.3616, allocations: 135.6 kB / 0.7872 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 8.313e-05/0.3617, allocations: 36 kB / 0.7872 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.3619, allocations: 55.98 kB / 0.7873 GB, free: 0.5664 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.709e-05/0.362, allocations: 63.86 kB / 0.7873 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.3621, allocations: 135.6 kB / 0.7874 GB, free: 380 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005207/0.3627, allocations: 343.3 kB / 0.7878 GB, free: 36 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.3627, allocations: 3.938 kB / 0.7878 GB, free: 32 kB / 0.6544 GB Notification: Performance of FrontEnd: time 3.266e-06/0.3627, allocations: 0 / 0.7878 GB, free: 32 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.44e-05/0.3627, allocations: 0 / 0.7878 GB, free: 32 kB / 0.6544 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.6941/1.057, allocations: 0.5357 MB / 0.7883 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/1.057, allocations: 7.875 kB / 0.7883 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/1.057, allocations: 30.8 kB / 0.7883 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005402/1.058, allocations: 250.1 kB / 0.7886 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/1.058, allocations: 27.92 kB / 0.7886 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.182e-05/1.058, allocations: 32.36 kB / 0.7886 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/1.058, allocations: 213.7 kB / 0.7888 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/1.058, allocations: 3.938 kB / 0.7888 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/1.058, allocations: 11.33 kB / 0.7889 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/1.058, allocations: 3.625 kB / 0.7889 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/1.058, allocations: 99.09 kB / 0.7889 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008322/1.059, allocations: 0.5679 MB / 0.7895 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/1.06, allocations: 257.6 kB / 0.7897 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/1.06, allocations: 119.1 kB / 0.7899 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/1.06, allocations: 0 / 0.7899 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000876/1.061, allocations: 0.4963 MB / 0.7903 GB, free: 48.03 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=44): time 2.274e-06/1.061, allocations: 0 / 0.7903 GB, free: 48.03 MB / 0.6544 GB Notification: Performance of matching and sorting (n=44): time 0.00109/1.062, allocations: 0.5645 MB / 0.7909 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/1.062, allocations: 59 kB / 0.791 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/1.062, allocations: 157.9 kB / 0.7911 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.953e-05/1.062, allocations: 58.64 kB / 0.7912 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/1.062, allocations: 110.4 kB / 0.7913 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/1.062, allocations: 95.14 kB / 0.7914 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002041/1.063, allocations: 126 kB / 0.7915 GB, free: 47.63 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001147/1.063, allocations: 338.6 kB / 0.7918 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/1.063, allocations: 170.5 kB / 0.792 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003649/1.064, allocations: 287.1 kB / 0.7922 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/1.064, allocations: 369.5 kB / 0.7926 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/1.064, allocations: 0 / 0.7926 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008593/1.065, allocations: 0.5663 MB / 0.7931 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.817e-05/1.065, allocations: 61.64 kB / 0.7932 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/1.065, allocations: 3.938 kB / 0.7932 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.072e-05/1.065, allocations: 6.844 kB / 0.7932 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.733e-05/1.065, allocations: 29.91 kB / 0.7932 GB, free: 46.85 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/1.065, allocations: 14 kB / 0.7933 GB, free: 46.85 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003849/1.066, allocations: 82.73 kB / 0.7933 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.349e-05/1.066, allocations: 27.81 kB / 0.7934 GB, free: 46.84 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 70 ($PRE.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,tru.y,fal.y,truCleTruIni.clr,$PRE.truCleTruIni.clr,truCleFalIni.clr,$PRE.truCleFalIni.clr,falCleTruIni.clr,$PRE.falCleTruIni.clr,falCleFalIni.clr,$PRE.falCleFalIni.clr,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp1.clr,$PRE.swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,swiCleInp.clr,$PRE.swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,truCleFalIni.y,truCleFalIni.u,$PRE.truCleFalIni.u,falCleFalIni.y,falCleFalIni.u,$PRE.falCleFalIni.u,truCleTruIni.y,truCleTruIni.u,$PRE.truCleTruIni.u,falCleTruIni.y,falCleTruIni.u,$PRE.falCleTruIni.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 2 * 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.0002161/1.066, allocations: 179.7 kB / 0.7935 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.321e-05/1.066, allocations: 25.75 kB / 0.7936 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/1.066, allocations: 34.5 kB / 0.7936 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/1.066, allocations: 9.578 kB / 0.7936 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/1.066, allocations: 0 / 0.7936 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/1.066, allocations: 4.938 kB / 0.7936 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/1.067, allocations: 0.8437 MB / 0.7944 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/1.067, allocations: 0 / 0.7944 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/1.067, allocations: 16.67 kB / 0.7944 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/1.067, allocations: 3.938 kB / 0.7944 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.505e-05/1.067, allocations: 24.23 kB / 0.7945 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/1.067, allocations: 0 / 0.7945 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.067, allocations: 0 / 0.7945 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/1.068, allocations: 0.5383 MB / 0.795 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/1.068, allocations: 99.61 kB / 0.7951 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.706e-05/1.068, allocations: 26.2 kB / 0.7951 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.589e-05/1.068, allocations: 15.41 kB / 0.7951 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/1.068, allocations: 51.7 kB / 0.7952 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.819e-05/1.068, allocations: 30.02 kB / 0.7952 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.429e-05/1.068, allocations: 98.98 kB / 0.7953 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.162e-06/1.068, allocations: 0 / 0.7953 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000463/1.069, allocations: 107.1 kB / 0.7954 GB, free: 46.05 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,falCleFalIni.u,falCleFalIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 14 (falCleFalIni.u,falCleTruIni.u,truCleTruIni.u,truCleFalIni.u,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,truCleFalIni.y,falCleFalIni.y,truCleTruIni.y,falCleTruIni.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * 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.0002723/1.069, allocations: 141.5 kB / 0.7955 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0009199/1.07, allocations: 0.5522 MB / 0.7961 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.07, allocations: 0 / 0.7961 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004585/1.071, allocations: 264.8 kB / 0.7963 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/1.071, allocations: 37.48 kB / 0.7964 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/1.072, allocations: 430.4 kB / 0.7968 GB, free: 45.51 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/1.072, allocations: 0.7336 MB / 0.7975 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001357/1.073, allocations: 39.7 kB / 0.7975 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/1.073, allocations: 41.66 kB / 0.7976 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of SimCode: time 8.61e-07/1.073, allocations: 0 / 0.7976 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of Templates: time 0.01366/1.086, allocations: 4.193 MB / 0.8017 GB, free: 44.6 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)