Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 191.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00242/0.00242, allocations: 275.1 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.023/1.023, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002669/0.002669, allocations: 98.23 kB / 0.6066 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1506, allocations: 89.15 MB / 0.6936 GB, free: 4.199 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Binomial): time 0.001765/0.1524, allocations: 0.5744 MB / 0.6942 GB, free: 3.625 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003669/0.1528, allocations: 112.1 kB / 0.6943 GB, free: 3.516 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.1528, allocations: 6.094 kB / 0.6943 GB, free: 3.512 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.488e-05/0.1528, allocations: 0 / 0.6943 GB, free: 3.512 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.1529, allocations: 0 / 0.6943 GB, free: 3.512 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.1532, allocations: 35.84 kB / 0.6943 GB, free: 3.477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001147/0.1533, allocations: 63.92 kB / 0.6944 GB, free: 3.414 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.061e-05/0.1533, allocations: 5.344 kB / 0.6944 GB, free: 3.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.325e-05/0.1534, allocations: 23.98 kB / 0.6944 GB, free: 3.387 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.693e-05/0.1534, allocations: 27.95 kB / 0.6944 GB, free: 3.359 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.1535, allocations: 4 kB / 0.6944 GB, free: 3.355 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.1536, allocations: 40.67 kB / 0.6945 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.593e-05/0.1536, allocations: 19.97 kB / 0.6945 GB, free: 3.297 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.564e-05/0.1537, allocations: 28.52 kB / 0.6945 GB, free: 3.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.1538, allocations: 71.83 kB / 0.6946 GB, free: 3.199 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1538, allocations: 0.7812 kB / 0.6946 GB, free: 3.199 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1538, allocations: 0 / 0.6946 GB, free: 3.199 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.1538, allocations: 7.344 kB / 0.6946 GB, free: 3.195 MB / 494.1 MB 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.0005138/0.1544, allocations: 367.8 kB / 0.695 GB, free: 2.785 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1544, allocations: 15.95 kB / 0.695 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.205e-05/0.1544, allocations: 38.75 kB / 0.695 GB, free: 2.723 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.1545, allocations: 8.844 kB / 0.695 GB, free: 2.715 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.1546, allocations: 164.4 kB / 0.6952 GB, free: 2.516 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002821/0.1549, allocations: 281.6 kB / 0.6954 GB, free: 2.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.1549, allocations: 9.156 kB / 0.6954 GB, free: 2.172 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.1551, allocations: 77.95 kB / 0.6955 GB, free: 2.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1552, allocations: 5.594 kB / 0.6955 GB, free: 2.086 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1552, allocations: 4 kB / 0.6955 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.1552, allocations: 0 / 0.6955 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.1556, allocations: 139.7 kB / 0.6957 GB, free: 1.945 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001941/0.1558, allocations: 185.6 kB / 0.6958 GB, free: 1.715 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.1561, allocations: 90.53 kB / 0.6959 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.1562, allocations: 40.83 kB / 0.696 GB, free: 1.574 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.1562, allocations: 4 kB / 0.696 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.1563, allocations: 34.5 kB / 0.696 GB, free: 1.527 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.153e-06/0.1563, allocations: 0 / 0.696 GB, free: 1.527 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005249/0.1568, allocations: 165.7 kB / 0.6962 GB, free: 1.359 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.1569, allocations: 51.41 kB / 0.6962 GB, free: 1.297 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.363e-05/0.1569, allocations: 89.86 kB / 0.6963 GB, free: 1.199 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1569, allocations: 25.7 kB / 0.6963 GB, free: 1.168 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.189e-05/0.157, allocations: 80.14 kB / 0.6964 GB, free: 1.086 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.517e-05/0.157, allocations: 31.55 kB / 0.6964 GB, free: 1.055 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.1571, allocations: 33.7 kB / 0.6965 GB, free: 1.016 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1572, allocations: 318.8 kB / 0.6968 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.1574, allocations: 35.97 kB / 0.6968 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1575, allocations: 23.98 kB / 0.6968 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.1578, allocations: 80.75 kB / 0.6969 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1578, allocations: 0 / 0.6969 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003375/0.1581, allocations: 117.5 kB / 0.697 GB, free: 444 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1582, allocations: 7.938 kB / 0.697 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1582, allocations: 3.984 kB / 0.697 GB, free: 432 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1582, allocations: 0 / 0.697 GB, free: 432 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.1583, allocations: 23.98 kB / 0.697 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.1583, allocations: 4 kB / 0.697 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.042e-05/0.1584, allocations: 7.938 kB / 0.6971 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.1584, allocations: 7.984 kB / 0.6971 GB, free: 388 kB / 494.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.437e-05/0.1585, allocations: 118.4 kB / 0.6972 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.899e-05/0.1586, allocations: 11.84 kB / 0.6972 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.1586, allocations: 15.95 kB / 0.6972 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1586, allocations: 0 / 0.6972 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1586, allocations: 4 kB / 0.6972 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.1586, allocations: 4 kB / 0.6972 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.1588, allocations: 173.6 kB / 0.6974 GB, free: 0 / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1588, allocations: 0 / 0.6974 GB, free: 0 / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.1589, allocations: 27.97 kB / 0.6974 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.1589, allocations: 7.922 kB / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.1589, allocations: 7.938 kB / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1589, allocations: 0 / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.159, allocations: 4 kB / 0.6974 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003538/0.1593, allocations: 147.7 kB / 0.6976 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.1594, allocations: 84.98 kB / 0.6976 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.1594, allocations: 8 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.488e-05/0.1594, allocations: 4 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.183e-05/0.1595, allocations: 15.97 kB / 0.6977 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.1595, allocations: 4 kB / 0.6977 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.833e-05/0.1596, allocations: 75.28 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1596, allocations: 0 / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002248/0.1598, allocations: 28 kB / 0.6978 GB, free: 15.56 MB / 0.4981 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007312/0.1605, allocations: 0.7072 MB / 0.6985 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003413/0.1609, allocations: 103.8 kB / 0.6986 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1609, allocations: 0 / 0.6986 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/0.1611, allocations: 39.97 kB / 0.6986 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.1612, allocations: 12 kB / 0.6986 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004943/0.1617, allocations: 194.7 kB / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.162, allocations: 0.6807 MB / 0.6995 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001632/0.1622, allocations: 39.94 kB / 0.6995 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.843e-05/0.1622, allocations: 27.36 kB / 0.6995 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1622, allocations: 0 / 0.6995 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.1835, allocations: 2.002 MB / 0.7015 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.477/7.661, allocations: 6.25 kB / 0.7015 GB, free: 11.75 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial_res.csv --start-time 0 --stop-time 15.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00636 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1)