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.001159/0.001159, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 188 kB / 16.62 MB, free: 6.582 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.775/1.775, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.84/1.84, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001751/0.001751, allocations: 71.3 kB / 0.6723 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2692, allocations: 114.6 MB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002118/0.2713, allocations: 0.798 MB / 0.7849 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001672/0.273, allocations: 1.329 MB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.605e-05/0.2731, allocations: 4 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.661e-05/0.2732, allocations: 11.81 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.915e-05/0.2732, allocations: 11.86 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007586/0.274, allocations: 313.9 kB / 0.7865 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003941/0.2744, allocations: 375.3 kB / 0.7869 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.2746, allocations: 49.09 kB / 0.7869 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.2748, allocations: 151.8 kB / 0.7871 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.2749, allocations: 143.5 kB / 0.7872 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.316e-05/0.275, allocations: 36 kB / 0.7873 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.88e-05/0.2751, allocations: 51.98 kB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.181e-05/0.2752, allocations: 67.84 kB / 0.7874 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.2753, allocations: 135.6 kB / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.2757, allocations: 339 kB / 0.7878 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2757, allocations: 4 kB / 0.7878 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2757, allocations: 0 / 0.7878 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.2757, allocations: 0 / 0.7878 GB, free: 8.934 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.0008044/0.2765, allocations: 0.5414 MB / 0.7884 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2765, allocations: 8.031 kB / 0.7884 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.624e-05/0.2766, allocations: 28.75 kB / 0.7884 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005467/0.2772, allocations: 260.3 kB / 0.7886 GB, free: 8 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.569e-05/0.2772, allocations: 28.36 kB / 0.7887 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.183e-05/0.2773, allocations: 32.36 kB / 0.7887 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.2777, allocations: 216.8 kB / 0.7889 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.2777, allocations: 3.938 kB / 0.7889 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.2777, allocations: 11.98 kB / 0.7889 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.2778, allocations: 0 / 0.7889 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.2779, allocations: 103.9 kB / 0.789 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007656/0.2787, allocations: 0.5625 MB / 0.7896 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.2792, allocations: 258.6 kB / 0.7898 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.2794, allocations: 116.8 kB / 0.7899 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.2794, allocations: 0 / 0.7899 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00066/0.28, allocations: 498.5 kB / 0.7904 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=44): time 1.603e-06/0.2801, allocations: 0 / 0.7904 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of matching and sorting (n=44): time 0.0009397/0.281, allocations: 0.5752 MB / 0.791 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.2811, allocations: 67.3 kB / 0.791 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.2812, allocations: 153.2 kB / 0.7912 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.271e-05/0.2812, allocations: 57.69 kB / 0.7912 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.689e-05/0.2813, allocations: 112.9 kB / 0.7913 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.828e-05/0.2814, allocations: 102.9 kB / 0.7914 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.2816, allocations: 122.2 kB / 0.7916 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.2817, allocations: 338.8 kB / 0.7919 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.282, allocations: 169.1 kB / 0.792 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003397/0.2823, allocations: 289.7 kB / 0.7923 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.2827, allocations: 365.2 kB / 0.7927 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2828, allocations: 0 / 0.7927 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000788/0.2835, allocations: 0.5645 MB / 0.7932 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.168e-05/0.2836, allocations: 71.45 kB / 0.7933 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2836, allocations: 4 kB / 0.7933 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.2836, allocations: 4 kB / 0.7933 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.812e-05/0.2837, allocations: 31.8 kB / 0.7933 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.2837, allocations: 4 kB / 0.7933 GB, free: 2.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.2841, allocations: 83.62 kB / 0.7934 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/0.2841, allocations: 31.98 kB / 0.7934 GB, free: 2.832 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.0001667/0.2843, allocations: 178.9 kB / 0.7936 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/0.2844, allocations: 23.81 kB / 0.7936 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.841e-05/0.2845, allocations: 38.3 kB / 0.7937 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2845, allocations: 7.938 kB / 0.7937 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.2845, allocations: 0 / 0.7937 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2845, allocations: 4 kB / 0.7937 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009651/0.2855, allocations: 0.843 MB / 0.7945 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2855, allocations: 0 / 0.7945 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.498e-05/0.2855, allocations: 11.94 kB / 0.7945 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.2855, allocations: 7.938 kB / 0.7945 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/0.2856, allocations: 15.97 kB / 0.7945 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2856, allocations: 4 kB / 0.7945 GB, free: 1.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2856, allocations: 0 / 0.7945 GB, free: 1.641 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006778/0.2863, allocations: 0.5343 MB / 0.7951 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/0.2863, allocations: 104.7 kB / 0.7952 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.46e-05/0.2864, allocations: 23.98 kB / 0.7952 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.366e-05/0.2865, allocations: 11.98 kB / 0.7952 GB, free: 0.9336 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.2866, allocations: 51.91 kB / 0.7952 GB, free: 0.8828 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.2867, allocations: 27.98 kB / 0.7953 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.956e-05/0.2867, allocations: 107.2 kB / 0.7954 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.563e-06/0.2868, allocations: 0 / 0.7954 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000372/0.2871, allocations: 103.9 kB / 0.7955 GB, free: 0.6484 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.0002104/0.2873, allocations: 147.1 kB / 0.7956 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007158/0.2881, allocations: 0.546 MB / 0.7961 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2881, allocations: 128 / 0.7961 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.2884, allocations: 263.7 kB / 0.7964 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.2887, allocations: 35.97 kB / 0.7964 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006894/0.2894, allocations: 440.7 kB / 0.7968 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.2897, allocations: 0.7332 MB / 0.7976 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001031/0.2898, allocations: 38.95 kB / 0.7976 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.253e-05/0.2899, allocations: 39.42 kB / 0.7976 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of SimCode: time 4.3e-07/0.2899, allocations: 0 / 0.7976 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of Templates: time 0.007048/0.297, allocations: 4.206 MB / 0.8017 GB, free: 10.15 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)