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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001658/0.001663, allocations: 108 kB / 15.61 MB, free: 152 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.002604/0.002604, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.495/1.495, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.794/1.794, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001583/0.001584, allocations: 69.2 kB / 0.6716 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2607, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002305/0.2631, allocations: 0.8265 MB / 0.7843 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001618/0.2647, allocations: 1.192 MB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.246e-05/0.2648, allocations: 7.938 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.719e-05/0.2649, allocations: 3.938 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.422e-05/0.265, allocations: 11.86 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005856/0.2656, allocations: 150.7 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.2658, allocations: 159.7 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.266, allocations: 28.16 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.2661, allocations: 67.81 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.2662, allocations: 55.81 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.2663, allocations: 12 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.335e-05/0.2664, allocations: 27.98 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.197e-05/0.2664, allocations: 23.91 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.455e-05/0.2665, allocations: 55.78 kB / 0.786 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.2668, allocations: 143.8 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2668, allocations: 4 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2668, allocations: 0 / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.2668, allocations: 0 / 0.7862 GB, free: 10.61 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.0007394/0.2675, allocations: 440.9 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.2676, allocations: 16.03 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.2676, allocations: 38.73 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.72e-05/0.2677, allocations: 12.84 kB / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.2679, allocations: 176.2 kB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.2679, allocations: 4.375 kB / 0.7868 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.2679, allocations: 12.38 kB / 0.7868 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.2682, allocations: 98.17 kB / 0.7869 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.2682, allocations: 3.938 kB / 0.7869 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.2683, allocations: 4 kB / 0.7869 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.2683, allocations: 7.938 kB / 0.787 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.2686, allocations: 91.84 kB / 0.787 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006283/0.2693, allocations: 392.5 kB / 0.7874 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.2696, allocations: 98.58 kB / 0.7875 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.2698, allocations: 56.81 kB / 0.7876 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.2698, allocations: 4 kB / 0.7876 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000379/0.2702, allocations: 119.2 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.823e-06/0.2702, allocations: 0 / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0007334/0.2709, allocations: 221.3 kB / 0.7879 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.271, allocations: 55.41 kB / 0.7879 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.2711, allocations: 124.5 kB / 0.7881 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.2712, allocations: 37.69 kB / 0.7881 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.671e-05/0.2712, allocations: 96.05 kB / 0.7882 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.2713, allocations: 27.64 kB / 0.7882 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.905e-05/0.2714, allocations: 45.7 kB / 0.7883 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.2715, allocations: 330.8 kB / 0.7886 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.2717, allocations: 79.84 kB / 0.7887 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.272, allocations: 121.6 kB / 0.7888 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.2725, allocations: 181.8 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2725, allocations: 3.938 kB / 0.7889 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000616/0.2731, allocations: 263.1 kB / 0.7892 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.2732, allocations: 37.69 kB / 0.7892 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2732, allocations: 4 kB / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.2732, allocations: 0 / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.2734, allocations: 23.92 kB / 0.7893 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.2734, allocations: 8.125 kB / 0.7893 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.2737, allocations: 51.78 kB / 0.7893 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.2737, allocations: 8 kB / 0.7893 GB, free: 7.102 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.0001093/0.2738, allocations: 129.7 kB / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.2738, allocations: 11.89 kB / 0.7895 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004752/0.2743, allocations: 173.9 kB / 0.7896 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2743, allocations: 4 kB / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2743, allocations: 0 / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.2743, allocations: 0 / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006961/0.275, allocations: 450.3 kB / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2751, allocations: 0 / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.2752, allocations: 15.98 kB / 0.7901 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.2752, allocations: 0 / 0.7901 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.2752, allocations: 4 kB / 0.7901 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2752, allocations: 4 kB / 0.7901 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.2752, allocations: 7.922 kB / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/0.2757, allocations: 251.3 kB / 0.7903 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.2757, allocations: 89 kB / 0.7904 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.2758, allocations: 4 kB / 0.7904 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.2759, allocations: 11.92 kB / 0.7904 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.248e-05/0.276, allocations: 23.91 kB / 0.7905 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.276, allocations: 11.94 kB / 0.7905 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.216e-05/0.2761, allocations: 102.8 kB / 0.7906 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2761, allocations: 0 / 0.7906 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000289/0.2764, allocations: 31.94 kB / 0.7906 GB, free: 5.699 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.0008203/0.2772, allocations: 0.8108 MB / 0.7914 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005889/0.2778, allocations: 239.2 kB / 0.7916 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2778, allocations: 0 / 0.7916 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.278, allocations: 80.12 kB / 0.7917 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.2783, allocations: 15.94 kB / 0.7917 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.281, allocations: 1.889 MB / 0.7935 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.2812, allocations: 0.6963 MB / 0.7942 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.366e-05/0.2813, allocations: 12.55 kB / 0.7942 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.447e-05/0.2814, allocations: 31.42 kB / 0.7943 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.2814, allocations: 0 / 0.7943 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02194/0.3033, allocations: 3.133 MB / 0.7973 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.902/8.205, allocations: 13.81 kB / 0.7973 GB, free: 14.7 MB / 0.6231 GB (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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)