Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.454/1.454, allocations: 249.3 MB / 261.8 MB, free: 5.918 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.001041/0.001041, allocations: 174.1 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0008067/0.0008067, allocations: 78.55 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.776e-05/4.779e-05, allocations: 4 kB / 0.788 GB, free: 96.99 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2595, allocations: 106.3 MB / 0.8919 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7707/1.03, allocations: 131.6 MB / 1.02 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/1.03, allocations: 76.44 kB / 1.02 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002584/1.033, allocations: 0.8893 MB / 1.021 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.663e-06/1.033, allocations: 0 / 1.021 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.706e-06/1.033, allocations: 4 kB / 1.021 GB, free: 2.27 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004449/1.034, allocations: 349.2 kB / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/1.034, allocations: 12.03 kB / 1.022 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.711e-05/1.034, allocations: 38.31 kB / 1.022 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.304e-05/1.034, allocations: 11.89 kB / 1.022 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/1.034, allocations: 167.8 kB / 1.022 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/1.034, allocations: 4 kB / 1.022 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/1.034, allocations: 4 kB / 1.022 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/1.034, allocations: 56.48 kB / 1.022 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/1.034, allocations: 0 / 1.022 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/1.034, allocations: 3.875 kB / 1.022 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/1.034, allocations: 0 / 1.022 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.275e-05/1.034, allocations: 18.94 kB / 1.022 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005149/1.035, allocations: 298.8 kB / 1.022 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/1.035, allocations: 45.52 kB / 1.022 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.448e-05/1.035, allocations: 24.05 kB / 1.022 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/1.035, allocations: 4 kB / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/1.035, allocations: 73.64 kB / 1.022 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/1.035, allocations: 2.734 kB / 1.022 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002021/1.035, allocations: 68.31 kB / 1.022 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/1.035, allocations: 63.3 kB / 1.023 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.86e-05/1.035, allocations: 100.7 kB / 1.023 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/1.035, allocations: 29.27 kB / 1.023 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.407e-05/1.035, allocations: 88.12 kB / 1.023 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/1.035, allocations: 19.16 kB / 1.023 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-06/1.035, allocations: 0 / 1.023 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001558/1.036, allocations: 318.6 kB / 1.023 GB, free: 392 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.212e-05/1.036, allocations: 15.75 kB / 1.023 GB, free: 380 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.671e-05/1.036, allocations: 43.11 kB / 1.023 GB, free: 328 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.528e-05/1.036, allocations: 23.05 kB / 1.023 GB, free: 312 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/1.036, allocations: 4 kB / 1.023 GB, free: 308 kB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001358/1.036, allocations: 80.25 kB / 1.023 GB, free: 232 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/1.036, allocations: 8 kB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/1.036, allocations: 0 / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/1.036, allocations: 7.984 kB / 1.023 GB, free: 216 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/1.036, allocations: 20.06 kB / 1.023 GB, free: 196 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/1.036, allocations: 7.984 kB / 1.023 GB, free: 188 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.649e-05/1.036, allocations: 23.11 kB / 1.023 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/1.036, allocations: 0 / 1.023 GB, free: 168 kB / 0.6355 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 8.773e-05/1.036, allocations: 112.2 kB / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/1.036, allocations: 7.984 kB / 1.023 GB, free: 48 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/1.037, allocations: 84.58 kB / 1.023 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.037, allocations: 0 / 1.023 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/1.037, allocations: 7.922 kB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/1.037, allocations: 0 / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003368/1.037, allocations: 339.5 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/1.037, allocations: 3.984 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.649e-05/1.037, allocations: 15.25 kB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/1.037, allocations: 0 / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/1.037, allocations: 11.98 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/1.037, allocations: 0 / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.037, allocations: 3.953 kB / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/1.037, allocations: 169.5 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/1.037, allocations: 81.2 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/1.037, allocations: 7.984 kB / 1.024 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/1.037, allocations: 16.19 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/1.038, allocations: 7.938 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/1.038, allocations: 8 kB / 1.024 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.742e-05/1.038, allocations: 82.28 kB / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/1.038, allocations: 0 / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002192/1.038, allocations: 11.62 kB / 1.024 GB, free: 15.17 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: 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.0005009/1.038, allocations: 0.7095 MB / 1.025 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001289/1.038, allocations: 49.05 kB / 1.025 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.038, allocations: 0 / 1.025 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.518e-05/1.039, allocations: 19.88 kB / 1.025 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/1.039, allocations: 4 kB / 1.025 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004031/1.039, allocations: 129.7 kB / 1.025 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/1.039, allocations: 0.689 MB / 1.026 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.544e-05/1.04, allocations: 4.188 kB / 1.026 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.96e-05/1.04, allocations: 22.75 kB / 1.026 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of SimCode: time 3e-07/1.04, allocations: 0 / 1.026 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01258/1.052, allocations: 1.401 MB / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/1.052, allocations: 170.6 kB / 1.027 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.568/2.62, allocations: 4 kB / 1.027 GB, free: 12 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)