Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_8_0_x_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 8.0.1-maint.8.0.x/package.mo): time 1.775/1.775, allocations: 285.4 MB / 298 MB, free: 6.008 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.001216/0.001216, allocations: 180.9 kB / 366.4 MB, free: 2.078 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.723/1.723, allocations: 205.1 MB / 0.6248 GB, free: 7.723 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.0008769/0.0008769, allocations: 97.91 kB / 0.738 GB, free: 40.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.525e-05/4.528e-05, allocations: 7.984 kB / 0.8584 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8952/0.8952, allocations: 115.3 MB / 0.971 GB, free: 77.67 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2073/1.103, allocations: 138 MB / 1.106 GB, free: 13.74 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/1.103, allocations: 67.95 kB / 1.106 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003807/1.107, allocations: 1.167 MB / 1.107 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.673e-06/1.107, allocations: 0 / 1.107 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.396e-05/1.107, allocations: 4.688 kB / 1.107 GB, free: 12.54 MB / 0.7136 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.0006143/1.107, allocations: 372.4 kB / 1.107 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/1.108, allocations: 12.62 kB / 1.107 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.849e-05/1.108, allocations: 41.27 kB / 1.107 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/1.108, allocations: 4 kB / 1.107 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/1.108, allocations: 170.9 kB / 1.108 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/1.108, allocations: 7.938 kB / 1.108 GB, free: 11.85 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/1.108, allocations: 8 kB / 1.108 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/1.108, allocations: 65.67 kB / 1.108 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/1.108, allocations: 0 / 1.108 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/1.108, allocations: 4.719 kB / 1.108 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/1.108, allocations: 1.312 kB / 1.108 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.499e-05/1.108, allocations: 38.7 kB / 1.108 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006616/1.109, allocations: 324.5 kB / 1.108 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/1.109, allocations: 73.94 kB / 1.108 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.446e-05/1.109, allocations: 36.52 kB / 1.108 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/1.109, allocations: 0.875 kB / 1.108 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000155/1.109, allocations: 85.05 kB / 1.108 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 2.254e-06/1.109, allocations: 0 / 1.108 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0002774/1.11, allocations: 109.6 kB / 1.108 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/1.11, allocations: 55.41 kB / 1.108 GB, free: 10.99 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.76e-05/1.11, allocations: 101 kB / 1.108 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/1.11, allocations: 34.52 kB / 1.108 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/1.11, allocations: 88.38 kB / 1.109 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/1.11, allocations: 29.58 kB / 1.109 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-06/1.11, allocations: 0 / 1.109 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000123/1.11, allocations: 322.8 kB / 1.109 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.33e-05/1.11, allocations: 24 kB / 1.109 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.079e-05/1.11, allocations: 49.11 kB / 1.109 GB, free: 10.32 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.233e-05/1.11, allocations: 29.08 kB / 1.109 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.11, allocations: 0 / 1.109 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000203/1.111, allocations: 122.7 kB / 1.109 GB, free: 10.17 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/1.111, allocations: 4 kB / 1.109 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/1.111, allocations: 0 / 1.109 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/1.111, allocations: 11.3 kB / 1.109 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/1.111, allocations: 27.92 kB / 1.109 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/1.111, allocations: 0 / 1.109 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.31e-05/1.111, allocations: 15.89 kB / 1.109 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/1.111, allocations: 8 kB / 1.109 GB, free: 10.11 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 9.147e-05/1.111, allocations: 124.9 kB / 1.109 GB, free: 9.977 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/1.111, allocations: 4 kB / 1.109 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002308/1.111, allocations: 130 kB / 1.109 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/1.111, allocations: 1.75 kB / 1.109 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/1.111, allocations: 0 / 1.109 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/1.111, allocations: 0 / 1.109 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/1.112, allocations: 386.4 kB / 1.11 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/1.112, allocations: 0 / 1.11 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.158e-05/1.112, allocations: 19.92 kB / 1.11 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/1.112, allocations: 0 / 1.11 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/1.112, allocations: 4 kB / 1.11 GB, free: 9.387 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/1.112, allocations: 0 / 1.11 GB, free: 9.387 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.112, allocations: 0 / 1.11 GB, free: 9.387 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002292/1.112, allocations: 219.2 kB / 1.11 GB, free: 9.156 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.577e-05/1.112, allocations: 81.11 kB / 1.11 GB, free: 9.059 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/1.112, allocations: 4 kB / 1.11 GB, free: 9.055 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/1.112, allocations: 14.36 kB / 1.11 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/1.112, allocations: 11.98 kB / 1.11 GB, free: 9.031 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/1.112, allocations: 4 kB / 1.11 GB, free: 9.027 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.392e-05/1.112, allocations: 79.28 kB / 1.11 GB, free: 8.949 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.2e-07/1.112, allocations: 0 / 1.11 GB, free: 8.949 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002421/1.113, allocations: 23.95 kB / 1.11 GB, free: 8.926 MB / 0.7136 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.0005531/1.113, allocations: 0.7654 MB / 1.111 GB, free: 8.137 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001711/1.113, allocations: 71.92 kB / 1.111 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.113, allocations: 0 / 1.111 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.44e-05/1.113, allocations: 39.94 kB / 1.111 GB, free: 8.027 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/1.114, allocations: 6.188 kB / 1.111 GB, free: 8.023 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004431/1.114, allocations: 147.1 kB / 1.111 GB, free: 7.848 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/1.114, allocations: 0.6892 MB / 1.112 GB, free: 7.133 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.224e-05/1.114, allocations: 12.38 kB / 1.112 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.797e-05/1.115, allocations: 27.36 kB / 1.112 GB, free: 7.094 MB / 0.7136 GB Notification: Performance of SimCode: time 3.61e-07/1.115, allocations: 0 / 1.112 GB, free: 7.094 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01232/1.127, allocations: 1.765 MB / 1.114 GB, free: 5.527 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/1.127, allocations: 181.3 kB / 1.114 GB, free: 5.301 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.543/2.671, allocations: 4 kB / 1.114 GB, free: 5.297 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)