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.725/1.725, allocations: 288.2 MB / 303.2 MB, free: 8.246 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.001565/0.001565, allocations: 179.7 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.712/1.712, allocations: 205.4 MB / 0.6305 GB, free: 9.984 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.001158/0.001158, allocations: 90.94 kB / 0.7439 GB, free: 5.906 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004396/0.00044, allocations: 16.28 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.29, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00101/0.2911, allocations: 406.1 kB / 0.9799 GB, free: 27.19 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.2923, allocations: 1.048 MB / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.302e-05/0.2924, allocations: 0 / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.79e-05/0.2924, allocations: 0 / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.278e-05/0.2925, allocations: 7.938 kB / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.2927, allocations: 39.89 kB / 0.9809 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.517e-05/0.2928, allocations: 43.88 kB / 0.981 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.2929, allocations: 4 kB / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.556e-05/0.293, allocations: 23.98 kB / 0.981 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.697e-05/0.2931, allocations: 31.83 kB / 0.981 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.2931, allocations: 7.938 kB / 0.981 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.984e-05/0.2932, allocations: 15.98 kB / 0.9811 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.949e-05/0.2932, allocations: 11.98 kB / 0.9811 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.469e-05/0.2932, allocations: 33.64 kB / 0.9811 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.2934, allocations: 59.88 kB / 0.9812 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2934, allocations: 0 / 0.9812 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.454e-06/0.2934, allocations: 0 / 0.9812 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.2934, allocations: 0 / 0.9812 GB, free: 25.84 MB / 0.6198 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.000609/0.294, allocations: 371.5 kB / 0.9815 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2941, allocations: 20.02 kB / 0.9815 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.43e-05/0.2941, allocations: 34.56 kB / 0.9816 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.2941, allocations: 7.906 kB / 0.9816 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.267e-05/0.2942, allocations: 171 kB / 0.9817 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.2943, allocations: 3.984 kB / 0.9817 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.2943, allocations: 12 kB / 0.9818 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/0.2945, allocations: 81.59 kB / 0.9818 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2945, allocations: 4 kB / 0.9818 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.2946, allocations: 3.984 kB / 0.9818 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.2946, allocations: 7.984 kB / 0.9819 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.2948, allocations: 63.89 kB / 0.9819 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004836/0.2953, allocations: 320.6 kB / 0.9822 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.2954, allocations: 86.47 kB / 0.9823 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.2955, allocations: 0 / 0.9823 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.2957, allocations: 99.36 kB / 0.9824 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.2957, allocations: 0 / 0.9824 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004742/0.2962, allocations: 189.6 kB / 0.9826 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.2962, allocations: 59.41 kB / 0.9826 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.549e-05/0.2963, allocations: 105.8 kB / 0.9827 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.2963, allocations: 29.7 kB / 0.9828 GB, free: 24 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.793e-05/0.2964, allocations: 84.38 kB / 0.9828 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.2964, allocations: 27.64 kB / 0.9829 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.094e-06/0.2964, allocations: 8 kB / 0.9829 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.748e-05/0.2965, allocations: 318.8 kB / 0.9832 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.2966, allocations: 43.91 kB / 0.9832 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.2967, allocations: 70.53 kB / 0.9833 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.2969, allocations: 47.98 kB / 0.9833 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2969, allocations: 0 / 0.9833 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002939/0.2972, allocations: 153.6 kB / 0.9835 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2972, allocations: 4 kB / 0.9835 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2972, allocations: 4 kB / 0.9835 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.2972, allocations: 0 / 0.9835 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.2973, allocations: 24.23 kB / 0.9835 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.2974, allocations: 7.938 kB / 0.9835 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.033e-05/0.2974, allocations: 27.83 kB / 0.9835 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.2975, allocations: 4 kB / 0.9836 GB, free: 23.16 MB / 0.6198 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 7.836e-05/0.2975, allocations: 122.8 kB / 0.9837 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.2976, allocations: 7.984 kB / 0.9837 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003084/0.2979, allocations: 158.2 kB / 0.9838 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2979, allocations: 4 kB / 0.9838 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2979, allocations: 0 / 0.9838 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2979, allocations: 0 / 0.9838 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004253/0.2983, allocations: 426.3 kB / 0.9842 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2984, allocations: 0 / 0.9842 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.368e-05/0.2984, allocations: 11.98 kB / 0.9842 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2984, allocations: 0 / 0.9842 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2984, allocations: 4 kB / 0.9843 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2985, allocations: 3.938 kB / 0.9843 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2985, allocations: 0 / 0.9843 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.2988, allocations: 251.4 kB / 0.9845 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.457e-05/0.2988, allocations: 84.95 kB / 0.9846 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.2988, allocations: 4 kB / 0.9846 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-05/0.2989, allocations: 11.98 kB / 0.9846 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.299, allocations: 15.92 kB / 0.9846 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.299, allocations: 4 kB / 0.9846 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.006e-05/0.299, allocations: 79.28 kB / 0.9847 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.299, allocations: 0 / 0.9847 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002344/0.2993, allocations: 27.94 kB / 0.9847 GB, free: 21.87 MB / 0.6198 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.0005234/0.2998, allocations: 0.7868 MB / 0.9855 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002775/0.3001, allocations: 111.9 kB / 0.9856 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3001, allocations: 0 / 0.9856 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.3002, allocations: 55.91 kB / 0.9856 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.3004, allocations: 4.75 kB / 0.9856 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005925/0.301, allocations: 0.6821 MB / 0.9863 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.3012, allocations: 0.6926 MB / 0.987 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.646e-05/0.3012, allocations: 4.438 kB / 0.987 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.96e-05/0.3013, allocations: 27.36 kB / 0.987 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of SimCode: time 3.81e-07/0.3013, allocations: 0 / 0.987 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01384/0.3151, allocations: 1.758 MB / 0.9887 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/0.3153, allocations: 203.7 kB / 0.9889 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/1.887, allocations: 7.016 kB / 0.9889 GB, free: 17.56 MB / 0.6198 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)