Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.782/1.782, allocations: 289.7 MB / 302.2 MB, free: 2.164 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001026, allocations: 181.6 kB / 371.6 MB, free: 3.402 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.779/1.779, allocations: 205.1 MB / 0.6309 GB, free: 11.75 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009571/0.0009573, allocations: 95.91 kB / 0.745 GB, free: 54.51 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.621e-05/3.623e-05, allocations: 4 kB / 0.8663 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2781, allocations: 116.3 MB / 0.9799 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8385/1.117, allocations: 138.9 MB / 1.116 GB, free: 44.64 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/1.117, allocations: 70.44 kB / 1.116 GB, free: 44.61 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.003088/1.12, allocations: 1.101 MB / 1.117 GB, free: 43.88 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.203e-06/1.12, allocations: 0 / 1.117 GB, free: 43.88 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.284e-06/1.12, allocations: 4 kB / 1.117 GB, free: 43.87 MB / 0.7448 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.0004026/1.12, allocations: 373.7 kB / 1.117 GB, free: 43.48 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/1.12, allocations: 8.031 kB / 1.117 GB, free: 43.48 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.002e-05/1.121, allocations: 37.81 kB / 1.117 GB, free: 43.43 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.937e-05/1.121, allocations: 4.062 kB / 1.117 GB, free: 43.43 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.077e-05/1.121, allocations: 164.1 kB / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/1.121, allocations: 6.781 kB / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/1.121, allocations: 7.625 kB / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/1.121, allocations: 51.34 kB / 1.117 GB, free: 43.19 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/1.121, allocations: 0.5312 kB / 1.117 GB, free: 43.19 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/1.121, allocations: 4.75 kB / 1.117 GB, free: 43.18 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/1.121, allocations: 4 kB / 1.117 GB, free: 43.18 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.312e-05/1.121, allocations: 25.38 kB / 1.117 GB, free: 43.16 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004648/1.121, allocations: 297.4 kB / 1.118 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.634e-05/1.121, allocations: 51.73 kB / 1.118 GB, free: 42.82 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.539e-05/1.122, allocations: 20.42 kB / 1.118 GB, free: 42.8 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/1.122, allocations: 0 / 1.118 GB, free: 42.8 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/1.122, allocations: 70.27 kB / 1.118 GB, free: 42.73 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/1.122, allocations: 0 / 1.118 GB, free: 42.73 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0001772/1.122, allocations: 67.77 kB / 1.118 GB, free: 42.68 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/1.122, allocations: 51.41 kB / 1.118 GB, free: 42.61 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.815e-05/1.122, allocations: 111.4 kB / 1.118 GB, free: 42.51 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/1.122, allocations: 25.7 kB / 1.118 GB, free: 42.48 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.298e-05/1.122, allocations: 91.42 kB / 1.118 GB, free: 42.39 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/1.122, allocations: 19.14 kB / 1.118 GB, free: 42.37 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/1.122, allocations: 7.312 kB / 1.118 GB, free: 42.37 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 5.576e-05/1.122, allocations: 314.3 kB / 1.118 GB, free: 42.05 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.03e-05/1.122, allocations: 11.19 kB / 1.118 GB, free: 42.05 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.734e-05/1.122, allocations: 54.86 kB / 1.118 GB, free: 41.99 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.141e-05/1.122, allocations: 22.16 kB / 1.118 GB, free: 41.98 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.122, allocations: 0 / 1.118 GB, free: 41.98 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001243/1.122, allocations: 95.3 kB / 1.119 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/1.122, allocations: 12.12 kB / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/1.122, allocations: 0.6875 kB / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/1.122, allocations: 4 kB / 1.119 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/1.123, allocations: 15.42 kB / 1.119 GB, free: 41.87 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/1.123, allocations: 4 kB / 1.119 GB, free: 41.87 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.989e-05/1.123, allocations: 14.06 kB / 1.119 GB, free: 41.86 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/1.123, allocations: 4.953 kB / 1.119 GB, free: 41.86 MB / 0.7448 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 () * 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 5.362e-05/1.123, allocations: 120.2 kB / 1.119 GB, free: 41.74 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/1.123, allocations: 4 kB / 1.119 GB, free: 41.73 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/1.123, allocations: 82.02 kB / 1.119 GB, free: 41.68 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/1.123, allocations: 0.5625 kB / 1.119 GB, free: 41.68 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/1.123, allocations: 0 / 1.119 GB, free: 41.68 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.123, allocations: 4 kB / 1.119 GB, free: 41.67 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/1.123, allocations: 339.8 kB / 1.119 GB, free: 41.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/1.123, allocations: 0 / 1.119 GB, free: 41.32 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.208e-05/1.123, allocations: 16.03 kB / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/1.123, allocations: 0.75 kB / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/1.123, allocations: 7.469 kB / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/1.123, allocations: 0 / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/1.123, allocations: 1.984 kB / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/1.123, allocations: 173.9 kB / 1.119 GB, free: 41.14 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.69e-05/1.124, allocations: 88.52 kB / 1.119 GB, free: 41.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/1.124, allocations: 8 kB / 1.119 GB, free: 41.03 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.97e-05/1.124, allocations: 15.44 kB / 1.119 GB, free: 41.02 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/1.124, allocations: 0.6562 kB / 1.119 GB, free: 41.02 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/1.124, allocations: 7.562 kB / 1.119 GB, free: 41.02 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.856e-05/1.124, allocations: 86.86 kB / 1.12 GB, free: 40.94 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.1e-07/1.124, allocations: 0 / 1.12 GB, free: 40.94 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002198/1.124, allocations: 15.19 kB / 1.12 GB, free: 40.93 MB / 0.7448 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) * 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.0003524/1.124, allocations: 0.724 MB / 1.12 GB, free: 40.2 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001127/1.124, allocations: 42.5 kB / 1.12 GB, free: 40.17 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/1.124, allocations: 0.6562 kB / 1.12 GB, free: 40.17 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.396e-05/1.125, allocations: 22.69 kB / 1.12 GB, free: 40.16 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001725/1.125, allocations: 7.672 kB / 1.12 GB, free: 40.15 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003905/1.125, allocations: 125.8 kB / 1.12 GB, free: 40.01 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/1.125, allocations: 0.6926 MB / 1.121 GB, free: 39.3 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.388e-05/1.125, allocations: 4.188 kB / 1.121 GB, free: 39.3 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/1.125, allocations: 21.95 kB / 1.121 GB, free: 39.29 MB / 0.7448 GB Notification: Performance of SimCode: time 6.82e-07/1.125, allocations: 0 / 1.121 GB, free: 39.29 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01253/1.138, allocations: 1.52 MB / 1.123 GB, free: 38.48 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/1.138, allocations: 167.2 kB / 1.123 GB, free: 38.25 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.628/2.766, allocations: 4 kB / 1.123 GB, free: 38.25 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)