Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, 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.001451/0.001452, allocations: 187.3 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.603/1.603, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.852/1.852, allocations: 292.3 MB / 0.5489 GB, free: 12.76 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.001534/0.001534, allocations: 72.14 kB / 0.6723 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2938, allocations: 114.5 MB / 0.7841 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002463/0.2964, allocations: 0.8184 MB / 0.7849 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002034/0.2984, allocations: 1.2 MB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.296e-05/0.2985, allocations: 4 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.702e-05/0.2986, allocations: 7.875 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.2987, allocations: 11.86 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.2994, allocations: 155.3 kB / 0.7863 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002764/0.2997, allocations: 155.7 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.2999, allocations: 32.2 kB / 0.7865 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.3, allocations: 67.77 kB / 0.7865 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.3002, allocations: 59.8 kB / 0.7866 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.193e-05/0.3002, allocations: 12 kB / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.094e-05/0.3003, allocations: 31.92 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.09e-05/0.3003, allocations: 19.92 kB / 0.7866 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.535e-05/0.3004, allocations: 63.75 kB / 0.7867 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.3007, allocations: 143.6 kB / 0.7868 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3007, allocations: 0 / 0.7868 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3007, allocations: 4 kB / 0.7868 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.3007, allocations: 0 / 0.7868 GB, free: 9.984 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007697/0.3015, allocations: 440.9 kB / 0.7873 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.3015, allocations: 8.031 kB / 0.7873 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.986e-05/0.3016, allocations: 16.78 kB / 0.7873 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.3018, allocations: 184.2 kB / 0.7875 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.3018, allocations: 4.375 kB / 0.7875 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.3018, allocations: 20.36 kB / 0.7875 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.3021, allocations: 102.2 kB / 0.7876 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3022, allocations: 192 / 0.7876 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.3022, allocations: 7.938 kB / 0.7876 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.3022, allocations: 0 / 0.7876 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.3025, allocations: 83.91 kB / 0.7877 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006278/0.3031, allocations: 388.5 kB / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.3034, allocations: 90.64 kB / 0.7881 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.3036, allocations: 68.75 kB / 0.7882 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3036, allocations: 0 / 0.7882 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003299/0.304, allocations: 111.3 kB / 0.7883 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.304, allocations: 0 / 0.7883 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006514/0.3047, allocations: 213.3 kB / 0.7885 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.3047, allocations: 59.39 kB / 0.7886 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.3048, allocations: 129.1 kB / 0.7887 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/0.3049, allocations: 37.69 kB / 0.7887 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.593e-05/0.305, allocations: 100 kB / 0.7888 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.195e-05/0.305, allocations: 27.64 kB / 0.7888 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.188e-05/0.3051, allocations: 49.7 kB / 0.7889 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3053, allocations: 322.8 kB / 0.7892 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.3055, allocations: 79.94 kB / 0.7893 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002578/0.3058, allocations: 122.5 kB / 0.7894 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.3062, allocations: 177.9 kB / 0.7896 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3062, allocations: 7.938 kB / 0.7896 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005776/0.3068, allocations: 259 kB / 0.7898 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.3068, allocations: 41.69 kB / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3068, allocations: 0 / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3069, allocations: 4 kB / 0.7899 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.307, allocations: 24.11 kB / 0.7899 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.307, allocations: 3.938 kB / 0.7899 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.3073, allocations: 55.72 kB / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.3073, allocations: 8 kB / 0.7899 GB, free: 6.527 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.0001101/0.3074, allocations: 125.8 kB / 0.7901 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.3074, allocations: 11.91 kB / 0.7901 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004637/0.3079, allocations: 170 kB / 0.7902 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3079, allocations: 0 / 0.7902 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.3079, allocations: 8 kB / 0.7902 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3079, allocations: 3.984 kB / 0.7902 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006478/0.3086, allocations: 446.3 kB / 0.7907 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3086, allocations: 4 kB / 0.7907 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.306e-05/0.3087, allocations: 15.97 kB / 0.7907 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.3087, allocations: 4 kB / 0.7907 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.3087, allocations: 4 kB / 0.7907 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3087, allocations: 0 / 0.7907 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3088, allocations: 3.938 kB / 0.7907 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.3092, allocations: 260 kB / 0.7909 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.3093, allocations: 85.02 kB / 0.791 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.3093, allocations: 11.92 kB / 0.791 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.3094, allocations: 15.92 kB / 0.7911 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.135e-05/0.3095, allocations: 19.98 kB / 0.7911 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.3095, allocations: 3.984 kB / 0.7911 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.375e-05/0.3096, allocations: 106.4 kB / 0.7912 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3096, allocations: 0 / 0.7912 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002745/0.3099, allocations: 35.94 kB / 0.7912 GB, free: 5.117 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: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001878/0.3101, allocations: 99.25 kB / 0.7913 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005699/0.3106, allocations: 243.3 kB / 0.7915 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3107, allocations: 0 / 0.7915 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.3109, allocations: 67.89 kB / 0.7916 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.3112, allocations: 15.98 kB / 0.7916 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004519/0.3116, allocations: 210.7 kB / 0.7918 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.3119, allocations: 0.6924 MB / 0.7925 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.157e-05/0.312, allocations: 12.55 kB / 0.7925 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.747e-05/0.312, allocations: 11.44 kB / 0.7925 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of SimCode: time 2.01e-07/0.312, allocations: 0 / 0.7925 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of Templates: time 0.004941/0.317, allocations: 1.926 MB / 0.7944 GB, free: 1.797 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)