Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.209/2.209, allocations: 251 MB / 265.9 MB, free: 11.69 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.001497/0.001497, allocations: 171.8 kB / 325.5 MB, free: 2.91 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.483/2.483, allocations: 205.4 MB / 0.5764 GB, free: 21.2 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.001112/0.001112, allocations: 83.12 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.00064/0.0006399, allocations: 11.59 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2098, allocations: 106.3 MB / 0.8988 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.227/0.4368, allocations: 131.9 MB / 1.028 GB, free: 13.83 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.4372, allocations: 71.95 kB / 1.028 GB, free: 13.76 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005822/0.443, allocations: 1.36 MB / 1.029 GB, free: 12.4 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4431, allocations: 0 / 1.029 GB, free: 12.4 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.627e-06/0.4431, allocations: 0 / 1.029 GB, free: 12.4 MB / 0.6823 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.0008556/0.4439, allocations: 415 kB / 1.029 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.444, allocations: 12.03 kB / 1.029 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.845e-05/0.4441, allocations: 42.48 kB / 1.03 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.158e-05/0.4441, allocations: 11.84 kB / 1.03 GB, free: 11.87 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.4443, allocations: 179 kB / 1.03 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.4443, allocations: 0 / 1.03 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.4444, allocations: 12 kB / 1.03 GB, free: 11.64 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.4448, allocations: 114.7 kB / 1.03 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.4449, allocations: 4 kB / 1.03 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.4449, allocations: 3.984 kB / 1.03 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4449, allocations: 0 / 1.03 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006274/0.4456, allocations: 119.8 kB / 1.03 GB, free: 11.4 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000814/0.4464, allocations: 360.7 kB / 1.03 GB, free: 11 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008609/0.4473, allocations: 162.5 kB / 1.03 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.4473, allocations: 0 / 1.03 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004688/0.4478, allocations: 119.3 kB / 1.031 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 4.539e-06/0.4478, allocations: 4 kB / 1.031 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.001159/0.449, allocations: 237.5 kB / 1.031 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.449, allocations: 51.41 kB / 1.031 GB, free: 10.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.4492, allocations: 115.3 kB / 1.031 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.4492, allocations: 33.7 kB / 1.031 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.076e-05/0.4493, allocations: 104 kB / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.922e-05/0.4494, allocations: 31.69 kB / 1.031 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.4494, allocations: 0 / 1.031 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.4496, allocations: 314.8 kB / 1.031 GB, free: 9.785 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.4499, allocations: 67.94 kB / 1.031 GB, free: 9.719 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/0.4503, allocations: 92.66 kB / 1.032 GB, free: 9.617 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.4507, allocations: 65.38 kB / 1.032 GB, free: 9.555 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4507, allocations: 3.938 kB / 1.032 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007859/0.4515, allocations: 193.4 kB / 1.032 GB, free: 9.355 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.4515, allocations: 8 kB / 1.032 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.4515, allocations: 0 / 1.032 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.4515, allocations: 4.094 kB / 1.032 GB, free: 9.344 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.4518, allocations: 31.94 kB / 1.032 GB, free: 9.312 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.4518, allocations: 7.938 kB / 1.032 GB, free: 9.305 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.4521, allocations: 31.81 kB / 1.032 GB, free: 9.273 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.4521, allocations: 4 kB / 1.032 GB, free: 9.27 MB / 0.6823 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,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * 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.0001422/0.4523, allocations: 133.7 kB / 1.032 GB, free: 9.129 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.4523, allocations: 11.89 kB / 1.032 GB, free: 9.117 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007991/0.4531, allocations: 181.8 kB / 1.032 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4531, allocations: 0 / 1.032 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4531, allocations: 3.953 kB / 1.032 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4532, allocations: 7.984 kB / 1.032 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.4542, allocations: 446.5 kB / 1.033 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4543, allocations: 0 / 1.033 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002002/0.4545, allocations: 27.92 kB / 1.033 GB, free: 8.406 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-06/0.4545, allocations: 4 kB / 1.033 GB, free: 8.402 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.4545, allocations: 7.938 kB / 1.033 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4545, allocations: 3.938 kB / 1.033 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4545, allocations: 0 / 1.033 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007847/0.4553, allocations: 263.3 kB / 1.033 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-05/0.4554, allocations: 93 kB / 1.033 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.4555, allocations: 4 kB / 1.033 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.4557, allocations: 27.92 kB / 1.033 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.667e-05/0.4558, allocations: 19.97 kB / 1.033 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.4559, allocations: 4 kB / 1.033 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.443e-05/0.456, allocations: 99.2 kB / 1.033 GB, free: 7.855 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.61e-07/0.456, allocations: 4 kB / 1.033 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003321/0.4563, allocations: 20 kB / 1.033 GB, free: 7.832 MB / 0.6823 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 (triggeredSampler.trigger,$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.001159/0.4575, allocations: 0.7982 MB / 1.034 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00076/0.4583, allocations: 152.3 kB / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4583, allocations: 0 / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.4586, allocations: 80.08 kB / 1.034 GB, free: 6.777 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.459, allocations: 20.8 kB / 1.034 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.4613, allocations: 1.198 MB / 1.035 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.4617, allocations: 0.7004 MB / 1.036 GB, free: 4.762 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 8.722e-05/0.4618, allocations: 8.562 kB / 1.036 GB, free: 4.754 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.959e-05/0.4619, allocations: 27.42 kB / 1.036 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of SimCode: time 6.82e-07/0.4619, allocations: 0 / 1.036 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.486, allocations: 2.128 MB / 1.038 GB, free: 2.746 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003122/0.4864, allocations: 197.1 kB / 1.038 GB, free: 2.5 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.318/2.804, allocations: 0 / 1.038 GB, free: 2.5 MB / 0.6823 GB