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.001053/0.001053, allocations: 109.4 kB / 15.69 MB, free: 128 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.001266/0.001266, allocations: 189.6 kB / 16.62 MB, free: 6.582 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.387/1.387, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.682/1.682, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.00145/0.00145, allocations: 72.41 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2914, allocations: 114.5 MB / 0.7836 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002476/0.294, allocations: 0.8175 MB / 0.7844 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001771/0.2958, allocations: 1.204 MB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.431e-05/0.2959, allocations: 4 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.361e-05/0.2959, allocations: 11.86 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.242e-05/0.2961, allocations: 7.875 kB / 0.7856 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006004/0.2967, allocations: 154.4 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.2969, allocations: 159.7 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.297, allocations: 28.22 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.2972, allocations: 63.77 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.2973, allocations: 63.78 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/0.2974, allocations: 12 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.427e-05/0.2974, allocations: 27.98 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.814e-05/0.2975, allocations: 23.92 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.6e-05/0.2976, allocations: 63.7 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.2979, allocations: 147.8 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.2979, allocations: 0 / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2979, allocations: 0 / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.2979, allocations: 0 / 0.7863 GB, free: 10.44 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.0008661/0.2988, allocations: 440.9 kB / 0.7868 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.2988, allocations: 11.97 kB / 0.7868 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.742e-05/0.2989, allocations: 50.67 kB / 0.7868 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.136e-05/0.299, allocations: 12.84 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.2991, allocations: 172.2 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.2991, allocations: 12.38 kB / 0.787 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.2992, allocations: 12.38 kB / 0.787 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/0.2995, allocations: 101.7 kB / 0.7871 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2996, allocations: 3.938 kB / 0.7871 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.2996, allocations: 11.98 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.2996, allocations: 4 kB / 0.7871 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003541/0.3, allocations: 87.84 kB / 0.7872 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007187/0.3007, allocations: 376.5 kB / 0.7876 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/0.301, allocations: 98.58 kB / 0.7877 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.3012, allocations: 60.81 kB / 0.7877 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.3012, allocations: 3.984 kB / 0.7877 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003393/0.3016, allocations: 119.3 kB / 0.7879 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/0.3016, allocations: 0 / 0.7879 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006733/0.3023, allocations: 209.4 kB / 0.7881 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.3023, allocations: 51.41 kB / 0.7881 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.3024, allocations: 133.8 kB / 0.7882 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.3025, allocations: 33.7 kB / 0.7883 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.3025, allocations: 104 kB / 0.7884 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.872e-05/0.3026, allocations: 27.64 kB / 0.7884 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.334e-05/0.3027, allocations: 41.7 kB / 0.7884 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3028, allocations: 326.8 kB / 0.7887 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002456/0.303, allocations: 83.84 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.3033, allocations: 120.2 kB / 0.7889 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004377/0.3038, allocations: 177.9 kB / 0.7891 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3038, allocations: 4 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006279/0.3044, allocations: 259.2 kB / 0.7894 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.941e-05/0.3045, allocations: 37.7 kB / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3045, allocations: 3.984 kB / 0.7894 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3045, allocations: 4 kB / 0.7894 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.3047, allocations: 23.86 kB / 0.7894 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.3047, allocations: 7.938 kB / 0.7894 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.3049, allocations: 51.83 kB / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.305, allocations: 11.98 kB / 0.7895 GB, free: 6.93 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.0001096/0.3051, allocations: 132.6 kB / 0.7896 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.3051, allocations: 7.906 kB / 0.7896 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004564/0.3056, allocations: 166 kB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3056, allocations: 4 kB / 0.7898 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3056, allocations: 0 / 0.7898 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3056, allocations: 0 / 0.7898 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006621/0.3063, allocations: 450.3 kB / 0.7902 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3063, allocations: 0 / 0.7902 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.3064, allocations: 19.97 kB / 0.7902 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3064, allocations: 4 kB / 0.7902 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.3064, allocations: 4 kB / 0.7902 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.3064, allocations: 7.938 kB / 0.7903 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3065, allocations: 3.938 kB / 0.7903 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004735/0.3069, allocations: 260.1 kB / 0.7905 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.307, allocations: 89 kB / 0.7906 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.307, allocations: 7.938 kB / 0.7906 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.3071, allocations: 15.97 kB / 0.7906 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.457e-05/0.3072, allocations: 11.98 kB / 0.7906 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.3073, allocations: 4 kB / 0.7906 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.531e-05/0.3073, allocations: 102.5 kB / 0.7907 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3073, allocations: 0 / 0.7907 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002761/0.3076, allocations: 35.92 kB / 0.7908 GB, free: 5.531 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.0008369/0.3085, allocations: 0.8048 MB / 0.7915 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005616/0.309, allocations: 247.1 kB / 0.7918 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3091, allocations: 0 / 0.7918 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.3093, allocations: 67.89 kB / 0.7918 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.3096, allocations: 22.73 kB / 0.7919 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.3123, allocations: 1.897 MB / 0.7937 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.3126, allocations: 0.7041 MB / 0.7944 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.32e-05/0.3126, allocations: 12.44 kB / 0.7944 GB, free: 1.605 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.099e-05/0.3127, allocations: 31.42 kB / 0.7944 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of SimCode: time 2.9e-07/0.3127, allocations: 0 / 0.7944 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.3342, allocations: 3.157 MB / 0.7975 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.728/8.062, allocations: 4.062 kB / 0.7975 GB, free: 14.52 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)