Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.282/2.282, allocations: 248.5 MB / 261.1 MB, free: 6.062 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001405/0.001404, allocations: 181 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.2 MB / 0.571 GB, free: 11.75 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.001157/0.001157, allocations: 112.3 kB / 0.6754 GB, free: 0.8359 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.561e-05/4.591e-05, allocations: 7.984 kB / 0.7869 GB, free: 97.78 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2272, allocations: 106.3 MB / 0.8907 GB, free: 7.422 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8694/1.097, allocations: 131.6 MB / 1.019 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/1.097, allocations: 70.52 kB / 1.019 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003808/1.101, allocations: 0.9575 MB / 1.02 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.633e-06/1.101, allocations: 3.938 kB / 1.02 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.276e-06/1.101, allocations: 0 / 1.02 GB, free: 2.719 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006549/1.102, allocations: 369.5 kB / 1.021 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/1.102, allocations: 12.03 kB / 1.021 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.114e-05/1.102, allocations: 34.55 kB / 1.021 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/1.102, allocations: 7.906 kB / 1.021 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/1.102, allocations: 167 kB / 1.021 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/1.102, allocations: 7.359 kB / 1.021 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/1.102, allocations: 11.94 kB / 1.021 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/1.102, allocations: 66.92 kB / 1.021 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/1.102, allocations: 8 kB / 1.021 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/1.102, allocations: 7.812 kB / 1.021 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/1.102, allocations: 0 / 1.021 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/1.102, allocations: 33.42 kB / 1.021 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007603/1.103, allocations: 332.4 kB / 1.021 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/1.103, allocations: 69 kB / 1.021 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.93e-05/1.103, allocations: 34.67 kB / 1.021 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/1.104, allocations: 0 / 1.021 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/1.104, allocations: 78.69 kB / 1.021 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.114e-06/1.104, allocations: 0 / 1.021 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003556/1.104, allocations: 120.7 kB / 1.021 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/1.104, allocations: 58.59 kB / 1.022 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/1.104, allocations: 95.81 kB / 1.022 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/1.104, allocations: 33.61 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.724e-05/1.104, allocations: 91.81 kB / 1.022 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/1.104, allocations: 23.02 kB / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-06/1.105, allocations: 3.75 kB / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001241/1.105, allocations: 310.8 kB / 1.022 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.744e-05/1.105, allocations: 30.56 kB / 1.022 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/1.105, allocations: 59.11 kB / 1.022 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.584e-05/1.105, allocations: 28.05 kB / 1.022 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/1.105, allocations: 0 / 1.022 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002799/1.105, allocations: 112.4 kB / 1.022 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/1.105, allocations: 12 kB / 1.022 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.105, allocations: 0 / 1.022 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/1.105, allocations: 0 / 1.022 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/1.106, allocations: 34.67 kB / 1.022 GB, free: 480 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/1.106, allocations: 4.047 kB / 1.022 GB, free: 476 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/1.106, allocations: 19.11 kB / 1.022 GB, free: 460 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/1.106, allocations: 4 kB / 1.022 GB, free: 456 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete 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.0001019/1.106, allocations: 111.5 kB / 1.022 GB, free: 340 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.837e-05/1.106, allocations: 14.52 kB / 1.022 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003198/1.106, allocations: 116.8 kB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/1.106, allocations: 0 / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.106, allocations: 0 / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/1.106, allocations: 3.953 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005925/1.107, allocations: 386.6 kB / 1.023 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/1.107, allocations: 4 kB / 1.023 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/1.107, allocations: 15.98 kB / 1.023 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.107, allocations: 0 / 1.023 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/1.107, allocations: 4 kB / 1.023 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/1.107, allocations: 7.938 kB / 1.023 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/1.107, allocations: 0.875 kB / 1.023 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003113/1.107, allocations: 204.8 kB / 1.023 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/1.108, allocations: 92.94 kB / 1.023 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/1.108, allocations: 4 kB / 1.023 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/1.108, allocations: 15.55 kB / 1.023 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/1.108, allocations: 11.94 kB / 1.023 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/1.108, allocations: 4 kB / 1.023 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.618e-05/1.108, allocations: 87.41 kB / 1.023 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.21e-07/1.108, allocations: 288 / 1.023 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003066/1.108, allocations: 16 kB / 1.023 GB, free: 15.36 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006542/1.109, allocations: 0.7521 MB / 1.024 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002476/1.109, allocations: 72.17 kB / 1.024 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/1.109, allocations: 4 kB / 1.024 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/1.109, allocations: 30.5 kB / 1.024 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/1.11, allocations: 13.89 kB / 1.024 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005599/1.11, allocations: 140.2 kB / 1.024 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/1.11, allocations: 0.6965 MB / 1.025 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.823e-05/1.111, allocations: 8.422 kB / 1.025 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/1.111, allocations: 16.81 kB / 1.025 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of SimCode: time 1.252e-06/1.111, allocations: 0 / 1.025 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/1.134, allocations: 1.617 MB / 1.027 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003635/1.135, allocations: 165.8 kB / 1.027 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.442/3.576, allocations: 0 / 1.027 GB, free: 11.9 MB / 0.6511 GB