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.ZeroCrossing.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.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.671/1.671, allocations: 288.4 MB / 304.3 MB, free: 8.078 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.001043/0.001043, allocations: 185.6 kB / 373 MB, free: 10.16 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.624/1.624, allocations: 205.4 MB / 0.6317 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.0008366/0.0008363, allocations: 98.94 kB / 0.745 GB, free: 5.805 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004106/0.0004107, allocations: 16.73 kB / 0.8681 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2208, allocations: 115.3 MB / 0.9807 GB, free: 27.39 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7012/0.9221, allocations: 138.7 MB / 1.116 GB, free: 16.45 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.9224, allocations: 70.09 kB / 1.116 GB, free: 16.45 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007248/0.9296, allocations: 2.498 MB / 1.119 GB, free: 32.02 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.074e-06/0.9297, allocations: 4 kB / 1.119 GB, free: 32.02 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.9297, allocations: 0 / 1.119 GB, free: 32.02 MB / 0.698 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.000594/0.9303, allocations: 432.9 kB / 1.119 GB, free: 31.61 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.9303, allocations: 11.5 kB / 1.119 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.439e-05/0.9304, allocations: 16.38 kB / 1.119 GB, free: 31.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.9305, allocations: 178.3 kB / 1.119 GB, free: 31.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.9306, allocations: 4.219 kB / 1.119 GB, free: 31.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.782e-05/0.9306, allocations: 18.81 kB / 1.119 GB, free: 31.39 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.9309, allocations: 107.1 kB / 1.119 GB, free: 31.36 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.9309, allocations: 4.188 kB / 1.119 GB, free: 31.36 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.9309, allocations: 10.78 kB / 1.119 GB, free: 31.35 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.9309, allocations: 0 / 1.119 GB, free: 31.35 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.9312, allocations: 110 kB / 1.12 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/0.9318, allocations: 389.6 kB / 1.12 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.9321, allocations: 105.2 kB / 1.12 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.9323, allocations: 73.05 kB / 1.12 GB, free: 31.02 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.9323, allocations: 0 / 1.12 GB, free: 31.02 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/0.9326, allocations: 129.2 kB / 1.12 GB, free: 30.97 MB / 0.698 GB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.9326, allocations: 3.812 kB / 1.12 GB, free: 30.97 MB / 0.698 GB Notification: Performance of matching and sorting (n=12): time 0.0006088/0.9332, allocations: 241.4 kB / 1.12 GB, free: 30.93 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.9333, allocations: 51.41 kB / 1.12 GB, free: 30.86 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.976e-05/0.9334, allocations: 130.9 kB / 1.121 GB, free: 30.76 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.9334, allocations: 36.8 kB / 1.121 GB, free: 30.73 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.168e-05/0.9335, allocations: 100.2 kB / 1.121 GB, free: 30.64 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.9335, allocations: 25.98 kB / 1.121 GB, free: 30.63 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.357e-05/0.9335, allocations: 11.12 kB / 1.121 GB, free: 30.62 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.9337, allocations: 325.1 kB / 1.121 GB, free: 30.31 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.9339, allocations: 88.55 kB / 1.121 GB, free: 30.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.9341, allocations: 128.5 kB / 1.121 GB, free: 30.26 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003731/0.9345, allocations: 206.1 kB / 1.121 GB, free: 30.18 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.9345, allocations: 0 / 1.121 GB, free: 30.18 MB / 0.698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005678/0.9351, allocations: 285.5 kB / 1.122 GB, free: 30.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.26e-05/0.9351, allocations: 40.84 kB / 1.122 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.9351, allocations: 0 / 1.122 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.9352, allocations: 3.969 kB / 1.122 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.9353, allocations: 28.7 kB / 1.122 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.443e-06/0.9353, allocations: 0 / 1.122 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.9356, allocations: 58.41 kB / 1.122 GB, free: 30.06 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.9356, allocations: 13.67 kB / 1.122 GB, free: 30.06 MB / 0.698 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.9358, allocations: 127.8 kB / 1.122 GB, free: 29.94 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.9358, allocations: 11.66 kB / 1.122 GB, free: 29.93 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004784/0.9363, allocations: 196.8 kB / 1.122 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.9363, allocations: 4 kB / 1.122 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.9363, allocations: 0 / 1.122 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.9363, allocations: 0 / 1.122 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006307/0.9369, allocations: 475.3 kB / 1.123 GB, free: 29.58 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.937, allocations: 0 / 1.123 GB, free: 29.58 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.9371, allocations: 25.27 kB / 1.123 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.9371, allocations: 3.844 kB / 1.123 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.9371, allocations: 7 kB / 1.123 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.9371, allocations: 0 / 1.123 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.9371, allocations: 3.938 kB / 1.123 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004435/0.9376, allocations: 280.4 kB / 1.123 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.012e-05/0.9376, allocations: 87.59 kB / 1.123 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.9377, allocations: 0 / 1.123 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.9378, allocations: 21.78 kB / 1.123 GB, free: 29.32 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.9379, allocations: 26.25 kB / 1.123 GB, free: 29.32 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.9379, allocations: 3.812 kB / 1.123 GB, free: 29.32 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.332e-05/0.938, allocations: 92.05 kB / 1.123 GB, free: 29.25 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.938, allocations: 3.938 kB / 1.123 GB, free: 29.24 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002795/0.9382, allocations: 40.38 kB / 1.123 GB, free: 29.24 MB / 0.698 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 (triggeredSampler.trigger,$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 (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.0002107/0.9385, allocations: 117 kB / 1.123 GB, free: 29.14 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005125/0.939, allocations: 257.5 kB / 1.124 GB, free: 29.07 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.939, allocations: 0 / 1.124 GB, free: 29.07 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.9392, allocations: 82.72 kB / 1.124 GB, free: 29.06 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.9395, allocations: 23.72 kB / 1.124 GB, free: 29.05 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004116/0.9399, allocations: 213.7 kB / 1.124 GB, free: 28.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.9402, allocations: 0.6981 MB / 1.125 GB, free: 28.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.52e-05/0.9403, allocations: 15.22 kB / 1.125 GB, free: 28.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.9403, allocations: 11.25 kB / 1.125 GB, free: 28.19 MB / 0.698 GB Notification: Performance of SimCode: time 1.9e-07/0.9403, allocations: 0 / 1.125 GB, free: 28.19 MB / 0.698 GB Notification: Performance of Templates: time 0.004192/0.9445, allocations: 1.659 MB / 1.126 GB, free: 28.06 MB / 0.698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)