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.00118/0.00118, allocations: 106.4 kB / 16.29 MB, free: 6.43 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.001349/0.001349, allocations: 187.9 kB / 17.22 MB, free: 5.934 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.731/1.731, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.98/1.98, allocations: 292.3 MB / 0.5495 GB, free: 17.46 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.001499/0.0015, allocations: 76.22 kB / 0.6722 GB, free: 6.48 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3006, allocations: 114.6 MB / 0.7841 GB, free: 3.809 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002512/0.3032, allocations: 0.8101 MB / 0.7849 GB, free: 2.992 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001708/0.3049, allocations: 1.203 MB / 0.7861 GB, free: 1.773 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.429e-05/0.305, allocations: 3.938 kB / 0.7861 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.08e-05/0.305, allocations: 7.922 kB / 0.7861 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.899e-05/0.3051, allocations: 11.88 kB / 0.7861 GB, free: 1.75 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.3057, allocations: 164.2 kB / 0.7862 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.306, allocations: 151.7 kB / 0.7864 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.3061, allocations: 36.2 kB / 0.7864 GB, free: 1.41 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.3062, allocations: 59.83 kB / 0.7865 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.3064, allocations: 67.78 kB / 0.7865 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.631e-05/0.3064, allocations: 16 kB / 0.7866 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.318e-05/0.3065, allocations: 27.98 kB / 0.7866 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.985e-05/0.3065, allocations: 19.92 kB / 0.7866 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3067, allocations: 51.77 kB / 0.7866 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.3069, allocations: 155.7 kB / 0.7868 GB, free: 1.02 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3069, allocations: 0 / 0.7868 GB, free: 1.02 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3069, allocations: 0 / 0.7868 GB, free: 1.02 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.307, allocations: 4 kB / 0.7868 GB, free: 1.016 MB / 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.0007615/0.3077, allocations: 440.9 kB / 0.7872 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.3078, allocations: 8.031 kB / 0.7872 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.033e-05/0.3078, allocations: 12.84 kB / 0.7872 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.308, allocations: 180.2 kB / 0.7874 GB, free: 300 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.308, allocations: 12.38 kB / 0.7874 GB, free: 288 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.998e-05/0.3081, allocations: 12.38 kB / 0.7874 GB, free: 276 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.3085, allocations: 94.19 kB / 0.7875 GB, free: 176 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3085, allocations: 192 / 0.7875 GB, free: 176 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.3085, allocations: 3.938 kB / 0.7875 GB, free: 172 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.3085, allocations: 7.938 kB / 0.7875 GB, free: 164 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005209/0.3091, allocations: 91.91 kB / 0.7876 GB, free: 72 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6325/0.9415, allocations: 370.9 kB / 0.788 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.9419, allocations: 93.94 kB / 0.7881 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.9421, allocations: 59.95 kB / 0.7881 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.9421, allocations: 7.25 kB / 0.7881 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.9426, allocations: 119.7 kB / 0.7882 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 3.307e-06/0.9426, allocations: 0 / 0.7882 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0006337/0.9432, allocations: 208 kB / 0.7884 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.9433, allocations: 55.75 kB / 0.7885 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.179e-05/0.9434, allocations: 131.1 kB / 0.7886 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.9434, allocations: 37.89 kB / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.213e-05/0.9434, allocations: 100.2 kB / 0.7888 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.934e-05/0.9435, allocations: 30.38 kB / 0.7888 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.312e-05/0.9436, allocations: 40.42 kB / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.21e-05/0.9437, allocations: 326.2 kB / 0.7891 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.9439, allocations: 77.7 kB / 0.7892 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.9441, allocations: 113.7 kB / 0.7893 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003695/0.9445, allocations: 186 kB / 0.7895 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.9445, allocations: 2.625 kB / 0.7895 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005499/0.9451, allocations: 269 kB / 0.7898 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.9451, allocations: 37.67 kB / 0.7898 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.9451, allocations: 0 / 0.7898 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.9452, allocations: 8.016 kB / 0.7898 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.9453, allocations: 21.39 kB / 0.7898 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.9453, allocations: 0.75 kB / 0.7898 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.9456, allocations: 50.98 kB / 0.7899 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/0.9456, allocations: 8.688 kB / 0.7899 GB, free: 47.69 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 0.0001145/0.9457, allocations: 138.8 kB / 0.79 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.626e-05/0.9458, allocations: 7.062 kB / 0.79 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004298/0.9462, allocations: 169.6 kB / 0.7902 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.9462, allocations: 1.172 kB / 0.7902 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.9462, allocations: 0.5 kB / 0.7902 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.9462, allocations: 1.062 kB / 0.7902 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006007/0.9468, allocations: 456 kB / 0.7906 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.9469, allocations: 0 / 0.7906 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.736e-05/0.947, allocations: 30.14 kB / 0.7906 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.947, allocations: 0 / 0.7906 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.947, allocations: 2.625 kB / 0.7906 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.947, allocations: 2.969 kB / 0.7906 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.947, allocations: 0 / 0.7906 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004076/0.9474, allocations: 262.1 kB / 0.7909 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.304e-05/0.9475, allocations: 90.77 kB / 0.791 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.9475, allocations: 6 kB / 0.791 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.9476, allocations: 12.14 kB / 0.791 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/0.9477, allocations: 21.94 kB / 0.791 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.9478, allocations: 3.312 kB / 0.791 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.754e-05/0.9478, allocations: 100 kB / 0.7911 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.9478, allocations: 0 / 0.7911 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002695/0.9481, allocations: 33.06 kB / 0.7912 GB, free: 46.91 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.000208/0.9483, allocations: 112.4 kB / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005389/0.9489, allocations: 240.5 kB / 0.7915 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.9489, allocations: 0 / 0.7915 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.9491, allocations: 65.06 kB / 0.7915 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.9494, allocations: 16.98 kB / 0.7916 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004435/0.9498, allocations: 196.7 kB / 0.7918 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.95, allocations: 0.6963 MB / 0.7924 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.21e-05/0.9501, allocations: 15.31 kB / 0.7924 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.224e-05/0.9501, allocations: 15.97 kB / 0.7925 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of SimCode: time 2.5e-07/0.9501, allocations: 3.406 kB / 0.7925 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of Templates: time 0.004965/0.9551, allocations: 1.906 MB / 0.7943 GB, free: 45.88 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)