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.004973/0.004973, allocations: 98.69 kB / 15.73 MB, free: 6.07 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.001293/0.001293, allocations: 192.3 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002533/0.002533, allocations: 282.1 kB / 290.8 MB, free: 1.762 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9395/0.9395, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002583/0.002583, allocations: 96.75 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1482, allocations: 86.98 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002363/0.1506, allocations: 1.531 MB / 0.7674 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004144/0.151, allocations: 184.3 kB / 0.7676 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.042e-05/0.151, allocations: 0 / 0.7676 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.327e-05/0.1511, allocations: 3.938 kB / 0.7676 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.983e-05/0.1511, allocations: 3.938 kB / 0.7676 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1514, allocations: 51.88 kB / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.281e-05/0.1515, allocations: 35.92 kB / 0.7677 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.58e-05/0.1516, allocations: 15.97 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.712e-05/0.1516, allocations: 19.94 kB / 0.7677 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.974e-05/0.1516, allocations: 19.91 kB / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.1516, allocations: 4 kB / 0.7677 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.1518, allocations: 51.89 kB / 0.7678 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.491e-05/0.1518, allocations: 7.984 kB / 0.7678 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.29e-05/0.1518, allocations: 15.88 kB / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.152, allocations: 64.06 kB / 0.7679 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.152, allocations: 0 / 0.7679 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.363e-06/0.152, allocations: 4 kB / 0.7679 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.152, allocations: 0 / 0.7679 GB, free: 6.906 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.0004549/0.1524, allocations: 359.3 kB / 0.7682 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.1525, allocations: 8.031 kB / 0.7682 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.247e-05/0.1525, allocations: 38.69 kB / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.442e-05/0.1525, allocations: 8.891 kB / 0.7683 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.1527, allocations: 168.3 kB / 0.7684 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.1527, allocations: 4.375 kB / 0.7684 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.1527, allocations: 4.375 kB / 0.7684 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.1529, allocations: 62.22 kB / 0.7685 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1529, allocations: 7.938 kB / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.1529, allocations: 4 kB / 0.7685 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.1529, allocations: 0 / 0.7685 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.1531, allocations: 39.95 kB / 0.7685 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003527/0.1535, allocations: 292.6 kB / 0.7688 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.1538, allocations: 54.55 kB / 0.7689 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.473e-05/0.1539, allocations: 28.89 kB / 0.7689 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000208/0.1541, allocations: 170.2 kB / 0.7691 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.1541, allocations: 34.5 kB / 0.7691 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1541, allocations: 0 / 0.7691 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003491/0.1545, allocations: 97.62 kB / 0.7692 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.1545, allocations: 51.41 kB / 0.7692 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.66e-05/0.1546, allocations: 113.8 kB / 0.7694 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.1546, allocations: 25.7 kB / 0.7694 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.1547, allocations: 88.14 kB / 0.7695 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.124e-05/0.1547, allocations: 3.953 kB / 0.7695 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.1547, allocations: 13.72 kB / 0.7695 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1549, allocations: 326.8 kB / 0.7698 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.255e-05/0.155, allocations: 19.98 kB / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.542e-05/0.155, allocations: 19.97 kB / 0.7698 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.1552, allocations: 44.77 kB / 0.7699 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1552, allocations: 0 / 0.7699 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002107/0.1554, allocations: 81.64 kB / 0.7699 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/0.1554, allocations: 4 kB / 0.77 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-06/0.1554, allocations: 4 kB / 0.77 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1555, allocations: 0 / 0.77 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.732e-05/0.1555, allocations: 12.31 kB / 0.77 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.1556, allocations: 3.938 kB / 0.77 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.967e-05/0.1556, allocations: 11.94 kB / 0.77 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.1556, allocations: 0 / 0.77 GB, free: 4.473 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 8.564e-05/0.1557, allocations: 126.4 kB / 0.7701 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.1558, allocations: 3.984 kB / 0.7701 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002323/0.156, allocations: 85.48 kB / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.156, allocations: 0 / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.156, allocations: 0 / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.156, allocations: 0 / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.1562, allocations: 169.6 kB / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1562, allocations: 0 / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/0.1563, allocations: 15.98 kB / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1563, allocations: 0 / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.1563, allocations: 0 / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1563, allocations: 0 / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1563, allocations: 0 / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.1566, allocations: 191.3 kB / 0.7705 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.1566, allocations: 81.05 kB / 0.7706 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.1566, allocations: 4 kB / 0.7706 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.1567, allocations: 7.984 kB / 0.7706 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.1568, allocations: 7.984 kB / 0.7706 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.1568, allocations: 0 / 0.7706 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.075e-05/0.1569, allocations: 87.28 kB / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1569, allocations: 0 / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003094/0.1572, allocations: 16 kB / 0.7707 GB, free: 3.59 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.0005834/0.1578, allocations: 0.7318 MB / 0.7715 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002058/0.158, allocations: 47.95 kB / 0.7715 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.158, allocations: 0 / 0.7715 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.418e-05/0.1581, allocations: 31.97 kB / 0.7715 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.1584, allocations: 0 / 0.7715 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.1598, allocations: 1.292 MB / 0.7728 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.1601, allocations: 0.6846 MB / 0.7735 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.875e-05/0.1601, allocations: 8 kB / 0.7735 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.797e-05/0.1602, allocations: 15.44 kB / 0.7735 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of SimCode: time 2.81e-07/0.1602, allocations: 0 / 0.7735 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.104/1.264, allocations: 1.933 MB / 0.7754 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/12.57, allocations: 12.92 kB / 0.7754 GB, free: 14.42 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)