Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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.001301/0.001301, allocations: 108 kB / 15.61 MB, free: 152 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.001346/0.001346, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002569/0.002569, allocations: 287 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.053/1.053, allocations: 178.5 MB / 0.5073 GB, free: 4.57 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002638/0.002638, allocations: 102.1 kB / 0.6065 GB, free: 24.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1552, allocations: 89.15 MB / 0.6936 GB, free: 4.23 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002842/0.1581, allocations: 1.53 MB / 0.6951 GB, free: 2.695 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004552/0.1586, allocations: 180.9 kB / 0.6953 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.395e-05/0.1586, allocations: 1.469 kB / 0.6953 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.065e-05/0.1587, allocations: 3.938 kB / 0.6953 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.472e-05/0.1587, allocations: 7.922 kB / 0.6953 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.159, allocations: 51.89 kB / 0.6953 GB, free: 2.453 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.423e-05/0.1591, allocations: 38.78 kB / 0.6954 GB, free: 2.418 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.322e-05/0.1592, allocations: 12 kB / 0.6954 GB, free: 2.406 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.125e-05/0.1592, allocations: 15.92 kB / 0.6954 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.343e-05/0.1593, allocations: 19.92 kB / 0.6954 GB, free: 2.371 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.1593, allocations: 4.781 kB / 0.6954 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.1594, allocations: 47.94 kB / 0.6955 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.404e-05/0.1594, allocations: 4 kB / 0.6955 GB, free: 2.316 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.1595, allocations: 21.59 kB / 0.6955 GB, free: 2.297 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.1596, allocations: 64.12 kB / 0.6955 GB, free: 2.234 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1596, allocations: 0 / 0.6955 GB, free: 2.234 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1597, allocations: 0 / 0.6955 GB, free: 2.234 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1597, allocations: 4 kB / 0.6955 GB, free: 2.23 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005068/0.1602, allocations: 359.4 kB / 0.6959 GB, free: 1.828 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1602, allocations: 8.031 kB / 0.6959 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.513e-05/0.1603, allocations: 30.75 kB / 0.6959 GB, free: 1.781 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.692e-05/0.1603, allocations: 8.844 kB / 0.6959 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.1604, allocations: 168.4 kB / 0.6961 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.1605, allocations: 384 / 0.6961 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.1605, allocations: 8.312 kB / 0.6961 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.1607, allocations: 78.16 kB / 0.6962 GB, free: 1.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1607, allocations: 3.938 kB / 0.6962 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1607, allocations: 0 / 0.6962 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1607, allocations: 0 / 0.6962 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.1609, allocations: 43.95 kB / 0.6962 GB, free: 1.434 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004109/0.1614, allocations: 284.7 kB / 0.6965 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.1617, allocations: 66.47 kB / 0.6966 GB, free: 1.031 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.1618, allocations: 24.91 kB / 0.6966 GB, free: 1.004 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002303/0.162, allocations: 162.2 kB / 0.6967 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.1621, allocations: 34.56 kB / 0.6968 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1621, allocations: 4 kB / 0.6968 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003919/0.1625, allocations: 97.56 kB / 0.6969 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.1625, allocations: 51.41 kB / 0.6969 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.275e-05/0.1626, allocations: 109.8 kB / 0.697 GB, free: 492 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.1627, allocations: 25.7 kB / 0.697 GB, free: 460 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.307e-05/0.1627, allocations: 84.14 kB / 0.6971 GB, free: 372 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.1627, allocations: 7.906 kB / 0.6971 GB, free: 364 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/0.1628, allocations: 21.7 kB / 0.6972 GB, free: 336 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1629, allocations: 322.7 kB / 0.6975 GB, free: 4 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.163, allocations: 19.97 kB / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.715e-05/0.1631, allocations: 19.98 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.1633, allocations: 44.81 kB / 0.6975 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1633, allocations: 4 kB / 0.6975 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002216/0.1636, allocations: 77.78 kB / 0.6976 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.1636, allocations: 8 kB / 0.6976 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.1636, allocations: 0 / 0.6976 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.1636, allocations: 4 kB / 0.6976 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.172e-05/0.1637, allocations: 12.03 kB / 0.6976 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.1637, allocations: 320 / 0.6976 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.22e-05/0.1638, allocations: 11.97 kB / 0.6977 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.1638, allocations: 4 kB / 0.6977 GB, free: 15.79 MB / 0.4981 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 (bin.y,rea2Int.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.739e-05/0.1639, allocations: 118.4 kB / 0.6978 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.1639, allocations: 0 / 0.6978 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002805/0.1642, allocations: 93.47 kB / 0.6979 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.1642, allocations: 3.938 kB / 0.6979 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1642, allocations: 0 / 0.6979 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1642, allocations: 0 / 0.6979 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.1644, allocations: 181.5 kB / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1644, allocations: 0 / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.238e-05/0.1645, allocations: 8 kB / 0.698 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1645, allocations: 3.984 kB / 0.6981 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.1645, allocations: 4 kB / 0.6981 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1645, allocations: 0 / 0.6981 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1646, allocations: 0 / 0.6981 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002742/0.1648, allocations: 175.5 kB / 0.6982 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.1649, allocations: 81.05 kB / 0.6983 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.1649, allocations: 3.984 kB / 0.6983 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.348e-05/0.165, allocations: 4 kB / 0.6983 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.676e-05/0.1651, allocations: 15.92 kB / 0.6983 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.1651, allocations: 0 / 0.6983 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.124e-05/0.1651, allocations: 87.27 kB / 0.6984 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1651, allocations: 0 / 0.6984 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002452/0.1654, allocations: 20 kB / 0.6984 GB, free: 14.91 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: 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 (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.0006583/0.166, allocations: 0.724 MB / 0.6991 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002423/0.1663, allocations: 47.89 kB / 0.6992 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1663, allocations: 0 / 0.6992 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.1664, allocations: 27.97 kB / 0.6992 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.1667, allocations: 11.94 kB / 0.6992 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.1684, allocations: 1.28 MB / 0.7005 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.1687, allocations: 0.6846 MB / 0.7011 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.242e-05/0.1687, allocations: 4 kB / 0.7011 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/0.1688, allocations: 11.44 kB / 0.7011 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1688, allocations: 3.938 kB / 0.7012 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.1913, allocations: 1.906 MB / 0.703 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/7.632, allocations: 20.5 kB / 0.703 GB, free: 10.13 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)