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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.839/1.839, allocations: 292.3 MB / 308.1 MB, free: 4.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002189/0.002189, allocations: 194.2 kB / 376.9 MB, free: 1.754 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.958/1.958, allocations: 205 MB / 0.6354 GB, free: 9.754 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000969/0.000969, allocations: 99.16 kB / 0.748 GB, free: 61.02 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009984/0.0009984, allocations: 59.91 kB / 0.8704 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2626, allocations: 114.5 MB / 0.9822 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.003502/0.2661, allocations: 0.847 MB / 0.9831 GB, free: 9.48 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002302/0.2685, allocations: 1.355 MB / 0.9844 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.2686, allocations: 0 / 0.9844 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 5.744e-05/0.2687, allocations: 7.875 kB / 0.9844 GB, free: 8.102 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 9.778e-05/0.2688, allocations: 11.92 kB / 0.9844 GB, free: 8.09 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008592/0.2697, allocations: 275.6 kB / 0.9847 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0004167/0.2701, allocations: 323.6 kB / 0.985 GB, free: 7.504 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.2703, allocations: 49.08 kB / 0.985 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.2705, allocations: 143.7 kB / 0.9852 GB, free: 7.316 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.2707, allocations: 127.6 kB / 0.9853 GB, free: 7.191 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 8.006e-05/0.2708, allocations: 20 kB / 0.9853 GB, free: 7.172 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.271, allocations: 35.98 kB / 0.9853 GB, free: 7.137 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 6.75e-05/0.271, allocations: 55.86 kB / 0.9854 GB, free: 7.082 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.2712, allocations: 119.6 kB / 0.9855 GB, free: 6.965 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0004144/0.2716, allocations: 323.4 kB / 0.9858 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2716, allocations: 0 / 0.9858 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2717, allocations: 0 / 0.9858 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.2717, allocations: 0 / 0.9858 GB, free: 6.648 MB / 0.7136 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.0009344/0.2726, allocations: 0.5492 MB / 0.9863 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.2727, allocations: 11.97 kB / 0.9864 GB, free: 6.023 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.2728, allocations: 28.73 kB / 0.9864 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000708/0.2735, allocations: 260.2 kB / 0.9866 GB, free: 5.703 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.2736, allocations: 20.36 kB / 0.9867 GB, free: 5.684 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.621e-05/0.2736, allocations: 36.38 kB / 0.9867 GB, free: 5.648 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.2741, allocations: 206 kB / 0.9869 GB, free: 5.441 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2741, allocations: 7.938 kB / 0.9869 GB, free: 5.434 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.2741, allocations: 15.97 kB / 0.9869 GB, free: 5.418 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.2742, allocations: 4 kB / 0.9869 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.2744, allocations: 95.94 kB / 0.987 GB, free: 5.32 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.2754, allocations: 0.5702 MB / 0.9876 GB, free: 4.699 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004519/0.2759, allocations: 262.5 kB / 0.9878 GB, free: 4.434 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.2761, allocations: 120.8 kB / 0.9879 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.2761, allocations: 4 kB / 0.9879 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007001/0.2768, allocations: 494.5 kB / 0.9884 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=44): time 1.934e-06/0.2769, allocations: 4 kB / 0.9884 GB, free: 3.809 MB / 0.7136 GB Notification: Performance of matching and sorting (n=44): time 0.0009398/0.2778, allocations: 0.5675 MB / 0.989 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.2779, allocations: 67.28 kB / 0.989 GB, free: 3.156 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.278, allocations: 152.7 kB / 0.9892 GB, free: 3 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.857e-05/0.2781, allocations: 57.69 kB / 0.9892 GB, free: 2.938 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.2781, allocations: 112.9 kB / 0.9893 GB, free: 2.824 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.843e-05/0.2782, allocations: 94.95 kB / 0.9894 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.2784, allocations: 126.1 kB / 0.9895 GB, free: 2.602 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.2785, allocations: 342.8 kB / 0.9899 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.2788, allocations: 173.1 kB / 0.99 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.2792, allocations: 277.8 kB / 0.9903 GB, free: 1.773 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004421/0.2797, allocations: 377.1 kB / 0.9907 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.2797, allocations: 0 / 0.9907 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008446/0.2805, allocations: 0.5644 MB / 0.9912 GB, free: 0.7734 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/0.2806, allocations: 71.33 kB / 0.9913 GB, free: 0.6914 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.2806, allocations: 3.984 kB / 0.9913 GB, free: 0.6875 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.2806, allocations: 8 kB / 0.9913 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.576e-05/0.2807, allocations: 31.8 kB / 0.9913 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.2807, allocations: 4 kB / 0.9913 GB, free: 0.6445 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003801/0.2811, allocations: 87.91 kB / 0.9914 GB, free: 0.5586 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/0.2812, allocations: 27.98 kB / 0.9914 GB, free: 0.5312 MB / 0.7136 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.0001836/0.2814, allocations: 174.9 kB / 0.9916 GB, free: 360 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.513e-05/0.2814, allocations: 27.72 kB / 0.9916 GB, free: 332 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.149e-05/0.2815, allocations: 34.31 kB / 0.9917 GB, free: 296 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.2815, allocations: 15.94 kB / 0.9917 GB, free: 280 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2815, allocations: 0 / 0.9917 GB, free: 280 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.2816, allocations: 3.984 kB / 0.9917 GB, free: 276 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.2826, allocations: 0.8354 MB / 0.9925 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.2826, allocations: 0 / 0.9925 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.615e-05/0.2827, allocations: 15.91 kB / 0.9925 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.2827, allocations: 7.938 kB / 0.9925 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.2827, allocations: 19.97 kB / 0.9925 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.2827, allocations: 4 kB / 0.9925 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.2827, allocations: 3.938 kB / 0.9925 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.284, allocations: 1.267 MB / 0.9938 GB, free: 14 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.2841, allocations: 100.8 kB / 0.9939 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.471e-05/0.2842, allocations: 23.98 kB / 0.9939 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.936e-05/0.2843, allocations: 15.92 kB / 0.9939 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.2844, allocations: 55.92 kB / 0.994 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.2845, allocations: 31.97 kB / 0.994 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 6.137e-05/0.2845, allocations: 95.27 kB / 0.9941 GB, free: 13.67 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.21e-07/0.2845, allocations: 0 / 0.9941 GB, free: 13.67 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005086/0.285, allocations: 95.98 kB / 0.9942 GB, free: 13.57 MB / 0.7292 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.0002431/0.2853, allocations: 147.1 kB / 0.9943 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0008176/0.2861, allocations: 0.5525 MB / 0.9949 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2861, allocations: 0.75 kB / 0.9949 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.2865, allocations: 251.8 kB / 0.9951 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.2868, allocations: 50.25 kB / 0.9952 GB, free: 12.55 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.2879, allocations: 0.7007 MB / 0.9958 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.2882, allocations: 0.7413 MB / 0.9966 GB, free: 11.04 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001203/0.2883, allocations: 38.95 kB / 0.9966 GB, free: 11.01 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.2885, allocations: 39.42 kB / 0.9966 GB, free: 10.97 MB / 0.7292 GB Notification: Performance of SimCode: time 7.51e-07/0.2885, allocations: 0 / 0.9966 GB, free: 10.97 MB / 0.7292 GB Notification: Performance of Templates: time 0.00906/0.2975, allocations: 4.499 MB / 1.001 GB, free: 6.48 MB / 0.7292 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)