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.001182/0.001182, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001313/0.001313, allocations: 195.2 kB / 16.14 MB, free: 6.652 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.596/1.596, allocations: 205.1 MB / 222 MB, free: 4.73 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.773/1.773, allocations: 292.2 MB / 0.5484 GB, free: 13.67 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.001337/0.001337, allocations: 67.16 kB / 0.6708 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3152, allocations: 114.5 MB / 0.7827 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00231/0.3175, allocations: 0.8788 MB / 0.7835 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.3192, allocations: 1.212 MB / 0.7847 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.851e-05/0.3193, allocations: 4 kB / 0.7847 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.047e-05/0.3193, allocations: 7.875 kB / 0.7847 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.391e-05/0.3194, allocations: 11.86 kB / 0.7847 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.3199, allocations: 147.3 kB / 0.7849 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.3201, allocations: 135.7 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.3202, allocations: 20.22 kB / 0.785 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.3203, allocations: 59.77 kB / 0.7851 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.759e-05/0.3204, allocations: 51.81 kB / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.3204, allocations: 8 kB / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.38e-05/0.3205, allocations: 23.98 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.109e-05/0.3205, allocations: 23.91 kB / 0.7852 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.769e-05/0.3206, allocations: 55.77 kB / 0.7852 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.3208, allocations: 135.8 kB / 0.7854 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3208, allocations: 0 / 0.7854 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.02e-07/0.3208, allocations: 0 / 0.7854 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.3208, allocations: 0 / 0.7854 GB, free: 11.22 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.0007691/0.3216, allocations: 444.9 kB / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3217, allocations: 8.031 kB / 0.7858 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.973e-05/0.3217, allocations: 16.84 kB / 0.7858 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.3219, allocations: 176.2 kB / 0.786 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.3219, allocations: 8.375 kB / 0.786 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.3219, allocations: 12.38 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.3222, allocations: 98.19 kB / 0.7861 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3222, allocations: 192 / 0.7861 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.3223, allocations: 11.92 kB / 0.7861 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3223, allocations: 3.938 kB / 0.7861 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.3226, allocations: 87.91 kB / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005811/0.3232, allocations: 388.5 kB / 0.7866 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.3235, allocations: 98.58 kB / 0.7867 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3236, allocations: 56.81 kB / 0.7867 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.3237, allocations: 0 / 0.7867 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/0.324, allocations: 119.3 kB / 0.7868 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.324, allocations: 0 / 0.7868 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006509/0.3247, allocations: 213.3 kB / 0.787 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.3247, allocations: 59.39 kB / 0.7871 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.265e-05/0.3248, allocations: 129.5 kB / 0.7872 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.3248, allocations: 33.7 kB / 0.7873 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.3249, allocations: 100 kB / 0.7873 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.877e-05/0.325, allocations: 27.64 kB / 0.7874 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.299e-05/0.325, allocations: 45.7 kB / 0.7874 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3252, allocations: 326.8 kB / 0.7877 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.3254, allocations: 83.88 kB / 0.7878 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.3257, allocations: 120.1 kB / 0.7879 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/0.3261, allocations: 177.9 kB / 0.7881 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3261, allocations: 0 / 0.7881 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005872/0.3267, allocations: 267 kB / 0.7884 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.053e-05/0.3267, allocations: 37.69 kB / 0.7884 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3267, allocations: 4 kB / 0.7884 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3268, allocations: 0 / 0.7884 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.3269, allocations: 23.92 kB / 0.7884 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.3269, allocations: 0 / 0.7884 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.3272, allocations: 55.91 kB / 0.7885 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.3272, allocations: 8 kB / 0.7885 GB, free: 7.77 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.0001064/0.3273, allocations: 130.4 kB / 0.7886 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.797e-05/0.3274, allocations: 7.906 kB / 0.7886 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004434/0.3278, allocations: 177.8 kB / 0.7888 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3278, allocations: 4 kB / 0.7888 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3278, allocations: 0 / 0.7888 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3278, allocations: 3.984 kB / 0.7888 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006147/0.3285, allocations: 450.3 kB / 0.7892 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3285, allocations: 0 / 0.7892 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.3286, allocations: 23.97 kB / 0.7892 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3286, allocations: 0 / 0.7892 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3286, allocations: 0 / 0.7892 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3286, allocations: 4 kB / 0.7892 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3286, allocations: 3.938 kB / 0.7892 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004735/0.3291, allocations: 256.1 kB / 0.7895 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.3291, allocations: 84.95 kB / 0.7896 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.3292, allocations: 11.98 kB / 0.7896 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.3293, allocations: 11.92 kB / 0.7896 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.3294, allocations: 23.91 kB / 0.7896 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.3294, allocations: 4 kB / 0.7896 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.937e-05/0.3295, allocations: 99.39 kB / 0.7897 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3295, allocations: 0 / 0.7897 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002831/0.3297, allocations: 35.94 kB / 0.7897 GB, free: 6.359 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.0001675/0.3299, allocations: 111.2 kB / 0.7899 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005205/0.3304, allocations: 235.5 kB / 0.7901 GB, free: 6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3305, allocations: 0 / 0.7901 GB, free: 6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002601/0.3307, allocations: 67.89 kB / 0.7901 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.331, allocations: 19.92 kB / 0.7902 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004283/0.3315, allocations: 224.4 kB / 0.7904 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.3318, allocations: 0.6965 MB / 0.7911 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.21e-05/0.3319, allocations: 4.562 kB / 0.7911 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.359e-05/0.3319, allocations: 23.42 kB / 0.7911 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of SimCode: time 4.31e-07/0.3319, allocations: 0 / 0.7911 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of Templates: time 0.004458/0.3364, allocations: 1.714 MB / 0.7928 GB, free: 3.223 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)