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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9207/0.9207, allocations: 141.8 MB / 149.3 MB, free: 9.188 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 180.8 kB / 182.2 MB, free: 9.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.833/1.833, allocations: 221.5 MB / 436.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 95.8 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001987/0.001987, allocations: 285.2 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.165e-05, allocations: 8 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6413/0.6413, allocations: 82.77 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1709/0.8123, allocations: 108.6 MB / 0.8635 GB, free: 3.176 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003775/0.8128, allocations: 72.98 kB / 0.8636 GB, free: 3.105 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.004526/0.8174, allocations: 1.33 MB / 0.8649 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8174, allocations: 0 / 0.8649 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.8174, allocations: 0 / 0.8649 GB, free: 1.773 MB / 0.5261 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.0004954/0.8179, allocations: 362.4 kB / 0.8652 GB, free: 1.375 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.818, allocations: 8.031 kB / 0.8652 GB, free: 1.367 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.877e-05/0.818, allocations: 3.906 kB / 0.8652 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.8182, allocations: 167.1 kB / 0.8654 GB, free: 1.16 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.8182, allocations: 7.891 kB / 0.8654 GB, free: 1.152 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.8183, allocations: 4 kB / 0.8654 GB, free: 1.148 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.592e-05/0.8184, allocations: 23.94 kB / 0.8654 GB, free: 1.125 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.8185, allocations: 41.69 kB / 0.8654 GB, free: 1.078 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.8185, allocations: 0 / 0.8654 GB, free: 1.078 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.8185, allocations: 0 / 0.8654 GB, free: 1.078 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.8185, allocations: 7.984 kB / 0.8655 GB, free: 1.07 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000464/0.819, allocations: 261.3 kB / 0.8657 GB, free: 0.7773 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.8193, allocations: 42.5 kB / 0.8657 GB, free: 0.7266 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.059e-05/0.8193, allocations: 12.92 kB / 0.8658 GB, free: 0.7109 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004849/0.8198, allocations: 413.7 kB / 0.8662 GB, free: 220 kB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.8198, allocations: 34.56 kB / 0.8662 GB, free: 176 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.8199, allocations: 0 / 0.8662 GB, free: 176 kB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.000401/0.8203, allocations: 57.67 kB / 0.8662 GB, free: 112 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.8203, allocations: 51.41 kB / 0.8663 GB, free: 48 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.8204, allocations: 105 kB / 0.8664 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.264e-05/0.8205, allocations: 25.7 kB / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.8206, allocations: 84.05 kB / 0.8665 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.8206, allocations: 12 kB / 0.8665 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.8206, allocations: 0 / 0.8665 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.8208, allocations: 318.8 kB / 0.8668 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.159e-05/0.8208, allocations: 8 kB / 0.8668 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.668e-05/0.8208, allocations: 4 kB / 0.8668 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.821, allocations: 23.94 kB / 0.8668 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.821, allocations: 0 / 0.8668 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000197/0.8212, allocations: 65.58 kB / 0.8669 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.8212, allocations: 4 kB / 0.8669 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.8213, allocations: 5.016 kB / 0.8669 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.8213, allocations: 0 / 0.8669 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.557e-05/0.8214, allocations: 19.92 kB / 0.8669 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.8214, allocations: 0 / 0.8669 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.222e-05/0.8215, allocations: 7.984 kB / 0.8669 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.8215, allocations: 4 kB / 0.8669 GB, free: 15.34 MB / 0.5417 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,bin.k) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.588e-05/0.8216, allocations: 108.9 kB / 0.8671 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002098/0.8218, allocations: 65.61 kB / 0.8671 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.8218, allocations: 3.906 kB / 0.8671 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.8221, allocations: 73.78 kB / 0.8672 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.8221, allocations: 288 / 0.8672 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.8221, allocations: 0 / 0.8672 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.8221, allocations: 7.984 kB / 0.8672 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001479/0.8223, allocations: 142.2 kB / 0.8673 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.8223, allocations: 0 / 0.8673 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.727e-05/0.8224, allocations: 23.92 kB / 0.8674 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.8224, allocations: 0 / 0.8674 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.8224, allocations: 3.938 kB / 0.8674 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.8224, allocations: 0 / 0.8674 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.8225, allocations: 0 / 0.8674 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002547/0.8227, allocations: 155.5 kB / 0.8675 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.8228, allocations: 89.03 kB / 0.8676 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.8228, allocations: 0 / 0.8676 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.519e-05/0.8229, allocations: 8 kB / 0.8676 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.68e-05/0.823, allocations: 11.98 kB / 0.8676 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.823, allocations: 0 / 0.8676 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.021e-05/0.823, allocations: 83.53 kB / 0.8677 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.823, allocations: 0 / 0.8677 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002564/0.8233, allocations: 35.83 kB / 0.8677 GB, free: 14.46 MB / 0.5417 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 (bin.y,bin.k) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006766/0.824, allocations: 0.7144 MB / 0.8684 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.924e-05/0.8241, allocations: 20 kB / 0.8684 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.8241, allocations: 0 / 0.8684 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.164e-05/0.8241, allocations: 19.98 kB / 0.8685 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.8244, allocations: 2.344 kB / 0.8685 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004281/0.8248, allocations: 113.5 kB / 0.8686 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.8251, allocations: 0.6846 MB / 0.8692 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.197e-05/0.8252, allocations: 0 / 0.8692 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.8252, allocations: 19.42 kB / 0.8693 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.8252, allocations: 0 / 0.8693 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.8516, allocations: 1.229 MB / 0.8705 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002766/0.852, allocations: 138.8 kB / 0.8706 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/2.677, allocations: 8 kB / 0.8706 GB, free: 11.38 MB / 0.5417 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/linux/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)