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.004678/0.004678, allocations: 100.3 kB / 15.73 MB, free: 6 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.001124/0.001124, allocations: 195.1 kB / 16.67 MB, free: 5.922 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.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001933/0.001933, allocations: 286.9 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8821/0.8821, allocations: 169.2 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 99.83 kB / 0.681 GB, free: 7.457 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4383/0.4401, allocations: 86.98 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002674/0.4428, allocations: 1.521 MB / 0.7674 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004746/0.4433, allocations: 176.3 kB / 0.7676 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.268e-05/0.4433, allocations: 0 / 0.7676 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.145e-05/0.4434, allocations: 3.938 kB / 0.7676 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.856e-05/0.4434, allocations: 3.938 kB / 0.7676 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.4438, allocations: 51.88 kB / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.508e-05/0.4439, allocations: 39.86 kB / 0.7677 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.386e-05/0.444, allocations: 18.8 kB / 0.7677 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.37e-05/0.444, allocations: 19.92 kB / 0.7677 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.637e-05/0.4441, allocations: 19.91 kB / 0.7677 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.4441, allocations: 4 kB / 0.7677 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.4442, allocations: 43.97 kB / 0.7678 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.533e-05/0.4442, allocations: 11.92 kB / 0.7678 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.097e-05/0.4443, allocations: 19.92 kB / 0.7678 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.4444, allocations: 63.78 kB / 0.7679 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.4444, allocations: 4 kB / 0.7679 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.272e-06/0.4444, allocations: 4 kB / 0.7679 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.165e-06/0.4444, allocations: 0 / 0.7679 GB, free: 1.871 MB / 0.5294 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.0005065/0.445, allocations: 359.4 kB / 0.7682 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.445, allocations: 11.97 kB / 0.7682 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.445, allocations: 30.75 kB / 0.7682 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.4451, allocations: 8.844 kB / 0.7683 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.4452, allocations: 160.4 kB / 0.7684 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.4452, allocations: 12.38 kB / 0.7684 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.4452, allocations: 4.375 kB / 0.7684 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.4454, allocations: 66.22 kB / 0.7685 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.4454, allocations: 3.938 kB / 0.7685 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.4454, allocations: 0 / 0.7685 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.4455, allocations: 0 / 0.7685 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.4456, allocations: 51.88 kB / 0.7685 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.446, allocations: 284.7 kB / 0.7688 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.4463, allocations: 58.55 kB / 0.7689 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.426e-05/0.4464, allocations: 24.83 kB / 0.7689 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002128/0.4466, allocations: 170.3 kB / 0.7691 GB, free: 460 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.4467, allocations: 38.5 kB / 0.7691 GB, free: 412 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.4467, allocations: 0 / 0.7691 GB, free: 412 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003601/0.447, allocations: 97.62 kB / 0.7692 GB, free: 308 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.4471, allocations: 51.41 kB / 0.7692 GB, free: 244 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.015e-05/0.4472, allocations: 105.8 kB / 0.7693 GB, free: 128 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.4472, allocations: 25.7 kB / 0.7694 GB, free: 96 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.904e-05/0.4472, allocations: 88.14 kB / 0.7694 GB, free: 4 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.4473, allocations: 13.78 kB / 0.7695 GB, free: 15.99 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.4473, allocations: 21.7 kB / 0.7695 GB, free: 15.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4474, allocations: 314.8 kB / 0.7698 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.69e-05/0.4475, allocations: 19.98 kB / 0.7698 GB, free: 15.62 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-05/0.4476, allocations: 27.91 kB / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.4478, allocations: 44.81 kB / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4478, allocations: 0 / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002043/0.448, allocations: 77.56 kB / 0.7699 GB, free: 15.47 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.448, allocations: 8 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.448, allocations: 0 / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.448, allocations: 336 / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.887e-05/0.4481, allocations: 11.98 kB / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.4481, allocations: 0 / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.685e-05/0.4482, allocations: 15.92 kB / 0.77 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.4482, allocations: 4 kB / 0.77 GB, free: 15.43 MB / 0.545 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.253e-05/0.4483, allocations: 117.7 kB / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.685e-05/0.4483, allocations: 3.984 kB / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002429/0.4486, allocations: 85.55 kB / 0.7702 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4486, allocations: 0 / 0.7702 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4486, allocations: 0 / 0.7702 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.4486, allocations: 4 kB / 0.7702 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.4488, allocations: 169.5 kB / 0.7703 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4488, allocations: 0 / 0.7703 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.504e-05/0.4489, allocations: 11.98 kB / 0.7704 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.4489, allocations: 3.938 kB / 0.7704 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.4489, allocations: 0 / 0.7704 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.4489, allocations: 0 / 0.7704 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4489, allocations: 7.984 kB / 0.7704 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.4491, allocations: 179.4 kB / 0.7705 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.4492, allocations: 77.11 kB / 0.7706 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.4492, allocations: 4 kB / 0.7706 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.211e-05/0.4493, allocations: 7.984 kB / 0.7706 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.4494, allocations: 11.98 kB / 0.7706 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.4494, allocations: 0 / 0.7706 GB, free: 14.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.27e-05/0.4494, allocations: 87.28 kB / 0.7707 GB, free: 14.57 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4494, allocations: 0 / 0.7707 GB, free: 14.57 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002361/0.4497, allocations: 16 kB / 0.7707 GB, free: 14.55 MB / 0.545 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.0005667/0.4502, allocations: 0.7279 MB / 0.7714 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002099/0.4505, allocations: 47.95 kB / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4505, allocations: 0 / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.4506, allocations: 27.97 kB / 0.7715 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.4508, allocations: 4 kB / 0.7715 GB, free: 13.72 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.4522, allocations: 1.299 MB / 0.7728 GB, free: 12.35 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.4525, allocations: 0.6846 MB / 0.7735 GB, free: 11.64 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.983e-05/0.4525, allocations: 4 kB / 0.7735 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.4526, allocations: 11.44 kB / 0.7735 GB, free: 11.62 MB / 0.545 GB Notification: Performance of SimCode: time 3.1e-07/0.4526, allocations: 3.938 kB / 0.7735 GB, free: 11.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.4707, allocations: 1.966 MB / 0.7754 GB, free: 9.746 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.048/7.519, allocations: 0.625 kB / 0.7754 GB, free: 9.746 MB / 0.545 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)