Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.014/2.014, allocations: 390.5 MB / 398 MB, free: 10.99 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009489/0.0009489, allocations: 169 kB / 491.2 MB, free: 1.629 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.5 MB / 0.7868 GB, free: 13.26 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000829/0.000829, allocations: 91.84 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.021e-05, allocations: 8 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2285, allocations: 143 MB / 1.212 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7457/0.9743, allocations: 148.9 MB / 1.358 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.9745, allocations: 80.91 kB / 1.358 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003664/0.9782, allocations: 1.218 MB / 1.359 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.124e-06/0.9782, allocations: 0 / 1.359 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.9782, allocations: 7.906 kB / 1.359 GB, free: 33.27 MB / 0.8386 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.0003399/0.9786, allocations: 353.3 kB / 1.359 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.9786, allocations: 11.53 kB / 1.359 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.132e-05/0.9787, allocations: 9.766 kB / 1.359 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.503e-05/0.9788, allocations: 167 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.9789, allocations: 286.6 kB / 1.36 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.979, allocations: 3.844 kB / 1.36 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000219/0.9792, allocations: 118.3 kB / 1.36 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.9793, allocations: 71.53 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.9793, allocations: 0 / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.9793, allocations: 0 / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.9794, allocations: 0 / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.9795, allocations: 155.7 kB / 1.36 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.119e-05/0.9796, allocations: 75.55 kB / 1.36 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.074e-05/0.9796, allocations: 33.8 kB / 1.36 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.9797, allocations: 7.438 kB / 1.36 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.9797, allocations: 34.38 kB / 1.36 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.062e-06/0.9797, allocations: 0 / 1.36 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.001316/0.981, allocations: 206.5 kB / 1.361 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.888e-05/0.9811, allocations: 55.58 kB / 1.361 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.862e-05/0.9811, allocations: 86.55 kB / 1.361 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.9811, allocations: 29.64 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.003e-05/0.9811, allocations: 80.33 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/0.9812, allocations: 33.36 kB / 1.361 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.9812, allocations: 0 / 1.361 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.9813, allocations: 319.4 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.569e-05/0.9813, allocations: 21.91 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.096e-05/0.9814, allocations: 23.47 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.9825, allocations: 135.3 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.9825, allocations: 0 / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.001173/0.9837, allocations: 211.9 kB / 1.362 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.9837, allocations: 3.844 kB / 1.362 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.9837, allocations: 7.906 kB / 1.362 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.9837, allocations: 0 / 1.362 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.9839, allocations: 25.66 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.9839, allocations: 0 / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.984e-05/0.9839, allocations: 5.609 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.984, allocations: 8.734 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.876e-05/0.984, allocations: 102.3 kB / 1.362 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001155/0.9852, allocations: 210.8 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/0.9852, allocations: 7.875 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.519e-05/0.9852, allocations: 16.81 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.9852, allocations: 0 / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.9853, allocations: 3.188 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.9853, allocations: 7.875 kB / 1.362 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.059e-05/0.9854, allocations: 151.9 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.9854, allocations: 3.953 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.9855, allocations: 25.84 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.9855, allocations: 0 / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.9855, allocations: 4.062 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.9855, allocations: 0 / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.9855, allocations: 4 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.9867, allocations: 233.2 kB / 1.362 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.166e-05/0.9867, allocations: 85.66 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.9868, allocations: 8.609 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.114e-05/0.9868, allocations: 1.266 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.095e-05/0.9869, allocations: 18.27 kB / 1.362 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.9869, allocations: 1.828 kB / 1.362 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.227e-05/0.9869, allocations: 79.28 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9869, allocations: 3.906 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002136/0.9871, allocations: 23.62 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.001501/0.9887, allocations: 0.7886 MB / 1.363 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000117/0.9888, allocations: 65.98 kB / 1.363 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.9888, allocations: 4 kB / 1.363 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.719e-05/0.9888, allocations: 39.27 kB / 1.363 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.562e-05/0.9889, allocations: 0.8594 kB / 1.363 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003268/0.9893, allocations: 145.1 kB / 1.364 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.9895, allocations: 0.69 MB / 1.364 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001179/0.9896, allocations: 43.8 kB / 1.364 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.9897, allocations: 21.67 kB / 1.364 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of SimCode: time 4.01e-07/0.9897, allocations: 0 / 1.364 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/1.008, allocations: 1.453 MB / 1.366 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/1.008, allocations: 142.8 kB / 1.366 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.276/2.285, allocations: 0 / 1.366 GB, free: 29.08 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial_fmu --startTime=0 --stopTime=15.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat does not exist to compare? outputFormat=mat