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/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.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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.902/1.902, allocations: 292.3 MB / 308.1 MB, free: 4.285 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.001285/0.001285, allocations: 194 kB / 376.9 MB, free: 1.793 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.948/1.948, allocations: 205 MB / 0.6353 GB, free: 9.762 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.001229/0.001229, allocations: 103.6 kB / 0.748 GB, free: 61.18 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001173, allocations: 55.92 kB / 0.8704 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.33, allocations: 114.5 MB / 0.9822 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002958/0.333, allocations: 0.8798 MB / 0.9831 GB, free: 9.473 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002074/0.3351, allocations: 1.215 MB / 0.9843 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.247e-05/0.3352, allocations: 3.938 kB / 0.9843 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 4.32e-05/0.3353, allocations: 3.938 kB / 0.9843 GB, free: 8.234 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.3354, allocations: 15.91 kB / 0.9843 GB, free: 8.219 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006382/0.3361, allocations: 119.8 kB / 0.9844 GB, free: 8.102 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002075/0.3363, allocations: 143.7 kB / 0.9846 GB, free: 7.961 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.3364, allocations: 28.16 kB / 0.9846 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.3366, allocations: 55.88 kB / 0.9846 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.3367, allocations: 51.81 kB / 0.9847 GB, free: 7.828 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.3367, allocations: 8 kB / 0.9847 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.3368, allocations: 27.92 kB / 0.9847 GB, free: 7.793 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 3.859e-05/0.3369, allocations: 19.91 kB / 0.9847 GB, free: 7.773 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 9.237e-05/0.337, allocations: 47.78 kB / 0.9848 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.3372, allocations: 143.8 kB / 0.9849 GB, free: 7.586 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3373, allocations: 0 / 0.9849 GB, free: 7.586 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3373, allocations: 4 kB / 0.9849 GB, free: 7.582 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.3373, allocations: 0 / 0.9849 GB, free: 7.582 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008636/0.3382, allocations: 444.9 kB / 0.9853 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3382, allocations: 8.031 kB / 0.9854 GB, free: 7.082 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.348e-05/0.3383, allocations: 16.84 kB / 0.9854 GB, free: 7.066 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.3385, allocations: 180.2 kB / 0.9855 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.3385, allocations: 8.375 kB / 0.9856 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.927e-05/0.3385, allocations: 8.375 kB / 0.9856 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003251/0.3389, allocations: 106.1 kB / 0.9857 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3389, allocations: 192 / 0.9857 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.3389, allocations: 3.938 kB / 0.9857 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3389, allocations: 3.984 kB / 0.9857 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.3393, allocations: 87.91 kB / 0.9858 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007115/0.34, allocations: 396.4 kB / 0.9861 GB, free: 6.195 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.3403, allocations: 90.66 kB / 0.9862 GB, free: 6.098 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001807/0.3405, allocations: 56.81 kB / 0.9863 GB, free: 6.039 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.3405, allocations: 3.938 kB / 0.9863 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.3409, allocations: 119.3 kB / 0.9864 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.3409, allocations: 4 kB / 0.9864 GB, free: 5.902 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0007017/0.3416, allocations: 205.7 kB / 0.9866 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.3417, allocations: 55.41 kB / 0.9866 GB, free: 5.629 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.3418, allocations: 133.7 kB / 0.9868 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.3419, allocations: 37.7 kB / 0.9868 GB, free: 5.445 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.238e-05/0.342, allocations: 96.12 kB / 0.9869 GB, free: 5.348 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.752e-05/0.342, allocations: 27.56 kB / 0.9869 GB, free: 5.32 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.3421, allocations: 49.69 kB / 0.987 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.3423, allocations: 330.7 kB / 0.9873 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.3426, allocations: 75.94 kB / 0.9874 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.3429, allocations: 114.5 kB / 0.9875 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004317/0.3433, allocations: 186 kB / 0.9876 GB, free: 4.531 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3433, allocations: 0 / 0.9876 GB, free: 4.531 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006867/0.344, allocations: 267 kB / 0.9879 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.536e-05/0.3441, allocations: 44.02 kB / 0.9879 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3441, allocations: 4 kB / 0.9879 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.3441, allocations: 0 / 0.9879 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.3443, allocations: 23.97 kB / 0.988 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.3443, allocations: 0 / 0.988 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.3445, allocations: 47.8 kB / 0.988 GB, free: 4.137 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.3446, allocations: 15.92 kB / 0.988 GB, free: 4.121 MB / 0.7136 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.0001436/0.3447, allocations: 133.7 kB / 0.9882 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.3448, allocations: 7.906 kB / 0.9882 GB, free: 3.973 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004888/0.3453, allocations: 174 kB / 0.9883 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3453, allocations: 4 kB / 0.9883 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.3453, allocations: 0 / 0.9883 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3453, allocations: 4 kB / 0.9883 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006895/0.346, allocations: 446.3 kB / 0.9888 GB, free: 3.293 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.346, allocations: 0 / 0.9888 GB, free: 3.293 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.3461, allocations: 19.92 kB / 0.9888 GB, free: 3.273 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.3461, allocations: 7.984 kB / 0.9888 GB, free: 3.266 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.3462, allocations: 4 kB / 0.9888 GB, free: 3.262 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3462, allocations: 0 / 0.9888 GB, free: 3.262 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.3462, allocations: 7.938 kB / 0.9888 GB, free: 3.254 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009426/0.3471, allocations: 0.8643 MB / 0.9896 GB, free: 2.332 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.3472, allocations: 88.95 kB / 0.9897 GB, free: 2.227 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.3472, allocations: 3.984 kB / 0.9897 GB, free: 2.223 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.3473, allocations: 15.98 kB / 0.9897 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.189e-05/0.3474, allocations: 15.97 kB / 0.9898 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.3475, allocations: 4 kB / 0.9898 GB, free: 2.188 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.104e-05/0.3475, allocations: 99.77 kB / 0.9899 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3475, allocations: 4 kB / 0.9899 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000385/0.3479, allocations: 35.94 kB / 0.9899 GB, free: 2.051 MB / 0.7136 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.0002151/0.3481, allocations: 107.2 kB / 0.99 GB, free: 1.938 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0005746/0.3487, allocations: 239.3 kB / 0.9902 GB, free: 1.691 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3487, allocations: 4.062 kB / 0.9902 GB, free: 1.688 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.349, allocations: 63.95 kB / 0.9903 GB, free: 1.625 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.3493, allocations: 27.86 kB / 0.9903 GB, free: 1.598 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000629/0.3499, allocations: 359.2 kB / 0.9907 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.3502, allocations: 0.6965 MB / 0.9913 GB, free: 500 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.042e-05/0.3503, allocations: 16.5 kB / 0.9914 GB, free: 484 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.3504, allocations: 15.42 kB / 0.9914 GB, free: 468 kB / 0.7136 GB Notification: Performance of SimCode: time 2.1e-07/0.3504, allocations: 0 / 0.9914 GB, free: 468 kB / 0.7136 GB Notification: Performance of Templates: time 0.005573/0.3559, allocations: 1.78 MB / 0.9931 GB, free: 14.69 MB / 0.7292 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)