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.0007807/0.0007807, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00494/0.00494, allocations: 171.7 kB / 16.27 MB, free: 6.652 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.214/1.214, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00165/0.00165, allocations: 278.8 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8408/0.8408, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003967, allocations: 16.52 kB / 0.5988 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1284, allocations: 88.54 MB / 0.6852 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Binomial): time 0.0005925/0.129, allocations: 301.4 kB / 0.6855 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003466/0.1294, allocations: 116.2 kB / 0.6856 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.069e-05/0.1294, allocations: 0 / 0.6856 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.153e-05/0.1294, allocations: 1.969 kB / 0.6856 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.237e-06/0.1295, allocations: 0 / 0.6856 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.1297, allocations: 23.97 kB / 0.6857 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.1298, allocations: 67.86 kB / 0.6857 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.679e-05/0.1299, allocations: 4 kB / 0.6857 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.223e-05/0.1299, allocations: 20.61 kB / 0.6858 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.189e-05/0.13, allocations: 25.14 kB / 0.6858 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.13, allocations: 4 kB / 0.6858 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.1301, allocations: 47.91 kB / 0.6858 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.64e-05/0.1301, allocations: 23.95 kB / 0.6859 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.999e-05/0.1302, allocations: 54.12 kB / 0.6859 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.1303, allocations: 69.23 kB / 0.686 GB, free: 14.19 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1303, allocations: 0 / 0.686 GB, free: 14.19 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1303, allocations: 0 / 0.686 GB, free: 14.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1304, allocations: 0 / 0.686 GB, free: 14.19 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.0003919/0.1308, allocations: 357.1 kB / 0.6863 GB, free: 13.79 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1308, allocations: 12.03 kB / 0.6863 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.542e-05/0.1308, allocations: 36.44 kB / 0.6864 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.058e-05/0.1309, allocations: 16.84 kB / 0.6864 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.747e-05/0.131, allocations: 164.4 kB / 0.6865 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.1312, allocations: 277.6 kB / 0.6868 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.1312, allocations: 11.12 kB / 0.6868 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.1314, allocations: 85.88 kB / 0.6869 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.1314, allocations: 0 / 0.6869 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.1315, allocations: 4 kB / 0.6869 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1315, allocations: 4 kB / 0.6869 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.1318, allocations: 135.7 kB / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001469/0.132, allocations: 174.2 kB / 0.6872 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.1322, allocations: 96.11 kB / 0.6873 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.1324, allocations: 40.84 kB / 0.6873 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.1324, allocations: 9.656 kB / 0.6873 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.1324, allocations: 34.5 kB / 0.6874 GB, free: 12.54 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.032e-06/0.1324, allocations: 4 kB / 0.6874 GB, free: 12.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004746/0.1329, allocations: 150.6 kB / 0.6875 GB, free: 12.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.133, allocations: 53.88 kB / 0.6876 GB, free: 12.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.894e-05/0.133, allocations: 97.77 kB / 0.6877 GB, free: 12.21 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.133, allocations: 25.7 kB / 0.6877 GB, free: 12.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.927e-05/0.133, allocations: 80.14 kB / 0.6878 GB, free: 12.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.1331, allocations: 35.48 kB / 0.6878 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.1331, allocations: 17.72 kB / 0.6878 GB, free: 12.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.503e-05/0.1332, allocations: 316.9 kB / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.1333, allocations: 31.97 kB / 0.6881 GB, free: 11.69 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.1335, allocations: 35.97 kB / 0.6882 GB, free: 11.66 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/0.1337, allocations: 73.38 kB / 0.6882 GB, free: 11.58 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1337, allocations: 0 / 0.6882 GB, free: 11.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003118/0.1341, allocations: 119.2 kB / 0.6884 GB, free: 11.46 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1341, allocations: 7.938 kB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1341, allocations: 3.938 kB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.207e-06/0.1341, allocations: 0 / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.1342, allocations: 28.59 kB / 0.6884 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.1343, allocations: 0 / 0.6884 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.915e-05/0.1343, allocations: 8.719 kB / 0.6884 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.1343, allocations: 0 / 0.6884 GB, free: 11.41 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: 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 7.177e-05/0.1344, allocations: 127.9 kB / 0.6885 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.225e-05/0.1344, allocations: 3.938 kB / 0.6885 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.418e-05/0.1345, allocations: 13.27 kB / 0.6885 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1345, allocations: 4 kB / 0.6885 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1345, allocations: 0 / 0.6885 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1345, allocations: 0.75 kB / 0.6885 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.1346, allocations: 177.5 kB / 0.6887 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1346, allocations: 4 kB / 0.6887 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1347, allocations: 31.97 kB / 0.6888 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1347, allocations: 3.938 kB / 0.6888 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.1348, allocations: 0 / 0.6888 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1348, allocations: 4 kB / 0.6888 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1348, allocations: 7.922 kB / 0.6888 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.1351, allocations: 141.7 kB / 0.6889 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.094e-05/0.1351, allocations: 88.89 kB / 0.689 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.1352, allocations: 8 kB / 0.689 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-05/0.1352, allocations: 7.984 kB / 0.689 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.1353, allocations: 15.98 kB / 0.689 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.076e-06/0.1353, allocations: 3.984 kB / 0.689 GB, free: 10.69 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.958e-05/0.1353, allocations: 79.28 kB / 0.6891 GB, free: 10.61 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1353, allocations: 0 / 0.6891 GB, free: 10.61 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.1355, allocations: 24 kB / 0.6891 GB, free: 10.59 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: 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.0005789/0.1361, allocations: 0.6943 MB / 0.6898 GB, free: 9.867 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003008/0.1364, allocations: 83.88 kB / 0.6899 GB, free: 9.785 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.1364, allocations: 4 kB / 0.6899 GB, free: 9.781 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1366, allocations: 47.89 kB / 0.6899 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.1367, allocations: 8 kB / 0.6899 GB, free: 9.727 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.1372, allocations: 212.5 kB / 0.6901 GB, free: 9.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.1373, allocations: 0.6809 MB / 0.6908 GB, free: 8.773 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.1375, allocations: 39.94 kB / 0.6908 GB, free: 8.734 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.1375, allocations: 23.42 kB / 0.6909 GB, free: 8.711 MB / 494.1 MB Notification: Performance of SimCode: time 1.453e-06/0.1375, allocations: 0 / 0.6909 GB, free: 8.711 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3845/0.522, allocations: 1.804 MB / 0.6926 GB, free: 7.051 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002455/0.5223, allocations: 212.6 kB / 0.6928 GB, free: 6.797 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.165, allocations: 0 / 0.6928 GB, free: 6.797 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial_fmu --startTime=0 --stopTime=15.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1)