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.001066/0.001066, 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.001102/0.001102, allocations: 196.6 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002185/0.002185, allocations: 278.6 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9641/0.9641, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 99.06 kB / 0.5953 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.147, allocations: 86.98 MB / 0.6803 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002611/0.1496, allocations: 1.53 MB / 0.6818 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000422/0.1501, allocations: 172.9 kB / 0.6819 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.52e-05/0.1501, allocations: 0.625 kB / 0.6819 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.553e-05/0.1502, allocations: 3.938 kB / 0.6819 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.065e-05/0.1502, allocations: 5.906 kB / 0.6819 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.1505, allocations: 51.88 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.283e-05/0.1506, allocations: 35.92 kB / 0.682 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.961e-05/0.1507, allocations: 20.25 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.056e-05/0.1508, allocations: 15.94 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.877e-05/0.1508, allocations: 15.92 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.1508, allocations: 4 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.1509, allocations: 51.94 kB / 0.6821 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/0.151, allocations: 4 kB / 0.6821 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.151, allocations: 19.86 kB / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.1511, allocations: 63.8 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1511, allocations: 0 / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1511, allocations: 0 / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.1511, allocations: 8 kB / 0.6822 GB, free: 14.56 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.0004167/0.1516, allocations: 347.5 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1516, allocations: 12.03 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.264e-05/0.1517, allocations: 38.69 kB / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.1517, allocations: 8.938 kB / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1518, allocations: 172.2 kB / 0.6828 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.1518, allocations: 4.375 kB / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.1518, allocations: 384 / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.152, allocations: 70.17 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1521, allocations: 3.938 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.1521, allocations: 11.97 kB / 0.6829 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.1521, allocations: 0 / 0.6829 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/0.1523, allocations: 47.94 kB / 0.6829 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000339/0.1526, allocations: 276.8 kB / 0.6832 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.1529, allocations: 58.53 kB / 0.6832 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.781e-05/0.153, allocations: 24.91 kB / 0.6833 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001992/0.1533, allocations: 166.2 kB / 0.6834 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.1533, allocations: 42.5 kB / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1533, allocations: 0 / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003676/0.1537, allocations: 101.5 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.602e-05/0.1537, allocations: 51.41 kB / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.827e-05/0.1538, allocations: 109.8 kB / 0.6837 GB, free: 12.81 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1538, allocations: 25.7 kB / 0.6837 GB, free: 12.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.521e-05/0.1538, allocations: 84.14 kB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.1539, allocations: 15.89 kB / 0.6838 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.1539, allocations: 13.72 kB / 0.6838 GB, free: 12.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.879e-05/0.154, allocations: 318.8 kB / 0.6841 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.963e-05/0.1541, allocations: 19.97 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.065e-05/0.1542, allocations: 19.98 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.1543, allocations: 52.75 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1544, allocations: 0 / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002104/0.1546, allocations: 77.56 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.1546, allocations: 4 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1546, allocations: 4 kB / 0.6843 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.1546, allocations: 0 / 0.6843 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.893e-05/0.1547, allocations: 11.98 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1547, allocations: 0 / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.867e-05/0.1548, allocations: 11.98 kB / 0.6843 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.1548, allocations: 0 / 0.6843 GB, free: 12.13 MB / 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: 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 6.487e-05/0.1549, allocations: 118.4 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.1549, allocations: 0 / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002468/0.1551, allocations: 85.48 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1552, allocations: 3.938 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1552, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1552, allocations: 8.359 kB / 0.6845 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.1553, allocations: 173.5 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1553, allocations: 0 / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.538e-05/0.1554, allocations: 11.98 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1554, allocations: 0 / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.1554, allocations: 0 / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1554, allocations: 4 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1554, allocations: 0 / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002506/0.1557, allocations: 183.3 kB / 0.6849 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.1557, allocations: 85.09 kB / 0.685 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.1558, allocations: 0 / 0.685 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.1558, allocations: 8 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.1559, allocations: 7.984 kB / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.1559, allocations: 0 / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.074e-05/0.156, allocations: 91.56 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.156, allocations: 4 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002363/0.1562, allocations: 16 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB 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.0005361/0.1567, allocations: 0.7318 MB / 0.6858 GB, free: 10.48 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.157, allocations: 55.94 kB / 0.6859 GB, free: 10.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.157, allocations: 0 / 0.6859 GB, free: 10.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.535e-05/0.1571, allocations: 23.98 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.1574, allocations: 1.891 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.1587, allocations: 1.296 MB / 0.6872 GB, free: 9.031 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.1589, allocations: 0.6768 MB / 0.6878 GB, free: 8.328 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.949e-05/0.1589, allocations: 4 kB / 0.6878 GB, free: 8.324 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.961e-05/0.159, allocations: 15.44 kB / 0.6878 GB, free: 8.309 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.159, allocations: 0 / 0.6878 GB, free: 8.309 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.1765, allocations: 1.909 MB / 0.6897 GB, free: 6.469 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.895/7.071, allocations: 10.27 kB / 0.6897 GB, free: 6.465 MB / 494.1 MB (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)