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.004863/0.004863, allocations: 99.83 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 187.6 kB / 16.67 MB, free: 5.977 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00213/0.00213, allocations: 282.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9492/0.9492, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 103.8 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1634, allocations: 86.98 MB / 0.7659 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002512/0.166, allocations: 1.523 MB / 0.7674 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004385/0.1664, allocations: 180.2 kB / 0.7676 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.042e-05/0.1665, allocations: 4 kB / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.488e-05/0.1665, allocations: 0 / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.023e-05/0.1666, allocations: 3.938 kB / 0.7676 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.1669, allocations: 51.88 kB / 0.7676 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.286e-05/0.167, allocations: 35.91 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.287e-05/0.1671, allocations: 20.22 kB / 0.7677 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.166e-05/0.1671, allocations: 15.92 kB / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.515e-05/0.1672, allocations: 23.91 kB / 0.7677 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.1672, allocations: 0 / 0.7677 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.1673, allocations: 47.97 kB / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.75e-05/0.1674, allocations: 7.984 kB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.895e-05/0.1674, allocations: 23.86 kB / 0.7678 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.1675, allocations: 67.72 kB / 0.7679 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1675, allocations: 0 / 0.7679 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1675, allocations: 0 / 0.7679 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.1676, allocations: 4 kB / 0.7679 GB, free: 6.883 MB / 0.5606 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.0004261/0.168, allocations: 355.5 kB / 0.7682 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.168, allocations: 8.031 kB / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.1681, allocations: 34.75 kB / 0.7682 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.772e-05/0.1681, allocations: 4.844 kB / 0.7683 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.975e-05/0.1682, allocations: 168.3 kB / 0.7684 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.1682, allocations: 12.3 kB / 0.7684 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.1682, allocations: 4.375 kB / 0.7684 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.1684, allocations: 62.23 kB / 0.7685 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.1684, allocations: 7.875 kB / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.1685, allocations: 0 / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.1685, allocations: 4 kB / 0.7685 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.1687, allocations: 47.94 kB / 0.7685 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003348/0.169, allocations: 280.7 kB / 0.7688 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.1693, allocations: 62.48 kB / 0.7689 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.335e-05/0.1694, allocations: 28.89 kB / 0.7689 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001962/0.1696, allocations: 166.2 kB / 0.7691 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.1697, allocations: 30.56 kB / 0.7691 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1697, allocations: 4 kB / 0.7691 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003592/0.17, allocations: 93.62 kB / 0.7692 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.1701, allocations: 51.41 kB / 0.7692 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.954e-05/0.1701, allocations: 113.8 kB / 0.7693 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.1702, allocations: 25.7 kB / 0.7694 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.1702, allocations: 88.05 kB / 0.7694 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.1702, allocations: 7.906 kB / 0.7695 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.424e-05/0.1703, allocations: 25.7 kB / 0.7695 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.1704, allocations: 314.8 kB / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.327e-05/0.1705, allocations: 23.97 kB / 0.7698 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.818e-05/0.1705, allocations: 15.98 kB / 0.7698 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.1707, allocations: 44.81 kB / 0.7699 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1707, allocations: 4 kB / 0.7699 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002033/0.1709, allocations: 73.66 kB / 0.7699 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.1709, allocations: 4 kB / 0.7699 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.171, allocations: 0 / 0.7699 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.171, allocations: 0 / 0.7699 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.533e-05/0.171, allocations: 15.92 kB / 0.77 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1711, allocations: 0 / 0.77 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.567e-05/0.1711, allocations: 7.984 kB / 0.77 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1711, allocations: 8.312 kB / 0.77 GB, free: 4.457 MB / 0.5606 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 7.036e-05/0.1712, allocations: 118.4 kB / 0.7701 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.1712, allocations: 11.84 kB / 0.7701 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002422/0.1715, allocations: 89.47 kB / 0.7702 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1715, allocations: 0 / 0.7702 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1715, allocations: 4 kB / 0.7702 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1715, allocations: 4 kB / 0.7702 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.1717, allocations: 169.6 kB / 0.7703 GB, free: 4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1717, allocations: 3.984 kB / 0.7704 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.111e-05/0.1718, allocations: 11.94 kB / 0.7704 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1718, allocations: 0 / 0.7704 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1718, allocations: 4.359 kB / 0.7704 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1718, allocations: 0 / 0.7704 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1718, allocations: 0 / 0.7704 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.172, allocations: 179.4 kB / 0.7705 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.1721, allocations: 81.02 kB / 0.7706 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.1721, allocations: 7.984 kB / 0.7706 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.094e-05/0.1722, allocations: 4 kB / 0.7706 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.1722, allocations: 7.984 kB / 0.7706 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.1722, allocations: 4 kB / 0.7706 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.613e-05/0.1723, allocations: 83.28 kB / 0.7707 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1723, allocations: 0 / 0.7707 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002364/0.1725, allocations: 27.98 kB / 0.7707 GB, free: 3.559 MB / 0.5606 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.0005351/0.1731, allocations: 0.7163 MB / 0.7714 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002168/0.1733, allocations: 43.95 kB / 0.7715 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1733, allocations: 0 / 0.7715 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.915e-05/0.1734, allocations: 31.91 kB / 0.7715 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.1737, allocations: 10.34 kB / 0.7715 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.1749, allocations: 1.296 MB / 0.7728 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001951/0.1752, allocations: 0.6807 MB / 0.7735 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.955e-05/0.1752, allocations: 4 kB / 0.7735 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.895e-05/0.1752, allocations: 15.44 kB / 0.7735 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.1752, allocations: 0 / 0.7735 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3236/0.4988, allocations: 1.921 MB / 0.7754 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.06/7.559, allocations: 11.25 kB / 0.7754 GB, free: 14.41 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)