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.001335/0.001335, allocations: 116.2 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001484, allocations: 191.5 kB / 17.31 MB, free: 5.613 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.444/1.444, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.763/1.763, allocations: 292.3 MB / 0.5496 GB, free: 17.41 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.001435/0.001435, allocations: 76.5 kB / 0.6729 GB, free: 5.793 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1955, allocations: 114.6 MB / 0.7848 GB, free: 3.117 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002105/0.1976, allocations: 0.8147 MB / 0.7856 GB, free: 2.297 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.199, allocations: 1.203 MB / 0.7868 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.847e-05/0.1991, allocations: 0 / 0.7868 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.084e-05/0.1992, allocations: 7.875 kB / 0.7868 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.881e-05/0.1992, allocations: 19.81 kB / 0.7868 GB, free: 1.051 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005179/0.1998, allocations: 153.8 kB / 0.787 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001877/0.2, allocations: 151.7 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.2001, allocations: 32.19 kB / 0.7871 GB, free: 0.7227 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.365e-05/0.2002, allocations: 63.84 kB / 0.7872 GB, free: 0.6602 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.2003, allocations: 63.78 kB / 0.7872 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/0.2003, allocations: 12 kB / 0.7873 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.003e-05/0.2004, allocations: 27.98 kB / 0.7873 GB, free: 0.5586 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.758e-05/0.2004, allocations: 19.92 kB / 0.7873 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.432e-05/0.2005, allocations: 55.77 kB / 0.7874 GB, free: 496 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.2007, allocations: 151.4 kB / 0.7875 GB, free: 344 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2007, allocations: 4 kB / 0.7875 GB, free: 340 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2007, allocations: 0 / 0.7875 GB, free: 340 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.2008, allocations: 0 / 0.7875 GB, free: 340 kB / 0.6544 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.3113/0.5121, allocations: 440 kB / 0.7879 GB, free: 48.91 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.5122, allocations: 9.625 kB / 0.7879 GB, free: 48.91 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.5122, allocations: 11.44 kB / 0.7879 GB, free: 48.9 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.645e-05/0.5123, allocations: 182 kB / 0.7881 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.5124, allocations: 6.812 kB / 0.7881 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.5124, allocations: 10.38 kB / 0.7881 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.5127, allocations: 105.5 kB / 0.7882 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.5127, allocations: 192 / 0.7882 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.5127, allocations: 16.36 kB / 0.7883 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.5128, allocations: 5.062 kB / 0.7883 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.5131, allocations: 82.75 kB / 0.7883 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005241/0.5136, allocations: 381.8 kB / 0.7887 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.5139, allocations: 95.81 kB / 0.7888 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.5141, allocations: 59.42 kB / 0.7889 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.5141, allocations: 0 / 0.7889 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002773/0.5144, allocations: 116.7 kB / 0.789 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 2.214e-06/0.5144, allocations: 0 / 0.789 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0006238/0.515, allocations: 214.8 kB / 0.7892 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.5151, allocations: 57.12 kB / 0.7892 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.863e-05/0.5151, allocations: 121.2 kB / 0.7893 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.5152, allocations: 37.61 kB / 0.7894 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.5152, allocations: 96.17 kB / 0.7895 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.5152, allocations: 31.77 kB / 0.7895 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.31e-05/0.5153, allocations: 50.98 kB / 0.7895 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.5154, allocations: 326.5 kB / 0.7899 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.5156, allocations: 77.86 kB / 0.7899 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.5159, allocations: 118.3 kB / 0.79 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.5162, allocations: 187.2 kB / 0.7902 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5162, allocations: 0.6562 kB / 0.7902 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005594/0.5168, allocations: 267.1 kB / 0.7905 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.5168, allocations: 34.11 kB / 0.7905 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.5169, allocations: 0.6562 kB / 0.7905 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.5169, allocations: 6.016 kB / 0.7905 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.517, allocations: 27.02 kB / 0.7905 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.517, allocations: 2.812 kB / 0.7905 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.5173, allocations: 50.34 kB / 0.7906 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.5173, allocations: 10.69 kB / 0.7906 GB, free: 47.44 MB / 0.6544 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 7.781e-05/0.5174, allocations: 125.3 kB / 0.7907 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.684e-05/0.5174, allocations: 11.66 kB / 0.7907 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004193/0.5178, allocations: 169.4 kB / 0.7909 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.5179, allocations: 5.312 kB / 0.7909 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.5179, allocations: 2.391 kB / 0.7909 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5179, allocations: 1.594 kB / 0.7909 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005297/0.5184, allocations: 445.7 kB / 0.7913 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5184, allocations: 3.469 kB / 0.7913 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.904e-05/0.5185, allocations: 22.39 kB / 0.7914 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.5185, allocations: 0 / 0.7914 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.5186, allocations: 4.438 kB / 0.7914 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.5186, allocations: 0 / 0.7914 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5186, allocations: 3.938 kB / 0.7914 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003835/0.519, allocations: 263.9 kB / 0.7916 GB, free: 46.85 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.022e-05/0.519, allocations: 93.42 kB / 0.7917 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.519, allocations: 2.062 kB / 0.7917 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.5191, allocations: 17.89 kB / 0.7917 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.783e-05/0.5192, allocations: 15.94 kB / 0.7917 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.5192, allocations: 7.75 kB / 0.7917 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.404e-05/0.5193, allocations: 96.5 kB / 0.7918 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5193, allocations: 3.469 kB / 0.7918 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002722/0.5195, allocations: 36.03 kB / 0.7919 GB, free: 46.67 MB / 0.6544 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.0001276/0.5197, allocations: 105.9 kB / 0.792 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004993/0.5202, allocations: 246.9 kB / 0.7922 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.5202, allocations: 0 / 0.7922 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.5204, allocations: 63.02 kB / 0.7923 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.5207, allocations: 19.84 kB / 0.7923 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000368/0.521, allocations: 225.9 kB / 0.7925 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.5212, allocations: 0.6969 MB / 0.7932 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.5212, allocations: 16.38 kB / 0.7932 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.5212, allocations: 0 / 0.7932 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of Templates: time 0.002843/0.5241, allocations: 1.637 MB / 0.7948 GB, free: 45.58 MB / 0.6544 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)