Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.259/2.259, allocations: 391.2 MB / 407 MB, free: 10.83 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 194.4 kB / 499.1 MB, free: 4.668 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 222.9 MB / 0.7948 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.001191, allocations: 111.7 kB / 0.9329 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 50.34 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3071, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002791/0.31, allocations: 0.8269 MB / 1.219 GB, free: 116.4 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001949/0.312, allocations: 1.359 MB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.3121, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 5.612e-05/0.3122, allocations: 3.938 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 9.479e-05/0.3123, allocations: 15.91 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009452/0.3133, allocations: 278.7 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.3136, allocations: 327.5 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3138, allocations: 53.08 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00023/0.3141, allocations: 135.8 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.3142, allocations: 127.6 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 6.068e-05/0.3143, allocations: 20 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.3144, allocations: 31.98 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 5.576e-05/0.3145, allocations: 63.84 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.3146, allocations: 119.6 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.3149, allocations: 321.3 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.3149, allocations: 4 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3149, allocations: 0 / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.315, allocations: 0 / 1.222 GB, free: 113.5 MB / 0.823 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.0007347/0.3157, allocations: 0.5375 MB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3157, allocations: 11.98 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.772e-05/0.3158, allocations: 24.83 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005805/0.3164, allocations: 260.2 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.3165, allocations: 24.38 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-05/0.3165, allocations: 36.36 kB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.3169, allocations: 219.6 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3169, allocations: 3.938 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.3169, allocations: 15.97 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.3169, allocations: 7.984 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.3171, allocations: 91.95 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006955/0.3178, allocations: 0.5703 MB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003676/0.3182, allocations: 254.6 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.3183, allocations: 124.8 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.3184, allocations: 4 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005175/0.3189, allocations: 498.4 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of pre-optimization done (n=44): time 1.624e-06/0.3189, allocations: 0 / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of matching and sorting (n=44): time 0.0008101/0.3197, allocations: 0.5762 MB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.3198, allocations: 59.34 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.02e-05/0.3199, allocations: 148.2 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/0.3199, allocations: 57.69 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.897e-05/0.32, allocations: 112.8 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.232e-05/0.3201, allocations: 106.9 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3202, allocations: 122.2 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.139e-05/0.3203, allocations: 338.8 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.3205, allocations: 173.1 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.3208, allocations: 285.8 kB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.3212, allocations: 365.1 kB / 1.227 GB, free: 108.3 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3212, allocations: 0 / 1.227 GB, free: 108.3 MB / 0.823 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006709/0.3219, allocations: 0.5643 MB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.3219, allocations: 67.39 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3219, allocations: 0 / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.322, allocations: 8 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.036e-05/0.322, allocations: 31.8 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.322, allocations: 8.359 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.3224, allocations: 87.62 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.3224, allocations: 27.98 kB / 1.227 GB, free: 107.4 MB / 0.823 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.0001429/0.3226, allocations: 179.5 kB / 1.227 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.3226, allocations: 27.8 kB / 1.227 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.29e-05/0.3227, allocations: 30.31 kB / 1.228 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3227, allocations: 11.94 kB / 1.228 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3228, allocations: 4 kB / 1.228 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3228, allocations: 3.984 kB / 1.228 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007777/0.3235, allocations: 0.8416 MB / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3236, allocations: 0 / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.623e-05/0.3236, allocations: 15.92 kB / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3236, allocations: 7.938 kB / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.3236, allocations: 15.97 kB / 1.228 GB, free: 106.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.3237, allocations: 4 kB / 1.228 GB, free: 106.2 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3237, allocations: 0 / 1.228 GB, free: 106.2 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009047/0.3246, allocations: 1.271 MB / 1.23 GB, free: 104.9 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.988e-05/0.3246, allocations: 96.83 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.751e-05/0.3247, allocations: 19.98 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.804e-05/0.3248, allocations: 11.98 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3249, allocations: 55.92 kB / 1.23 GB, free: 104.7 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.523e-05/0.3249, allocations: 31.97 kB / 1.23 GB, free: 104.7 MB / 0.823 GB Notification: Performance of sorting global known variables: time 4.715e-05/0.325, allocations: 104.2 kB / 1.23 GB, free: 104.6 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.325, allocations: 0 / 1.23 GB, free: 104.6 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0004336/0.3254, allocations: 91.98 kB / 1.23 GB, free: 104.5 MB / 0.823 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.0002122/0.3256, allocations: 148.1 kB / 1.23 GB, free: 104.3 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0006087/0.3263, allocations: 0.557 MB / 1.231 GB, free: 103.8 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3263, allocations: 0 / 1.231 GB, free: 103.8 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.3265, allocations: 251.8 kB / 1.231 GB, free: 103.5 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.3269, allocations: 41.34 kB / 1.231 GB, free: 103.5 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008286/0.3277, allocations: 0.7057 MB / 1.232 GB, free: 102.7 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.3279, allocations: 0.7374 MB / 1.232 GB, free: 102 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 9.958e-05/0.328, allocations: 42.95 kB / 1.232 GB, free: 101.9 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.772e-05/0.3281, allocations: 39.42 kB / 1.232 GB, free: 101.9 MB / 0.823 GB Notification: Performance of SimCode: time 2.1e-07/0.3281, allocations: 0 / 1.232 GB, free: 101.9 MB / 0.823 GB Notification: Performance of Templates: time 0.007254/0.3354, allocations: 4.498 MB / 1.237 GB, free: 97.39 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)