Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.723/1.723, allocations: 289.9 MB / 297.4 MB, free: 6.352 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.001146/0.001146, allocations: 172.9 kB / 366.7 MB, free: 1.648 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.726/1.726, allocations: 205.2 MB / 0.626 GB, free: 7.184 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.0008078/0.0008077, allocations: 96.25 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.993e-05/1.995e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5904/0.5905, allocations: 116.3 MB / 0.9734 GB, free: 76.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1895/0.78, allocations: 138.3 MB / 1.108 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.7803, allocations: 76.53 kB / 1.108 GB, free: 11.72 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003544/0.7839, allocations: 1.155 MB / 1.11 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7839, allocations: 0.875 kB / 1.11 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.7839, allocations: 0 / 1.11 GB, free: 10.59 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.0004707/0.7844, allocations: 373 kB / 1.11 GB, free: 10.18 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.7844, allocations: 16.02 kB / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.7845, allocations: 4.531 kB / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.7846, allocations: 173.5 kB / 1.11 GB, free: 9.953 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.7846, allocations: 8 kB / 1.11 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.7846, allocations: 4 kB / 1.11 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.239e-05/0.7847, allocations: 24.78 kB / 1.11 GB, free: 9.918 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.7849, allocations: 61.67 kB / 1.11 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.7849, allocations: 3.219 kB / 1.11 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.7849, allocations: 0 / 1.11 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.7849, allocations: 4.719 kB / 1.11 GB, free: 9.848 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005477/0.7855, allocations: 308.3 kB / 1.111 GB, free: 9.512 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.7856, allocations: 60.89 kB / 1.111 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.677e-05/0.7856, allocations: 28.86 kB / 1.111 GB, free: 9.414 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.7857, allocations: 7.984 kB / 1.111 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.7858, allocations: 74 kB / 1.111 GB, free: 9.324 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 2.304e-06/0.7858, allocations: 0 / 1.111 GB, free: 9.324 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0002092/0.786, allocations: 104.5 kB / 1.111 GB, free: 9.219 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.7861, allocations: 63.34 kB / 1.111 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.321e-05/0.7861, allocations: 99.98 kB / 1.111 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.7862, allocations: 29.7 kB / 1.111 GB, free: 9.008 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.674e-05/0.7862, allocations: 86.19 kB / 1.111 GB, free: 8.918 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.7862, allocations: 29.23 kB / 1.111 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.7862, allocations: 0 / 1.111 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.783e-05/0.7864, allocations: 328.2 kB / 1.111 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.365e-05/0.7864, allocations: 20 kB / 1.111 GB, free: 8.543 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.327e-05/0.7865, allocations: 48.97 kB / 1.111 GB, free: 8.492 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.7866, allocations: 39.14 kB / 1.112 GB, free: 8.457 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.7866, allocations: 0.875 kB / 1.112 GB, free: 8.457 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002348/0.7869, allocations: 118 kB / 1.112 GB, free: 8.336 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.7869, allocations: 5.125 kB / 1.112 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.7869, allocations: 0 / 1.112 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.7869, allocations: 4 kB / 1.112 GB, free: 8.328 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.7871, allocations: 25.67 kB / 1.112 GB, free: 8.305 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.7871, allocations: 3.938 kB / 1.112 GB, free: 8.301 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.175e-05/0.7872, allocations: 19.95 kB / 1.112 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.7872, allocations: 4 kB / 1.112 GB, free: 8.277 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 7.855e-05/0.7873, allocations: 116.9 kB / 1.112 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001529/0.7875, allocations: 107.4 kB / 1.112 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.2e-05/0.7875, allocations: 7.906 kB / 1.112 GB, free: 8.039 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001766/0.7877, allocations: 114.2 kB / 1.112 GB, free: 7.922 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.7877, allocations: 0 / 1.112 GB, free: 7.922 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.7877, allocations: 0 / 1.112 GB, free: 7.922 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.7877, allocations: 3.984 kB / 1.112 GB, free: 7.918 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003313/0.788, allocations: 361.5 kB / 1.112 GB, free: 7.523 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.788, allocations: 0 / 1.112 GB, free: 7.523 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.33e-05/0.7881, allocations: 15.98 kB / 1.112 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.7881, allocations: 0 / 1.112 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/0.7882, allocations: 0 / 1.112 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.7882, allocations: 0 / 1.112 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.7882, allocations: 7.188 kB / 1.112 GB, free: 7.504 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/0.7884, allocations: 203.4 kB / 1.113 GB, free: 7.289 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.7884, allocations: 89 kB / 1.113 GB, free: 7.184 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.7884, allocations: 4 kB / 1.113 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.7886, allocations: 11.98 kB / 1.113 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.7886, allocations: 4 kB / 1.113 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.7886, allocations: 7.922 kB / 1.113 GB, free: 7.156 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.112e-05/0.7887, allocations: 87.28 kB / 1.113 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7887, allocations: 4 kB / 1.113 GB, free: 7.066 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002396/0.7889, allocations: 22.72 kB / 1.113 GB, free: 7.047 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.0005138/0.7894, allocations: 0.7512 MB / 1.114 GB, free: 6.27 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001416/0.7896, allocations: 63.94 kB / 1.114 GB, free: 6.207 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.7896, allocations: 128 / 1.114 GB, free: 6.207 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.616e-05/0.7897, allocations: 39.98 kB / 1.114 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.7899, allocations: 6.062 kB / 1.114 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003996/0.7903, allocations: 140.7 kB / 1.114 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.7906, allocations: 0.6846 MB / 1.114 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.964e-05/0.7906, allocations: 9.219 kB / 1.114 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.547e-05/0.7906, allocations: 19.44 kB / 1.114 GB, free: 5.258 MB / 0.7136 GB Notification: Performance of SimCode: time 2.61e-07/0.7907, allocations: 4 kB / 1.114 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.8099, allocations: 1.427 MB / 1.116 GB, free: 3.875 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/0.8101, allocations: 147.3 kB / 1.116 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/2.385, allocations: 0 / 1.116 GB, free: 3.684 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)