Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Binomial.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.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Binomial",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.424/1.424, allocations: 252 MB / 267 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 180.3 kB / 326.6 MB, free: 2.223 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.857/1.857, allocations: 205.4 MB / 0.5777 GB, free: 20.26 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.0006936/0.0006937, allocations: 100 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003435/0.0003439, allocations: 9.562 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2073, allocations: 106.3 MB / 0.9003 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.001483/0.2089, allocations: 1.252 MB / 0.9015 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003845/0.2093, allocations: 168.4 kB / 0.9017 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.209e-05/0.2093, allocations: 4 kB / 0.9017 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.636e-05/0.2094, allocations: 3.938 kB / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.803e-05/0.2094, allocations: 0 / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.2097, allocations: 39.89 kB / 0.9017 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.413e-05/0.2098, allocations: 31.92 kB / 0.9018 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.144e-05/0.2098, allocations: 15.92 kB / 0.9018 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 2.435e-05/0.2099, allocations: 15.92 kB / 0.9018 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 3.494e-05/0.2099, allocations: 11.98 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.2099, allocations: 4 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.875e-05/0.21, allocations: 39.95 kB / 0.9018 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.2101, allocations: 3.938 kB / 0.9018 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.985e-05/0.2101, allocations: 29.7 kB / 0.9019 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.707e-05/0.2102, allocations: 47.92 kB / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2102, allocations: 0 / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2102, allocations: 0 / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.2102, allocations: 0 / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003808/0.2106, allocations: 355.5 kB / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.2106, allocations: 12.03 kB / 0.9023 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.884e-05/0.2107, allocations: 30.56 kB / 0.9023 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.581e-05/0.2107, allocations: 7.906 kB / 0.9023 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.525e-05/0.2108, allocations: 171 kB / 0.9025 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.2108, allocations: 0 / 0.9025 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.2108, allocations: 8 kB / 0.9025 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.211, allocations: 69.64 kB / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.211, allocations: 0 / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.2111, allocations: 8 kB / 0.9026 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.2111, allocations: 4 kB / 0.9026 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.2113, allocations: 51.95 kB / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.2116, allocations: 284.7 kB / 0.9029 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.2119, allocations: 62.55 kB / 0.9029 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.504e-05/0.212, allocations: 28.89 kB / 0.903 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001719/0.2122, allocations: 174.2 kB / 0.9031 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.36e-05/0.2122, allocations: 30.56 kB / 0.9032 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.2122, allocations: 0 / 0.9032 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003651/0.2126, allocations: 117.6 kB / 0.9033 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.068e-05/0.2126, allocations: 55.36 kB / 0.9033 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.006e-05/0.2127, allocations: 109.8 kB / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.346e-06/0.2127, allocations: 25.7 kB / 0.9035 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.639e-05/0.2127, allocations: 88.05 kB / 0.9035 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.293e-05/0.2127, allocations: 11.84 kB / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.2127, allocations: 0 / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.2128, allocations: 322.8 kB / 0.9039 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.765e-05/0.2129, allocations: 19.98 kB / 0.9039 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.83e-05/0.213, allocations: 23.98 kB / 0.9039 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.64e-05/0.2131, allocations: 31.97 kB / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2131, allocations: 3.938 kB / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001912/0.2133, allocations: 85.88 kB / 0.904 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2133, allocations: 7.938 kB / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2133, allocations: 48 / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.2133, allocations: 3.984 kB / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.706e-05/0.2134, allocations: 19.98 kB / 0.904 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2134, allocations: 3.953 kB / 0.9041 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.712e-05/0.2135, allocations: 11.98 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.2135, allocations: 0 / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,bin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 5.134e-05/0.2135, allocations: 113.8 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.2136, allocations: 3.906 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.2138, allocations: 97.48 kB / 0.9043 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2138, allocations: 0 / 0.9043 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2138, allocations: 0 / 0.9043 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2138, allocations: 3.953 kB / 0.9043 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.214, allocations: 169.6 kB / 0.9044 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.214, allocations: 4 kB / 0.9044 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.113e-05/0.214, allocations: 12 kB / 0.9044 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2141, allocations: 3.984 kB / 0.9045 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.2141, allocations: 0 / 0.9045 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2141, allocations: 0 / 0.9045 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2141, allocations: 0 / 0.9045 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.2143, allocations: 183.5 kB / 0.9046 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.794e-05/0.2143, allocations: 81.02 kB / 0.9047 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.2143, allocations: 7.922 kB / 0.9047 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.2144, allocations: 12 kB / 0.9047 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.2145, allocations: 7.984 kB / 0.9047 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.2145, allocations: 8 kB / 0.9047 GB, free: 58.87 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.459e-05/0.2145, allocations: 91.64 kB / 0.9048 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2145, allocations: 0 / 0.9048 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002165/0.2147, allocations: 16 kB / 0.9048 GB, free: 58.76 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,bin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004268/0.2152, allocations: 0.7358 MB / 0.9056 GB, free: 58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.2154, allocations: 59.89 kB / 0.9056 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2154, allocations: 0 / 0.9056 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.357e-05/0.2155, allocations: 31.97 kB / 0.9056 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.2158, allocations: 6.188 kB / 0.9057 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007383/0.2165, allocations: 462.2 kB / 0.9061 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.832e-05/0.2167, allocations: 0.6848 MB / 0.9068 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.186e-05/0.2167, allocations: 4 kB / 0.9068 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.2167, allocations: 19.42 kB / 0.9068 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.2167, allocations: 0 / 0.9068 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01174/0.2285, allocations: 1.631 MB / 0.9084 GB, free: 55.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000126/0.2286, allocations: 182 kB / 0.9086 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/1.82, allocations: 0 / 0.9086 GB, free: 54.93 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1)