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.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.434/1.434, allocations: 249.5 MB / 257 MB, free: 6.926 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.0009949/0.0009949, allocations: 175.7 kB / 316.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.3 MB / 0.5671 GB, free: 15.91 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.0009038/0.0009038, allocations: 92.62 kB / 0.6714 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.048e-05/2.052e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2373, allocations: 106.3 MB / 0.8853 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7607/0.998, allocations: 132 MB / 1.014 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.9984, allocations: 77.77 kB / 1.014 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002762/1.001, allocations: 0.9448 MB / 1.015 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.884e-06/1.001, allocations: 0 / 1.015 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.285e-06/1.001, allocations: 0 / 1.015 GB, free: 4.578 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005649/1.002, allocations: 368.2 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/1.002, allocations: 12.03 kB / 1.016 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.118e-05/1.002, allocations: 3.906 kB / 1.016 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/1.002, allocations: 167 kB / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/1.002, allocations: 4 kB / 1.016 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/1.002, allocations: 7.984 kB / 1.016 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001158/1.002, allocations: 25.75 kB / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/1.002, allocations: 74.81 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/1.002, allocations: 0 / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/1.002, allocations: 0 / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/1.002, allocations: 8 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005754/1.003, allocations: 302.8 kB / 1.016 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001258/1.003, allocations: 65.58 kB / 1.016 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.489e-05/1.003, allocations: 31.34 kB / 1.016 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/1.003, allocations: 0 / 1.016 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000145/1.003, allocations: 78.14 kB / 1.016 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/1.003, allocations: 0 / 1.016 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002542/1.004, allocations: 106.2 kB / 1.016 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/1.004, allocations: 56.23 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.307e-05/1.004, allocations: 103.3 kB / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/1.004, allocations: 25.7 kB / 1.017 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/1.004, allocations: 87.44 kB / 1.017 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.702e-05/1.004, allocations: 22.7 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/1.004, allocations: 0 / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001411/1.004, allocations: 321.7 kB / 1.017 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.868e-05/1.004, allocations: 25.56 kB / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.072e-05/1.004, allocations: 58.62 kB / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.91e-05/1.004, allocations: 26.69 kB / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/1.004, allocations: 3.938 kB / 1.017 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001936/1.005, allocations: 106.8 kB / 1.017 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/1.005, allocations: 4 kB / 1.017 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/1.005, allocations: 0 / 1.017 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/1.005, allocations: 4 kB / 1.017 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/1.005, allocations: 28.02 kB / 1.017 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/1.005, allocations: 4 kB / 1.017 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.647e-05/1.005, allocations: 16.58 kB / 1.017 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/1.005, allocations: 4 kB / 1.017 GB, free: 2.426 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 0.0001014/1.005, allocations: 116 kB / 1.017 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001633/1.005, allocations: 99.48 kB / 1.018 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/1.005, allocations: 3.906 kB / 1.018 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002047/1.005, allocations: 117.9 kB / 1.018 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/1.005, allocations: 3.938 kB / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/1.005, allocations: 5.25 kB / 1.018 GB, free: 2.109 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/1.005, allocations: 3.984 kB / 1.018 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003694/1.006, allocations: 351.5 kB / 1.018 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.006, allocations: 0 / 1.018 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.107e-05/1.006, allocations: 15.92 kB / 1.018 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/1.006, allocations: 4 kB / 1.018 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/1.006, allocations: 4 kB / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.006, allocations: 0 / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.006, allocations: 0 / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/1.006, allocations: 212.3 kB / 1.018 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/1.006, allocations: 92.94 kB / 1.018 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/1.006, allocations: 4 kB / 1.018 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/1.006, allocations: 19.67 kB / 1.018 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.817e-05/1.006, allocations: 4 kB / 1.018 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/1.006, allocations: 7.984 kB / 1.018 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.904e-05/1.007, allocations: 86.98 kB / 1.018 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.1e-07/1.007, allocations: 0 / 1.018 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002445/1.007, allocations: 12 kB / 1.018 GB, free: 1.293 MB / 0.6355 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.0005461/1.007, allocations: 0.7377 MB / 1.019 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000155/1.008, allocations: 66.42 kB / 1.019 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/1.008, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.199e-05/1.008, allocations: 34.94 kB / 1.019 GB, free: 492 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/1.008, allocations: 10.61 kB / 1.019 GB, free: 484 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/1.008, allocations: 132.9 kB / 1.019 GB, free: 332 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/1.009, allocations: 0.6924 MB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.512e-05/1.009, allocations: 8.375 kB / 1.02 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.491e-05/1.009, allocations: 19.05 kB / 1.02 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of SimCode: time 2.8e-07/1.009, allocations: 0 / 1.02 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/1.029, allocations: 1.294 MB / 1.021 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/1.029, allocations: 170 kB / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.405/2.434, allocations: 0 / 1.022 GB, free: 14.1 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)