Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.427/1.427, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 177.8 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.871/1.871, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008662/0.0008662, allocations: 99.67 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004711/0.0004713, allocations: 13.44 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2982, allocations: 106.3 MB / 0.9002 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00203/0.3004, allocations: 1.222 MB / 0.9014 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006751/0.3011, allocations: 272.9 kB / 0.9016 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.53e-05/0.3012, allocations: 0 / 0.9016 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.936e-05/0.3013, allocations: 11.92 kB / 0.9016 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.3014, allocations: 15.92 kB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002586/0.3017, allocations: 35.89 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.3018, allocations: 51.88 kB / 0.9017 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.3019, allocations: 16.22 kB / 0.9017 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.524e-05/0.302, allocations: 27.91 kB / 0.9018 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.184e-05/0.3021, allocations: 39.83 kB / 0.9018 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.3021, allocations: 8 kB / 0.9018 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.762e-05/0.3021, allocations: 4 kB / 0.9018 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.3022, allocations: 19.91 kB / 0.9018 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.261e-05/0.3022, allocations: 37.64 kB / 0.9019 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.3024, allocations: 63.8 kB / 0.9019 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3024, allocations: 0 / 0.9019 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3024, allocations: 0 / 0.9019 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.062e-06/0.3024, allocations: 0 / 0.9019 GB, free: 62.03 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000701/0.3031, allocations: 407.3 kB / 0.9023 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.3032, allocations: 8.031 kB / 0.9023 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.636e-05/0.3032, allocations: 42.55 kB / 0.9024 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.299e-05/0.3033, allocations: 7.906 kB / 0.9024 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.3034, allocations: 179 kB / 0.9026 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.3034, allocations: 11.94 kB / 0.9026 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.3035, allocations: 11.98 kB / 0.9026 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003089/0.3038, allocations: 120.7 kB / 0.9027 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3038, allocations: 0 / 0.9027 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.3038, allocations: 0 / 0.9027 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3038, allocations: 8 kB / 0.9027 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.3042, allocations: 111.9 kB / 0.9028 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006224/0.3048, allocations: 356.6 kB / 0.9031 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005166/0.3053, allocations: 162.6 kB / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.3054, allocations: 0 / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003447/0.3057, allocations: 123.5 kB / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 2.425e-06/0.3058, allocations: 0 / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0006588/0.3064, allocations: 233.4 kB / 0.9036 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.3065, allocations: 55.41 kB / 0.9037 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.3066, allocations: 130 kB / 0.9038 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.3066, allocations: 29.7 kB / 0.9038 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.928e-05/0.3067, allocations: 100.1 kB / 0.9039 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.308e-05/0.3067, allocations: 27.61 kB / 0.904 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.3067, allocations: 4 kB / 0.904 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.357e-05/0.3068, allocations: 322.8 kB / 0.9043 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.307, allocations: 63.95 kB / 0.9043 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.3072, allocations: 101.4 kB / 0.9044 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.3074, allocations: 59.95 kB / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.3074, allocations: 4 kB / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004363/0.3078, allocations: 193.5 kB / 0.9047 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3078, allocations: 4 kB / 0.9047 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3079, allocations: 0 / 0.9047 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.3079, allocations: 4 kB / 0.9047 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.308, allocations: 31.91 kB / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.308, allocations: 3.953 kB / 0.9047 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.3082, allocations: 32.02 kB / 0.9048 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.3082, allocations: 7.984 kB / 0.9048 GB, free: 58.9 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.3083, allocations: 121.8 kB / 0.9049 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.3083, allocations: 7.906 kB / 0.9049 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004556/0.3088, allocations: 185.8 kB / 0.9051 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3088, allocations: 4 kB / 0.9051 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3088, allocations: 8 kB / 0.9051 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3088, allocations: 3.953 kB / 0.9051 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006145/0.3094, allocations: 462.9 kB / 0.9055 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3095, allocations: 0 / 0.9055 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.3096, allocations: 27.95 kB / 0.9055 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3096, allocations: 0 / 0.9055 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.3096, allocations: 0 / 0.9055 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3096, allocations: 11.95 kB / 0.9056 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3096, allocations: 0 / 0.9056 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004169/0.31, allocations: 275.3 kB / 0.9058 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.3101, allocations: 85.02 kB / 0.9059 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.3101, allocations: 4 kB / 0.9059 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.3103, allocations: 23.97 kB / 0.9059 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3104, allocations: 27.92 kB / 0.906 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.3104, allocations: 7.984 kB / 0.906 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.404e-05/0.3105, allocations: 95.27 kB / 0.9061 GB, free: 57.47 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3105, allocations: 0 / 0.9061 GB, free: 57.47 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002389/0.3107, allocations: 16 kB / 0.9061 GB, free: 57.46 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (zeroCrossing.y,$whenCondition2,$whenCondition1,booPul1.pulseStart,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 (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000727/0.3115, allocations: 0.8121 MB / 0.9069 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004166/0.3119, allocations: 147.9 kB / 0.907 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3119, allocations: 0 / 0.907 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.3121, allocations: 71.95 kB / 0.9071 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.3124, allocations: 24.06 kB / 0.9071 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.3139, allocations: 1.208 MB / 0.9083 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.3141, allocations: 0.6965 MB / 0.909 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.113e-05/0.3142, allocations: 8.547 kB / 0.909 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.349e-05/0.3143, allocations: 31.42 kB / 0.909 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of SimCode: time 8.31e-07/0.3143, allocations: 0 / 0.909 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.3292, allocations: 2.173 MB / 0.9111 GB, free: 52.34 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.3295, allocations: 198.7 kB / 0.9113 GB, free: 52.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/2.12, allocations: 8.062 kB / 0.9113 GB, free: 52.09 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)