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.643/1.643, allocations: 288.2 MB / 303.2 MB, free: 8.137 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.001111/0.001111, allocations: 189.5 kB / 371.8 MB, free: 10.27 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.75/1.75, allocations: 205.4 MB / 0.6305 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00086/0.0008597, allocations: 93.09 kB / 0.7439 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004186, allocations: 15.16 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2133, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6662/0.8796, allocations: 138.1 MB / 1.114 GB, free: 16.57 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.8798, allocations: 67.58 kB / 1.114 GB, free: 16.57 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003481/0.8833, allocations: 1.153 MB / 1.116 GB, free: 32.22 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.515e-06/0.8833, allocations: 3.844 kB / 1.116 GB, free: 32.22 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.8833, allocations: 0 / 1.116 GB, free: 32.22 MB / 0.698 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.000484/0.8838, allocations: 389.7 kB / 1.116 GB, free: 31.85 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.8839, allocations: 11.67 kB / 1.116 GB, free: 31.85 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.501e-05/0.8839, allocations: 37.81 kB / 1.116 GB, free: 31.81 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.884, allocations: 7.781 kB / 1.116 GB, free: 31.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.912e-05/0.8841, allocations: 173.5 kB / 1.116 GB, free: 31.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.8841, allocations: 3.844 kB / 1.116 GB, free: 31.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.8841, allocations: 11.28 kB / 1.116 GB, free: 31.59 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.8843, allocations: 84.73 kB / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.8843, allocations: 0 / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.8844, allocations: 0 / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.8844, allocations: 3.812 kB / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.8846, allocations: 72.25 kB / 1.116 GB, free: 31.55 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.8851, allocations: 338 kB / 1.117 GB, free: 31.28 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.8853, allocations: 82.09 kB / 1.117 GB, free: 31.25 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.8854, allocations: 3.875 kB / 1.117 GB, free: 31.25 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.8856, allocations: 103.4 kB / 1.117 GB, free: 31.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.904e-06/0.8856, allocations: 0 / 1.117 GB, free: 31.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0004532/0.8861, allocations: 187.5 kB / 1.117 GB, free: 31.16 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.8861, allocations: 51.41 kB / 1.117 GB, free: 31.09 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.272e-05/0.8862, allocations: 110.5 kB / 1.117 GB, free: 31 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.8862, allocations: 29.61 kB / 1.117 GB, free: 30.97 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.392e-05/0.8863, allocations: 85.67 kB / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.583e-05/0.8863, allocations: 31.33 kB / 1.117 GB, free: 30.87 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.8863, allocations: 3.938 kB / 1.117 GB, free: 30.86 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.8864, allocations: 324.1 kB / 1.118 GB, free: 30.55 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.8865, allocations: 44.48 kB / 1.118 GB, free: 30.54 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.8867, allocations: 65.59 kB / 1.118 GB, free: 30.52 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.8868, allocations: 51.61 kB / 1.118 GB, free: 30.52 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.8868, allocations: 0 / 1.118 GB, free: 30.52 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002841/0.8871, allocations: 153.2 kB / 1.118 GB, free: 30.48 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.8871, allocations: 11.72 kB / 1.118 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.8871, allocations: 0 / 1.118 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.8871, allocations: 0 / 1.118 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.8873, allocations: 27.94 kB / 1.118 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.8873, allocations: 0 / 1.118 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.597e-05/0.8874, allocations: 21.89 kB / 1.118 GB, free: 30.46 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.8874, allocations: 3.906 kB / 1.118 GB, free: 30.46 MB / 0.698 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 () * Number of clocked 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.544e-05/0.8875, allocations: 127.9 kB / 1.118 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.474e-05/0.8875, allocations: 8 kB / 1.118 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003068/0.8878, allocations: 154 kB / 1.118 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.8878, allocations: 3.906 kB / 1.118 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.8878, allocations: 4 kB / 1.118 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.8878, allocations: 2.625 kB / 1.118 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004417/0.8883, allocations: 412.1 kB / 1.119 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.8883, allocations: 0 / 1.119 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.144e-05/0.8884, allocations: 18.86 kB / 1.119 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.8884, allocations: 3.141 kB / 1.119 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.8884, allocations: 3.438 kB / 1.119 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.8884, allocations: 3.875 kB / 1.119 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.8884, allocations: 0 / 1.119 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003148/0.8887, allocations: 246.9 kB / 1.119 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.8888, allocations: 88.45 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.8888, allocations: 0 / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.8889, allocations: 14.44 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.889, allocations: 6.984 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.889, allocations: 3.844 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.178e-05/0.889, allocations: 90.22 kB / 1.119 GB, free: 29.66 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.889, allocations: 0 / 1.119 GB, free: 29.66 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000244/0.8893, allocations: 22.91 kB / 1.119 GB, free: 29.66 MB / 0.698 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) * Number of clocked states: 0 () * 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.0006876/0.89, allocations: 0.7951 MB / 1.12 GB, free: 28.98 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002701/0.8903, allocations: 113.2 kB / 1.12 GB, free: 28.97 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.8903, allocations: 4.125 kB / 1.12 GB, free: 28.97 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.8904, allocations: 55.83 kB / 1.12 GB, free: 28.97 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.8906, allocations: 7.969 kB / 1.12 GB, free: 28.97 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007368/0.8913, allocations: 0.6903 MB / 1.121 GB, free: 28.31 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.8916, allocations: 0.6872 MB / 1.121 GB, free: 27.61 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.241e-05/0.8917, allocations: 12.91 kB / 1.121 GB, free: 27.61 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.79e-05/0.8918, allocations: 17.56 kB / 1.121 GB, free: 27.6 MB / 0.698 GB Notification: Performance of SimCode: time 7.92e-07/0.8918, allocations: 0 / 1.121 GB, free: 27.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01164/0.9034, allocations: 1.745 MB / 1.123 GB, free: 27.43 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/0.9036, allocations: 197 kB / 1.123 GB, free: 27.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.52/2.424, allocations: 0 / 1.123 GB, free: 27.2 MB / 0.698 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)