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.442/1.442, allocations: 252 MB / 267 MB, free: 10.96 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.001015/0.001014, allocations: 185.4 kB / 326.6 MB, free: 2.203 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.888/1.888, allocations: 205.4 MB / 0.5777 GB, free: 20.25 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.0008179/0.0008179, allocations: 92.41 kB / 0.6823 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003475, allocations: 11.41 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2403, allocations: 106.3 MB / 0.9003 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00173/0.2421, allocations: 1.242 MB / 0.9015 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004886/0.2426, allocations: 268.1 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.887e-05/0.2427, allocations: 0 / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.312e-05/0.2427, allocations: 7.922 kB / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.447e-05/0.2428, allocations: 15.86 kB / 0.9018 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.243, allocations: 27.97 kB / 0.9018 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.2431, allocations: 87.75 kB / 0.9019 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.2433, allocations: 20.22 kB / 0.9019 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.581e-05/0.2433, allocations: 31.86 kB / 0.902 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.142e-05/0.2434, allocations: 35.83 kB / 0.902 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.2435, allocations: 4 kB / 0.902 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.751e-05/0.2435, allocations: 4 kB / 0.902 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.284e-05/0.2435, allocations: 19.91 kB / 0.902 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.2436, allocations: 37.64 kB / 0.9021 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.888e-05/0.2437, allocations: 63.86 kB / 0.9021 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2437, allocations: 0 / 0.9021 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.224e-06/0.2437, allocations: 4 kB / 0.9021 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.2437, allocations: 3.938 kB / 0.9021 GB, free: 61.88 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.0006294/0.2443, allocations: 407.3 kB / 0.9025 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2444, allocations: 12.03 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.863e-05/0.2444, allocations: 34.56 kB / 0.9026 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.356e-05/0.2445, allocations: 11.89 kB / 0.9026 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.2446, allocations: 179 kB / 0.9027 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.2446, allocations: 4 kB / 0.9028 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.2446, allocations: 12 kB / 0.9028 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.2449, allocations: 109.6 kB / 0.9029 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2449, allocations: 0 / 0.9029 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.245, allocations: 7.984 kB / 0.9029 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.245, allocations: 3.938 kB / 0.9029 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.2453, allocations: 115.9 kB / 0.903 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005733/0.2459, allocations: 356.6 kB / 0.9033 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.2464, allocations: 158.6 kB / 0.9035 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.2466, allocations: 64.81 kB / 0.9035 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.2467, allocations: 4 kB / 0.9035 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.247, allocations: 119.3 kB / 0.9037 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.247, allocations: 4 kB / 0.9037 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0006127/0.2476, allocations: 229.3 kB / 0.9039 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.2476, allocations: 71.38 kB / 0.904 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.29e-05/0.2477, allocations: 124.2 kB / 0.9041 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.2477, allocations: 33.7 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.887e-05/0.2478, allocations: 100.1 kB / 0.9042 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.2478, allocations: 27.61 kB / 0.9042 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-06/0.2478, allocations: 0 / 0.9042 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.776e-05/0.2479, allocations: 314.8 kB / 0.9045 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.2481, allocations: 71.89 kB / 0.9046 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/0.2484, allocations: 105 kB / 0.9047 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.2486, allocations: 55.97 kB / 0.9047 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2486, allocations: 4 kB / 0.9047 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005592/0.2492, allocations: 193.9 kB / 0.9049 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.2492, allocations: 8 kB / 0.9049 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2492, allocations: 4 kB / 0.9049 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.2492, allocations: 0 / 0.9049 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.2494, allocations: 31.88 kB / 0.905 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.2494, allocations: 4 kB / 0.905 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.2495, allocations: 32 kB / 0.905 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.2496, allocations: 4 kB / 0.905 GB, free: 58.69 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 8.222e-05/0.2497, allocations: 121.8 kB / 0.9051 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.2497, allocations: 11.84 kB / 0.9051 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004451/0.2501, allocations: 186 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2501, allocations: 4 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2502, allocations: 7.953 kB / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2502, allocations: 0 / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005643/0.2507, allocations: 466.2 kB / 0.9058 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2507, allocations: 0 / 0.9058 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.984e-05/0.2508, allocations: 19.98 kB / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2509, allocations: 0 / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.2509, allocations: 11.94 kB / 0.9058 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2509, allocations: 4 kB / 0.9058 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2509, allocations: 0 / 0.9058 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003904/0.2513, allocations: 271.2 kB / 0.9061 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.113e-05/0.2513, allocations: 85 kB / 0.9061 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.2514, allocations: 4 kB / 0.9062 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.2515, allocations: 31.94 kB / 0.9062 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.886e-05/0.2516, allocations: 23.95 kB / 0.9062 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.2516, allocations: 0 / 0.9062 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.225e-05/0.2517, allocations: 102.4 kB / 0.9063 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2517, allocations: 0 / 0.9063 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002197/0.2519, allocations: 20 kB / 0.9063 GB, free: 57.25 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.0006176/0.2525, allocations: 0.8112 MB / 0.9071 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003944/0.2529, allocations: 147.9 kB / 0.9073 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2529, allocations: 0 / 0.9073 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.2531, allocations: 71.95 kB / 0.9073 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.2534, allocations: 24.94 kB / 0.9073 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.2548, allocations: 0.7666 MB / 0.9081 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.2549, allocations: 0.6965 MB / 0.9088 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.611e-05/0.255, allocations: 8.547 kB / 0.9088 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.571e-05/0.2551, allocations: 27.42 kB / 0.9088 GB, free: 54.58 MB / 0.6042 GB Notification: Performance of SimCode: time 3.41e-07/0.2551, allocations: 3.938 kB / 0.9088 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01321/0.2683, allocations: 2.196 MB / 0.911 GB, free: 52.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.2685, allocations: 206.2 kB / 0.9112 GB, free: 52.32 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/1.854, allocations: 4 kB / 0.9112 GB, free: 52.31 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)