Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.635/2.635, allocations: 287.5 MB / 302.4 MB, free: 8.371 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.001275/0.001274, allocations: 187.1 kB / 371 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.302/2.302, allocations: 205.4 MB / 0.6297 GB, free: 10.55 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.0009964/0.0009962, allocations: 81.34 kB / 0.743 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006852/0.0006855, allocations: 17.86 kB / 0.8658 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2259, allocations: 115.3 MB / 0.9784 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001111/0.2271, allocations: 0.5177 MB / 0.9789 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001743/0.2289, allocations: 1.189 MB / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.609e-05/0.229, allocations: 0 / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.358e-05/0.229, allocations: 3.938 kB / 0.98 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.341e-05/0.2291, allocations: 11.86 kB / 0.98 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.2298, allocations: 127.3 kB / 0.9802 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001579/0.2299, allocations: 123.7 kB / 0.9803 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.23, allocations: 20.2 kB / 0.9803 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.831e-05/0.2302, allocations: 51.83 kB / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.858e-05/0.2303, allocations: 55.8 kB / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.2303, allocations: 8 kB / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.912e-05/0.2304, allocations: 23.98 kB / 0.9804 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.648e-05/0.2304, allocations: 15.92 kB / 0.9805 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.964e-05/0.2305, allocations: 37.7 kB / 0.9805 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.2307, allocations: 96.05 kB / 0.9806 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.2307, allocations: 3.938 kB / 0.9806 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2307, allocations: 3.938 kB / 0.9806 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.361e-06/0.2307, allocations: 0 / 0.9806 GB, free: 26.04 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007377/0.2315, allocations: 432.8 kB / 0.981 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2315, allocations: 8.031 kB / 0.981 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.381e-05/0.2316, allocations: 15.91 kB / 0.981 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.2317, allocations: 183.4 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.2317, allocations: 8 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.123e-05/0.2318, allocations: 8 kB / 0.9812 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.2323, allocations: 115.5 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2323, allocations: 0 / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.2323, allocations: 7.984 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2323, allocations: 0 / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005557/0.2329, allocations: 111.9 kB / 0.9814 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000681/0.2336, allocations: 384.5 kB / 0.9818 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.234, allocations: 106.6 kB / 0.9819 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.2343, allocations: 68.81 kB / 0.982 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.2344, allocations: 4 kB / 0.982 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004485/0.2348, allocations: 123.3 kB / 0.9821 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 2.455e-06/0.2348, allocations: 0 / 0.9821 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.001055/0.2359, allocations: 253.3 kB / 0.9823 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.236, allocations: 59.34 kB / 0.9824 GB, free: 24 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.2361, allocations: 125.8 kB / 0.9825 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.2362, allocations: 33.69 kB / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.069e-05/0.2362, allocations: 100 kB / 0.9826 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.2363, allocations: 31.62 kB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.321e-05/0.2363, allocations: 4 kB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.728e-05/0.2364, allocations: 322.8 kB / 0.983 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.2368, allocations: 91.94 kB / 0.9831 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004067/0.2372, allocations: 122 kB / 0.9832 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.2376, allocations: 120 kB / 0.9833 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2376, allocations: 0 / 0.9833 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009646/0.2386, allocations: 287.3 kB / 0.9836 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.25e-05/0.2387, allocations: 36.2 kB / 0.9836 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2387, allocations: 3.938 kB / 0.9836 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.2387, allocations: 11.94 kB / 0.9836 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.2389, allocations: 35.95 kB / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.239, allocations: 0 / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004637/0.2394, allocations: 59.92 kB / 0.9837 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.2395, allocations: 12 kB / 0.9837 GB, free: 22.57 MB / 0.6198 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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.0001286/0.2396, allocations: 141.6 kB / 0.9839 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.2397, allocations: 11.81 kB / 0.9839 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007524/0.2404, allocations: 182 kB / 0.984 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2405, allocations: 4 kB / 0.9841 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2405, allocations: 3.953 kB / 0.9841 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2405, allocations: 3.984 kB / 0.9841 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000934/0.2414, allocations: 474.3 kB / 0.9845 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.2414, allocations: 0 / 0.9845 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.2416, allocations: 23.97 kB / 0.9845 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.2416, allocations: 0 / 0.9845 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.2417, allocations: 3.953 kB / 0.9845 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.2417, allocations: 0 / 0.9845 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.594e-06/0.2417, allocations: 4 kB / 0.9845 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006842/0.2424, allocations: 283.2 kB / 0.9848 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.287e-05/0.2424, allocations: 89.02 kB / 0.9849 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.2425, allocations: 3.984 kB / 0.9849 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.2427, allocations: 23.94 kB / 0.9849 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.946e-05/0.2428, allocations: 19.97 kB / 0.9849 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.2428, allocations: 4 kB / 0.9849 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.461e-05/0.2429, allocations: 91.27 kB / 0.985 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.8e-07/0.2429, allocations: 4 kB / 0.985 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003808/0.2433, allocations: 32 kB / 0.9851 GB, free: 21.1 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: 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 (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.0001931/0.2435, allocations: 107.2 kB / 0.9852 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008912/0.2444, allocations: 259.2 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2444, allocations: 0 / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.2448, allocations: 81.23 kB / 0.9855 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.2452, allocations: 19.92 kB / 0.9855 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000525/0.2457, allocations: 223.4 kB / 0.9857 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.2459, allocations: 0.6926 MB / 0.9864 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.16e-05/0.246, allocations: 8.547 kB / 0.9864 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.141e-05/0.246, allocations: 15.44 kB / 0.9864 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of SimCode: time 1.242e-06/0.2461, allocations: 4 kB / 0.9864 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of Templates: time 0.005569/0.2516, allocations: 1.639 MB / 0.988 GB, free: 18 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)