Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.782/1.782, allocations: 288.4 MB / 303.6 MB, free: 8.148 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.001233/0.001233, allocations: 168.5 kB / 372.3 MB, free: 10.15 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.969/1.969, allocations: 205.4 MB / 0.631 GB, free: 9.895 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009571/0.0009573, allocations: 86.31 kB / 0.7444 GB, free: 5.809 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003943, allocations: 12.81 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2738, allocations: 115.3 MB / 0.9802 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.0009215/0.2747, allocations: 482.3 kB / 0.9806 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002124/0.2769, allocations: 1.309 MB / 0.9819 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.508e-05/0.277, allocations: 4 kB / 0.9819 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.782e-05/0.277, allocations: 11.92 kB / 0.9819 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.977e-05/0.2771, allocations: 11.86 kB / 0.9819 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.2782, allocations: 263.7 kB / 0.9822 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000357/0.2785, allocations: 295.5 kB / 0.9825 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.2787, allocations: 52.86 kB / 0.9825 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.279, allocations: 127.8 kB / 0.9826 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.2792, allocations: 111.6 kB / 0.9827 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.133e-05/0.2793, allocations: 16 kB / 0.9827 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.2794, allocations: 31.98 kB / 0.9828 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.579e-05/0.2794, allocations: 51.86 kB / 0.9828 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.2796, allocations: 141.4 kB / 0.983 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.2799, allocations: 235.6 kB / 0.9832 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2799, allocations: 4 kB / 0.9832 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.164e-06/0.2799, allocations: 3.938 kB / 0.9832 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.2799, allocations: 0 / 0.9832 GB, free: 24.2 MB / 0.6198 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.0006317/0.2806, allocations: 478.5 kB / 0.9836 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2806, allocations: 8.031 kB / 0.9837 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.2807, allocations: 28.78 kB / 0.9837 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007839/0.2815, allocations: 268.2 kB / 0.9839 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.2816, allocations: 20.38 kB / 0.984 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-05/0.2817, allocations: 36.36 kB / 0.984 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004997/0.2822, allocations: 210 kB / 0.9842 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2823, allocations: 3.938 kB / 0.9842 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.687e-05/0.2823, allocations: 11.98 kB / 0.9842 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.2823, allocations: 7.938 kB / 0.9842 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.2826, allocations: 99.88 kB / 0.9843 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.2838, allocations: 0.5664 MB / 0.9849 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006576/0.2844, allocations: 254.6 kB / 0.9851 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.2847, allocations: 124.8 kB / 0.9852 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.2848, allocations: 0 / 0.9852 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009289/0.2857, allocations: 498.5 kB / 0.9857 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=44): time 3.487e-06/0.2857, allocations: 0 / 0.9857 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=44): time 0.001392/0.2871, allocations: 0.5674 MB / 0.9863 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.2872, allocations: 63.34 kB / 0.9863 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.2873, allocations: 155.4 kB / 0.9865 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.353e-05/0.2874, allocations: 57.69 kB / 0.9865 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.966e-05/0.2875, allocations: 108.9 kB / 0.9866 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.877e-05/0.2876, allocations: 98.84 kB / 0.9867 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-05/0.2876, allocations: 16 kB / 0.9867 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.855e-05/0.2877, allocations: 334.8 kB / 0.9871 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003979/0.2881, allocations: 177.1 kB / 0.9872 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.2886, allocations: 277.8 kB / 0.9875 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.2889, allocations: 369.1 kB / 0.9878 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2889, allocations: 0 / 0.9878 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000667/0.2896, allocations: 0.5487 MB / 0.9884 GB, free: 18.55 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.2897, allocations: 67.41 kB / 0.9884 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2897, allocations: 384 / 0.9884 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2897, allocations: 15.98 kB / 0.9885 GB, free: 18.46 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.329e-05/0.2898, allocations: 31.8 kB / 0.9885 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.2898, allocations: 4 kB / 0.9885 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/0.2902, allocations: 103.6 kB / 0.9886 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.2903, allocations: 24 kB / 0.9886 GB, free: 18.3 MB / 0.6198 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,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCleTruIni.u,falCleTruIni.u,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.latInp.y,latInp.y,$PRE.falCleFalIni.clr,falCleFalIni.clr,$PRE.falCleTruIni.clr,falCleTruIni.clr,$PRE.truCleFalIni.clr,truCleFalIni.clr,$PRE.truCleTruIni.clr,truCleTruIni.clr) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.2904, allocations: 182.9 kB / 0.9888 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.535e-05/0.2904, allocations: 27.7 kB / 0.9888 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.316e-05/0.2905, allocations: 38.31 kB / 0.9888 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2905, allocations: 11.88 kB / 0.9889 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2905, allocations: 0 / 0.9889 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2905, allocations: 3.984 kB / 0.9889 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007891/0.2913, allocations: 0.847 MB / 0.9897 GB, free: 17.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2913, allocations: 0 / 0.9897 GB, free: 17.13 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.2914, allocations: 11.92 kB / 0.9897 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.2914, allocations: 7.938 kB / 0.9897 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.2914, allocations: 19.97 kB / 0.9897 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2914, allocations: 4 kB / 0.9897 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2914, allocations: 0 / 0.9897 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005199/0.292, allocations: 0.5422 MB / 0.9903 GB, free: 16.53 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.592e-05/0.292, allocations: 100.8 kB / 0.9904 GB, free: 16.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.078e-05/0.2921, allocations: 19.98 kB / 0.9904 GB, free: 16.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.114e-05/0.2922, allocations: 11.98 kB / 0.9904 GB, free: 16.38 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.2923, allocations: 71.86 kB / 0.9905 GB, free: 16.31 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.2923, allocations: 31.97 kB / 0.9905 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.874e-05/0.2924, allocations: 104.3 kB / 0.9906 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.7e-07/0.2924, allocations: 0 / 0.9906 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000347/0.2927, allocations: 91.98 kB / 0.9907 GB, free: 16.09 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001696/0.2929, allocations: 147.1 kB / 0.9908 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006244/0.2935, allocations: 0.5447 MB / 0.9913 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2935, allocations: 0.75 kB / 0.9913 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.2938, allocations: 256.1 kB / 0.9916 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.2941, allocations: 48.02 kB / 0.9916 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006269/0.2948, allocations: 481.3 kB / 0.9921 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/0.2949, allocations: 0.7374 MB / 0.9928 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001235/0.2951, allocations: 34.95 kB / 0.9928 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.781e-05/0.2952, allocations: 39.42 kB / 0.9929 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.2952, allocations: 0 / 0.9929 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of Templates: time 0.006811/0.302, allocations: 4.039 MB / 0.9968 GB, free: 9.715 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)