Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.13/2.13, allocations: 251 MB / 265.9 MB, free: 11.67 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.001585/0.001585, allocations: 176.1 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.42/2.42, allocations: 205.4 MB / 0.5764 GB, free: 20.82 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.001091/0.00109, allocations: 102.5 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004766, allocations: 15.41 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2063, allocations: 106.3 MB / 0.8988 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/0.4306, allocations: 131.5 MB / 1.027 GB, free: 13.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.431, allocations: 71.95 kB / 1.027 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003604/0.4346, allocations: 0.8956 MB / 1.028 GB, free: 12.83 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.325e-06/0.4346, allocations: 4 kB / 1.028 GB, free: 12.82 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.971e-05/0.4347, allocations: 0 / 1.028 GB, free: 12.82 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006408/0.4353, allocations: 367.2 kB / 1.029 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.4354, allocations: 8.031 kB / 1.029 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.4354, allocations: 38.56 kB / 1.029 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.4355, allocations: 7.859 kB / 1.029 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.4356, allocations: 167 kB / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.4357, allocations: 3.984 kB / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.4357, allocations: 4 kB / 1.029 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002986/0.436, allocations: 69.66 kB / 1.029 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.436, allocations: 4 kB / 1.029 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.4361, allocations: 11.92 kB / 1.029 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.4361, allocations: 0 / 1.029 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.4364, allocations: 43.97 kB / 1.029 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006375/0.4371, allocations: 304.7 kB / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.4374, allocations: 62.55 kB / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.4374, allocations: 4 kB / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003038/0.4377, allocations: 83.44 kB / 1.029 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 2.254e-06/0.4377, allocations: 0 / 1.029 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.000698/0.4384, allocations: 145.6 kB / 1.029 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.4385, allocations: 51.41 kB / 1.029 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.274e-05/0.4386, allocations: 104.9 kB / 1.03 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.4386, allocations: 25.7 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/0.4387, allocations: 88.05 kB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.996e-05/0.4388, allocations: 27.73 kB / 1.03 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.4388, allocations: 0 / 1.03 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.4389, allocations: 318.8 kB / 1.03 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.4391, allocations: 31.91 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.4393, allocations: 64.27 kB / 1.03 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.4395, allocations: 31.98 kB / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4396, allocations: 0 / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004651/0.44, allocations: 129.4 kB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.4401, allocations: 13.66 kB / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4401, allocations: 0 / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.4401, allocations: 4 kB / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.4403, allocations: 20.16 kB / 1.03 GB, free: 10.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.4403, allocations: 7.953 kB / 1.03 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.4405, allocations: 23.91 kB / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.4405, allocations: 4 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001144/0.4406, allocations: 114.7 kB / 1.03 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.4406, allocations: 0 / 1.03 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004752/0.4411, allocations: 118 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.4411, allocations: 0 / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4412, allocations: 0 / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.4412, allocations: 3.953 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007153/0.4419, allocations: 378.6 kB / 1.031 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4419, allocations: 4 kB / 1.031 GB, free: 9.691 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.442, allocations: 8 kB / 1.031 GB, free: 9.684 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.866e-06/0.4421, allocations: 4 kB / 1.031 GB, free: 9.68 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.4421, allocations: 3.984 kB / 1.031 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.4421, allocations: 7.953 kB / 1.031 GB, free: 9.668 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4421, allocations: 0 / 1.031 GB, free: 9.668 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004817/0.4426, allocations: 203.4 kB / 1.031 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.003e-05/0.4427, allocations: 93 kB / 1.031 GB, free: 9.344 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.4428, allocations: 4 kB / 1.031 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.4429, allocations: 11.98 kB / 1.031 GB, free: 9.328 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.443, allocations: 7.953 kB / 1.031 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.443, allocations: 192 / 1.031 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.158e-05/0.4431, allocations: 87.27 kB / 1.031 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.8e-07/0.4431, allocations: 3.938 kB / 1.031 GB, free: 9.23 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003039/0.4434, allocations: 12 kB / 1.031 GB, free: 9.219 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0008315/0.4443, allocations: 0.7441 MB / 1.032 GB, free: 8.445 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004261/0.4447, allocations: 75.89 kB / 1.032 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4447, allocations: 0 / 1.032 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.4449, allocations: 44.3 kB / 1.032 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.4452, allocations: 9.672 kB / 1.032 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009693/0.4462, allocations: 0.9614 MB / 1.033 GB, free: 7.285 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.4465, allocations: 0.6926 MB / 1.034 GB, free: 6.566 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.937e-05/0.4466, allocations: 4.188 kB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.4466, allocations: 15.44 kB / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of SimCode: time 1.332e-06/0.4467, allocations: 0 / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01966/0.4663, allocations: 1.382 MB / 1.035 GB, free: 5.309 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000397/0.4668, allocations: 185.3 kB / 1.035 GB, free: 5.074 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.691, allocations: 0 / 1.035 GB, free: 5.074 MB / 0.6823 GB