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.001695/0.001695, allocations: 111 kB / 15.99 MB, free: 6.363 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.001835/0.001835, allocations: 192.2 kB / 16.91 MB, free: 6.191 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.598/1.598, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.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.814/1.814, allocations: 292.3 MB / 0.5492 GB, free: 13.62 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.001373/0.001373, allocations: 67.91 kB / 0.6717 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2445, allocations: 114.6 MB / 0.7835 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002208/0.2467, allocations: 0.8416 MB / 0.7844 GB, free: 13.03 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001779/0.2485, allocations: 1.332 MB / 0.7857 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.788e-05/0.2486, allocations: 4 kB / 0.7857 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.975e-05/0.2487, allocations: 7.922 kB / 0.7857 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.49e-05/0.2488, allocations: 7.922 kB / 0.7857 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007774/0.2496, allocations: 285.6 kB / 0.7859 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003932/0.25, allocations: 371.6 kB / 0.7863 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.2501, allocations: 44.89 kB / 0.7863 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.2503, allocations: 159.7 kB / 0.7865 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.2505, allocations: 131.6 kB / 0.7866 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.663e-05/0.2506, allocations: 36 kB / 0.7867 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.2507, allocations: 47.98 kB / 0.7867 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.336e-05/0.2507, allocations: 71.84 kB / 0.7868 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.2509, allocations: 139.6 kB / 0.7869 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.2512, allocations: 235.7 kB / 0.7871 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2512, allocations: 0 / 0.7871 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.596e-06/0.2512, allocations: 4 kB / 0.7871 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.2512, allocations: 0 / 0.7871 GB, free: 10.17 MB / 0.6075 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.0007592/0.252, allocations: 0.5453 MB / 0.7877 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.252, allocations: 12.03 kB / 0.7877 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.743e-05/0.2521, allocations: 24.75 kB / 0.7877 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006169/0.2528, allocations: 260.2 kB / 0.7879 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.2528, allocations: 24.36 kB / 0.788 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.302e-05/0.2529, allocations: 36.36 kB / 0.788 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.2533, allocations: 213.9 kB / 0.7882 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.2533, allocations: 3.938 kB / 0.7882 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.2533, allocations: 15.98 kB / 0.7882 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2533, allocations: 4 kB / 0.7882 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.2536, allocations: 99.88 kB / 0.7883 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008698/0.2544, allocations: 0.5664 MB / 0.7889 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004398/0.2549, allocations: 258.6 kB / 0.7891 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.2551, allocations: 112.8 kB / 0.7892 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.2551, allocations: 4 kB / 0.7892 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007581/0.2559, allocations: 0.4907 MB / 0.7897 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=44): time 2.064e-06/0.2559, allocations: 3.938 kB / 0.7897 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of matching and sorting (n=44): time 0.0009686/0.2568, allocations: 0.5713 MB / 0.7903 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.2569, allocations: 67.3 kB / 0.7903 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.257, allocations: 149.7 kB / 0.7905 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.739e-05/0.2571, allocations: 57.69 kB / 0.7905 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.2572, allocations: 116.8 kB / 0.7907 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.726e-05/0.2573, allocations: 94.94 kB / 0.7907 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.2575, allocations: 122.2 kB / 0.7909 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.2576, allocations: 338.8 kB / 0.7912 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002948/0.2579, allocations: 177.1 kB / 0.7913 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.2583, allocations: 277.8 kB / 0.7916 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/0.2588, allocations: 369.1 kB / 0.792 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.2588, allocations: 0 / 0.792 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008389/0.2596, allocations: 0.5722 MB / 0.7925 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.716e-05/0.2597, allocations: 65.91 kB / 0.7926 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2597, allocations: 4 kB / 0.7926 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.2597, allocations: 8 kB / 0.7926 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.101e-05/0.2598, allocations: 31.8 kB / 0.7926 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.2598, allocations: 7.984 kB / 0.7926 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.2602, allocations: 79.78 kB / 0.7927 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.88e-05/0.2603, allocations: 28 kB / 0.7927 GB, free: 4.062 MB / 0.6075 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.0001918/0.2605, allocations: 174.9 kB / 0.7929 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.777e-05/0.2605, allocations: 27.8 kB / 0.7929 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.067e-05/0.2606, allocations: 30.31 kB / 0.793 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.2606, allocations: 7.938 kB / 0.793 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.2606, allocations: 4 kB / 0.793 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.2606, allocations: 7.984 kB / 0.793 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.2617, allocations: 0.843 MB / 0.7938 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2617, allocations: 4 kB / 0.7938 GB, free: 2.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.472e-05/0.2617, allocations: 15.92 kB / 0.7938 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.2617, allocations: 7.938 kB / 0.7938 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.657e-05/0.2618, allocations: 19.97 kB / 0.7939 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2618, allocations: 4 kB / 0.7939 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2618, allocations: 0 / 0.7939 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006907/0.2625, allocations: 0.5226 MB / 0.7944 GB, free: 2.316 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.235e-05/0.2626, allocations: 108.7 kB / 0.7945 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.061e-05/0.2626, allocations: 31.92 kB / 0.7945 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.775e-05/0.2627, allocations: 11.98 kB / 0.7945 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.2629, allocations: 51.92 kB / 0.7946 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.814e-05/0.2629, allocations: 35.95 kB / 0.7946 GB, free: 2.062 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.592e-05/0.263, allocations: 99.27 kB / 0.7947 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.263, allocations: 0 / 0.7947 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003938/0.2634, allocations: 95.98 kB / 0.7948 GB, free: 1.871 MB / 0.6075 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.0002381/0.2636, allocations: 143.2 kB / 0.7949 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0008729/0.2645, allocations: 0.5687 MB / 0.7955 GB, free: 1.133 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2645, allocations: 0 / 0.7955 GB, free: 1.133 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.2649, allocations: 263.7 kB / 0.7957 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.2652, allocations: 40.72 kB / 0.7958 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008169/0.2661, allocations: 0.5024 MB / 0.7963 GB, free: 304 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.2664, allocations: 0.7332 MB / 0.797 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.2665, allocations: 43.42 kB / 0.797 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2665, allocations: 4 kB / 0.797 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of Templates: time 0.005996/0.2725, allocations: 3.732 MB / 0.8007 GB, free: 11.77 MB / 0.6231 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)