Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.7.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.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.439/1.439, allocations: 252 MB / 267.6 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009393/0.0009393, allocations: 181.2 kB / 327.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.945/1.945, allocations: 205.4 MB / 0.5783 GB, free: 20.32 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007466/0.0007466, allocations: 97.97 kB / 0.6829 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003324, allocations: 11.69 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2182, allocations: 106.3 MB / 0.9008 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001503/0.2198, allocations: 1.23 MB / 0.902 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000446/0.2202, allocations: 280.1 kB / 0.9023 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.84e-05/0.2203, allocations: 0 / 0.9023 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.745e-05/0.2203, allocations: 3.938 kB / 0.9023 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.128e-05/0.2204, allocations: 7.922 kB / 0.9023 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.2206, allocations: 35.91 kB / 0.9024 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.71e-05/0.2207, allocations: 79.77 kB / 0.9024 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.791e-05/0.2208, allocations: 20.22 kB / 0.9025 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.625e-05/0.2209, allocations: 35.84 kB / 0.9025 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.826e-05/0.2209, allocations: 35.83 kB / 0.9025 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.028e-05/0.221, allocations: 4 kB / 0.9025 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.581e-05/0.221, allocations: 4 kB / 0.9025 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.74e-05/0.221, allocations: 15.92 kB / 0.9025 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.247e-05/0.2211, allocations: 33.7 kB / 0.9026 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.138e-05/0.2211, allocations: 71.84 kB / 0.9026 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2212, allocations: 0 / 0.9026 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.834e-06/0.2212, allocations: 0 / 0.9026 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.2212, allocations: 0 / 0.9026 GB, free: 62.08 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006072/0.2218, allocations: 415.2 kB / 0.903 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2218, allocations: 15.97 kB / 0.9031 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.2219, allocations: 11.84 kB / 0.9031 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.222, allocations: 171 kB / 0.9032 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.222, allocations: 8 kB / 0.9032 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.222, allocations: 8 kB / 0.9032 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002821/0.2223, allocations: 120.7 kB / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.2223, allocations: 0 / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.2224, allocations: 4 kB / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2224, allocations: 0 / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.2227, allocations: 115.8 kB / 0.9035 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.2232, allocations: 360.6 kB / 0.9038 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004965/0.2238, allocations: 170.5 kB / 0.904 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.2239, allocations: 68.81 kB / 0.904 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.224, allocations: 0 / 0.904 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.2243, allocations: 123.3 kB / 0.9042 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.2243, allocations: 0 / 0.9042 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0006097/0.2249, allocations: 233.4 kB / 0.9044 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.2249, allocations: 63.34 kB / 0.9044 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.6e-05/0.225, allocations: 122 kB / 0.9046 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.225, allocations: 33.69 kB / 0.9046 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.888e-05/0.2251, allocations: 92.14 kB / 0.9047 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.2251, allocations: 31.55 kB / 0.9047 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-06/0.2251, allocations: 4 kB / 0.9047 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.08e-05/0.2252, allocations: 322.8 kB / 0.905 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.2254, allocations: 67.95 kB / 0.9051 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.2255, allocations: 88.66 kB / 0.9052 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.2257, allocations: 67.89 kB / 0.9052 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2257, allocations: 4 kB / 0.9052 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003919/0.2261, allocations: 189.5 kB / 0.9054 GB, free: 59 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2262, allocations: 4 kB / 0.9054 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2262, allocations: 4 kB / 0.9054 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2262, allocations: 0 / 0.9054 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.2263, allocations: 31.91 kB / 0.9055 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.2263, allocations: 3.953 kB / 0.9055 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.2265, allocations: 35.95 kB / 0.9055 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.2265, allocations: 4 kB / 0.9055 GB, free: 58.92 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 7.753e-05/0.2266, allocations: 125.8 kB / 0.9056 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.443e-05/0.2266, allocations: 7.906 kB / 0.9056 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004244/0.227, allocations: 177.9 kB / 0.9058 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.227, allocations: 4 kB / 0.9058 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.227, allocations: 3.938 kB / 0.9058 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.227, allocations: 7.938 kB / 0.9058 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005474/0.2276, allocations: 458.9 kB / 0.9063 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2276, allocations: 0 / 0.9063 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.2277, allocations: 27.97 kB / 0.9063 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2277, allocations: 4 kB / 0.9063 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.2278, allocations: 4 kB / 0.9063 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2278, allocations: 3.953 kB / 0.9063 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2278, allocations: 0 / 0.9063 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.2282, allocations: 271.3 kB / 0.9066 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.421e-05/0.2282, allocations: 88.95 kB / 0.9066 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.2282, allocations: 0 / 0.9066 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.2284, allocations: 35.97 kB / 0.9067 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.2284, allocations: 27.86 kB / 0.9067 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.2285, allocations: 4 kB / 0.9067 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.512e-05/0.2285, allocations: 91.27 kB / 0.9068 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2285, allocations: 4 kB / 0.9068 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000214/0.2287, allocations: 20 kB / 0.9068 GB, free: 57.47 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (zeroCrossing.y,$whenCondition2,$whenCondition1,booPul1.pulseStart,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 (11): * Single equations (assignments): 9 * 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.0001166/0.2289, allocations: 107.2 kB / 0.9069 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004206/0.2293, allocations: 148 kB / 0.9071 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2293, allocations: 8 kB / 0.9071 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.2295, allocations: 75.89 kB / 0.9071 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.2298, allocations: 12.67 kB / 0.9071 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004571/0.2302, allocations: 261.2 kB / 0.9074 GB, free: 56.82 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.2304, allocations: 0.6965 MB / 0.9081 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.953e-05/0.2304, allocations: 11.44 kB / 0.9081 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.2304, allocations: 4 kB / 0.9081 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of Templates: time 0.002428/0.2329, allocations: 1.339 MB / 0.9094 GB, free: 54.76 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)