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.00119/0.001196, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.749/1.749, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.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.896/1.896, allocations: 292.3 MB / 0.5489 GB, free: 12.87 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.002344/0.002345, allocations: 70.98 kB / 0.6715 GB, free: 26.37 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3162, allocations: 114.5 MB / 0.7834 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002325/0.3186, allocations: 0.8186 MB / 0.7842 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.3201, allocations: 1.2 MB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.321e-05/0.3202, allocations: 4 kB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.72e-05/0.3203, allocations: 3.938 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.04e-05/0.3204, allocations: 19.8 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005327/0.3209, allocations: 142.9 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.3211, allocations: 155.7 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.3212, allocations: 32.2 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.3213, allocations: 63.81 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.253e-05/0.3214, allocations: 55.81 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.204e-05/0.3215, allocations: 12 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.904e-05/0.3215, allocations: 31.98 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.541e-05/0.3216, allocations: 23.91 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.981e-05/0.3217, allocations: 55.78 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.3219, allocations: 155.8 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3219, allocations: 0 / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3219, allocations: 0 / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.3219, allocations: 0 / 0.7861 GB, free: 10.72 MB / 0.6075 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.0007307/0.3227, allocations: 444.9 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3227, allocations: 12.03 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.3228, allocations: 8.844 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.3229, allocations: 183.6 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.3229, allocations: 12.38 kB / 0.7867 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.323, allocations: 12.38 kB / 0.7867 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.3232, allocations: 90.19 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.3233, allocations: 4.125 kB / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.3233, allocations: 15.88 kB / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.3233, allocations: 0 / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/0.3236, allocations: 87.91 kB / 0.7869 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006074/0.3243, allocations: 388.4 kB / 0.7873 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.3245, allocations: 94.66 kB / 0.7874 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.3247, allocations: 64.75 kB / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.3248, allocations: 0 / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003451/0.3251, allocations: 119.2 kB / 0.7875 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.3251, allocations: 0 / 0.7875 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006488/0.3258, allocations: 209.5 kB / 0.7877 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.3259, allocations: 55.34 kB / 0.7878 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.868e-05/0.3259, allocations: 133.8 kB / 0.7879 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.326, allocations: 33.7 kB / 0.7879 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.3261, allocations: 100 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.3261, allocations: 23.66 kB / 0.7881 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.461e-05/0.3262, allocations: 49.69 kB / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3263, allocations: 322.8 kB / 0.7884 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.3265, allocations: 75.94 kB / 0.7885 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.3268, allocations: 124.1 kB / 0.7886 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004133/0.3272, allocations: 188.8 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3272, allocations: 0 / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006044/0.3278, allocations: 263.3 kB / 0.789 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.031e-05/0.3279, allocations: 42.58 kB / 0.7891 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.3279, allocations: 0 / 0.7891 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3279, allocations: 4 kB / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.3281, allocations: 19.97 kB / 0.7891 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.3281, allocations: 4 kB / 0.7891 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.3284, allocations: 47.8 kB / 0.7892 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.3284, allocations: 16.02 kB / 0.7892 GB, free: 7.266 MB / 0.6075 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.000115/0.3285, allocations: 130.4 kB / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.3285, allocations: 7.906 kB / 0.7893 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004452/0.329, allocations: 173.9 kB / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.329, allocations: 4 kB / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.329, allocations: 0 / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.329, allocations: 0 / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006406/0.3297, allocations: 450.3 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3297, allocations: 0 / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.3298, allocations: 23.97 kB / 0.7899 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3298, allocations: 7.875 kB / 0.7899 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.3298, allocations: 8 kB / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3298, allocations: 4 kB / 0.7899 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3298, allocations: 3.938 kB / 0.7899 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004388/0.3303, allocations: 256.1 kB / 0.7902 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.213e-05/0.3303, allocations: 85.02 kB / 0.7903 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.3304, allocations: 4 kB / 0.7903 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.3305, allocations: 15.97 kB / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.3306, allocations: 19.92 kB / 0.7903 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.3306, allocations: 0 / 0.7903 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.152e-05/0.3307, allocations: 103.2 kB / 0.7904 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3307, allocations: 0 / 0.7904 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002675/0.3309, allocations: 35.94 kB / 0.7904 GB, free: 5.855 MB / 0.6075 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.0001822/0.3311, allocations: 113.9 kB / 0.7906 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005741/0.3317, allocations: 239.2 kB / 0.7908 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3317, allocations: 4 kB / 0.7908 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.3319, allocations: 72.14 kB / 0.7909 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.3322, allocations: 15.98 kB / 0.7909 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004341/0.3327, allocations: 198.6 kB / 0.7911 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.3329, allocations: 0.6963 MB / 0.7917 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.77e-05/0.333, allocations: 8.547 kB / 0.7917 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.526e-05/0.333, allocations: 11.44 kB / 0.7918 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of SimCode: time 1.472e-06/0.333, allocations: 4 kB / 0.7918 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of Templates: time 0.004448/0.3375, allocations: 1.925 MB / 0.7936 GB, free: 2.527 MB / 0.6075 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)