Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.651/2.651, allocations: 287.3 MB / 302.3 MB, free: 8.211 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.001504/0.001505, allocations: 186.8 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.164/2.164, allocations: 205.4 MB / 0.6295 GB, free: 10.65 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.001114/0.001114, allocations: 92.55 kB / 0.7428 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005302/0.0005302, allocations: 13.06 kB / 0.8657 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2107, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8995/1.11, allocations: 137.9 MB / 1.113 GB, free: 15.43 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/1.111, allocations: 73.3 kB / 1.113 GB, free: 15.43 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005358/1.116, allocations: 1.163 MB / 1.114 GB, free: 31.07 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.918e-06/1.116, allocations: 5.266 kB / 1.114 GB, free: 31.07 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.907e-06/1.116, allocations: 0 / 1.114 GB, free: 31.07 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.0007372/1.117, allocations: 384.1 kB / 1.115 GB, free: 30.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/1.117, allocations: 15.61 kB / 1.115 GB, free: 30.7 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.405e-05/1.117, allocations: 33.77 kB / 1.115 GB, free: 30.66 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/1.117, allocations: 14.02 kB / 1.115 GB, free: 30.65 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/1.117, allocations: 175.5 kB / 1.115 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/1.117, allocations: 5.172 kB / 1.115 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/1.117, allocations: 7.719 kB / 1.115 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/1.117, allocations: 77.59 kB / 1.115 GB, free: 30.42 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/1.117, allocations: 3.938 kB / 1.115 GB, free: 30.41 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/1.118, allocations: 3.906 kB / 1.115 GB, free: 30.41 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/1.118, allocations: 0 / 1.115 GB, free: 30.41 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003362/1.118, allocations: 69.64 kB / 1.115 GB, free: 30.41 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007815/1.119, allocations: 335.2 kB / 1.115 GB, free: 30.13 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/1.119, allocations: 84.86 kB / 1.115 GB, free: 30.11 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/1.119, allocations: 3.938 kB / 1.115 GB, free: 30.11 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000315/1.119, allocations: 94.22 kB / 1.115 GB, free: 30.05 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 2.144e-06/1.119, allocations: 0 / 1.115 GB, free: 30.05 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0007774/1.12, allocations: 188.6 kB / 1.116 GB, free: 30.02 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/1.12, allocations: 54.78 kB / 1.116 GB, free: 29.95 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.6e-05/1.12, allocations: 110.8 kB / 1.116 GB, free: 29.86 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/1.12, allocations: 32.86 kB / 1.116 GB, free: 29.82 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.721e-05/1.12, allocations: 89.84 kB / 1.116 GB, free: 29.74 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/1.121, allocations: 25.05 kB / 1.116 GB, free: 29.72 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/1.121, allocations: 7.188 kB / 1.116 GB, free: 29.72 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001396/1.121, allocations: 320.3 kB / 1.116 GB, free: 29.41 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/1.121, allocations: 38.42 kB / 1.116 GB, free: 29.41 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/1.121, allocations: 76.89 kB / 1.116 GB, free: 29.38 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/1.121, allocations: 51.38 kB / 1.116 GB, free: 29.37 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/1.121, allocations: 0 / 1.116 GB, free: 29.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004949/1.122, allocations: 154 kB / 1.117 GB, free: 29.33 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/1.122, allocations: 7.688 kB / 1.117 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.122, allocations: 0 / 1.117 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/1.122, allocations: 0 / 1.117 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/1.122, allocations: 21.95 kB / 1.117 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/1.122, allocations: 2.906 kB / 1.117 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/1.122, allocations: 19.16 kB / 1.117 GB, free: 29.32 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/1.122, allocations: 10.38 kB / 1.117 GB, free: 29.32 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 0.0001335/1.122, allocations: 124 kB / 1.117 GB, free: 29.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/1.123, allocations: 3.906 kB / 1.117 GB, free: 29.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005343/1.123, allocations: 163 kB / 1.117 GB, free: 29.14 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/1.123, allocations: 0 / 1.117 GB, free: 29.14 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/1.123, allocations: 3.812 kB / 1.117 GB, free: 29.14 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/1.123, allocations: 2.719 kB / 1.117 GB, free: 29.14 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007656/1.124, allocations: 418.3 kB / 1.117 GB, free: 28.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.124, allocations: 3.984 kB / 1.117 GB, free: 28.84 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/1.124, allocations: 14.42 kB / 1.117 GB, free: 28.84 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/1.124, allocations: 0 / 1.117 GB, free: 28.84 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/1.124, allocations: 5.172 kB / 1.117 GB, free: 28.84 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/1.124, allocations: 3.844 kB / 1.117 GB, free: 28.84 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/1.124, allocations: 3.984 kB / 1.117 GB, free: 28.83 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005734/1.125, allocations: 248.6 kB / 1.118 GB, free: 28.69 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/1.125, allocations: 84.89 kB / 1.118 GB, free: 28.59 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/1.125, allocations: 2.953 kB / 1.118 GB, free: 28.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/1.125, allocations: 10.11 kB / 1.118 GB, free: 28.59 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/1.125, allocations: 17.84 kB / 1.118 GB, free: 28.58 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/1.125, allocations: 3.375 kB / 1.118 GB, free: 28.58 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.486e-05/1.125, allocations: 88.83 kB / 1.118 GB, free: 28.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.11e-07/1.125, allocations: 0 / 1.118 GB, free: 28.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003455/1.125, allocations: 26.08 kB / 1.118 GB, free: 28.5 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.000969/1.126, allocations: 0.7859 MB / 1.119 GB, free: 27.83 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004853/1.127, allocations: 115.2 kB / 1.119 GB, free: 27.82 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/1.127, allocations: 0 / 1.119 GB, free: 27.82 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002137/1.127, allocations: 47.86 kB / 1.119 GB, free: 27.82 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/1.127, allocations: 15.89 kB / 1.119 GB, free: 27.82 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009197/1.128, allocations: 0.6862 MB / 1.119 GB, free: 27.16 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/1.129, allocations: 0.6923 MB / 1.12 GB, free: 26.46 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.642e-05/1.129, allocations: 7.406 kB / 1.12 GB, free: 26.46 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.982e-05/1.129, allocations: 18.53 kB / 1.12 GB, free: 26.45 MB / 0.698 GB Notification: Performance of SimCode: time 1.132e-06/1.129, allocations: 0 / 1.12 GB, free: 26.45 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/1.15, allocations: 1.745 MB / 1.122 GB, free: 26.26 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/1.15, allocations: 189.2 kB / 1.122 GB, free: 26.02 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.348/3.498, allocations: 2.875 kB / 1.122 GB, free: 26.02 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)