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.478/1.478, allocations: 249.3 MB / 261.8 MB, free: 5.984 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.0009773/0.0009773, allocations: 176.9 kB / 321.3 MB, free: 14.66 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.594/1.594, allocations: 205.2 MB / 0.572 GB, free: 10.71 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.001031/0.001031, allocations: 103.7 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.095e-05/4.099e-05, allocations: 4 kB / 0.788 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2669, allocations: 106.3 MB / 0.8919 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8407/1.108, allocations: 131.8 MB / 1.021 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/1.108, allocations: 75.05 kB / 1.021 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003004/1.111, allocations: 0.9517 MB / 1.022 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.924e-06/1.111, allocations: 0 / 1.022 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.684e-06/1.111, allocations: 0 / 1.022 GB, free: 1.977 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.0005338/1.112, allocations: 362.3 kB / 1.022 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/1.112, allocations: 12.03 kB / 1.022 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.964e-05/1.112, allocations: 43.92 kB / 1.022 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.001e-05/1.112, allocations: 7.906 kB / 1.022 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/1.112, allocations: 167 kB / 1.022 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/1.112, allocations: 7.938 kB / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/1.112, allocations: 7.125 kB / 1.022 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/1.112, allocations: 70.36 kB / 1.022 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/1.112, allocations: 3.938 kB / 1.022 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/1.112, allocations: 0 / 1.022 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/1.112, allocations: 0 / 1.022 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.62e-05/1.112, allocations: 34.61 kB / 1.022 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006334/1.113, allocations: 332 kB / 1.023 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/1.113, allocations: 72.19 kB / 1.023 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.632e-05/1.113, allocations: 32.11 kB / 1.023 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/1.113, allocations: 4 kB / 1.023 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/1.113, allocations: 81.3 kB / 1.023 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.505e-06/1.113, allocations: 0 / 1.023 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002774/1.114, allocations: 110.6 kB / 1.023 GB, free: 0.6016 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/1.114, allocations: 59.36 kB / 1.023 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.23e-05/1.114, allocations: 101.7 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/1.114, allocations: 37.58 kB / 1.023 GB, free: 400 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.414e-05/1.114, allocations: 92.14 kB / 1.023 GB, free: 308 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/1.114, allocations: 27.31 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/1.114, allocations: 3.938 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001389/1.114, allocations: 314.8 kB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.314e-05/1.114, allocations: 19.88 kB / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-05/1.114, allocations: 60.8 kB / 1.024 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.612e-05/1.114, allocations: 30.73 kB / 1.024 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.114, allocations: 0 / 1.024 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001941/1.115, allocations: 109.1 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/1.115, allocations: 8 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.115, allocations: 3.938 kB / 1.024 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/1.115, allocations: 112 / 1.024 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/1.115, allocations: 39.25 kB / 1.024 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/1.115, allocations: 0 / 1.024 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/1.115, allocations: 15.86 kB / 1.024 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/1.115, allocations: 6.594 kB / 1.024 GB, free: 15.71 MB / 0.6511 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.0001005/1.115, allocations: 122.7 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/1.115, allocations: 4 kB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/1.115, allocations: 116.2 kB / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.115, allocations: 4 kB / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/1.115, allocations: 0 / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/1.115, allocations: 8.219 kB / 1.024 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000421/1.116, allocations: 385.8 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.116, allocations: 4 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.057e-05/1.116, allocations: 8 kB / 1.024 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/1.116, allocations: 0 / 1.024 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/1.116, allocations: 11.3 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/1.116, allocations: 4 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.116, allocations: 3.953 kB / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/1.116, allocations: 205.2 kB / 1.025 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/1.116, allocations: 84.95 kB / 1.025 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/1.116, allocations: 3.938 kB / 1.025 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/1.116, allocations: 11.98 kB / 1.025 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.917e-05/1.116, allocations: 11.98 kB / 1.025 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/1.116, allocations: 7.953 kB / 1.025 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.463e-05/1.117, allocations: 82.53 kB / 1.025 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.41e-07/1.117, allocations: 0 / 1.025 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002302/1.117, allocations: 23.42 kB / 1.025 GB, free: 14.62 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: 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.0005214/1.117, allocations: 0.7499 MB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001678/1.117, allocations: 73.92 kB / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/1.117, allocations: 0 / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.728e-05/1.118, allocations: 38.94 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/1.118, allocations: 8.609 kB / 1.026 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004753/1.118, allocations: 141.1 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/1.119, allocations: 0.6928 MB / 1.026 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.932e-05/1.119, allocations: 4.438 kB / 1.026 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/1.119, allocations: 22.92 kB / 1.026 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of SimCode: time 5.51e-07/1.119, allocations: 0 / 1.026 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01392/1.133, allocations: 1.628 MB / 1.028 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/1.133, allocations: 171.7 kB / 1.028 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.487/2.62, allocations: 0 / 1.028 GB, free: 11.16 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)