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.001017/0.001017, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001319/0.001319, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 259.1 kB / 291.2 MB, free: 1.891 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.783/0.783, allocations: 144.6 MB / 487 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004953/0.0004953, allocations: 15.11 kB / 0.5684 GB, free: 38.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2087, allocations: 83.09 MB / 0.6495 GB, free: 3.488 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.00191/0.2107, allocations: 1.238 MB / 0.6507 GB, free: 2.242 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004112/0.2111, allocations: 160.3 kB / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.243e-05/0.2111, allocations: 0.9375 kB / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.65e-05/0.2112, allocations: 3.984 kB / 0.6509 GB, free: 2.082 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.693e-05/0.2112, allocations: 13.17 kB / 0.6509 GB, free: 2.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.2115, allocations: 35.83 kB / 0.651 GB, free: 2.035 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.602e-05/0.2116, allocations: 23.97 kB / 0.651 GB, free: 2.012 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.59e-05/0.2117, allocations: 9.719 kB / 0.651 GB, free: 2.004 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.58e-05/0.2117, allocations: 7.984 kB / 0.651 GB, free: 1.996 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.495e-05/0.2117, allocations: 19.92 kB / 0.651 GB, free: 1.977 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.2118, allocations: 1 kB / 0.651 GB, free: 1.977 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.2119, allocations: 39.95 kB / 0.651 GB, free: 1.938 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.2119, allocations: 6 kB / 0.6511 GB, free: 1.934 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.2119, allocations: 29.7 kB / 0.6511 GB, free: 1.898 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.212, allocations: 43.84 kB / 0.6511 GB, free: 1.855 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.212, allocations: 0 / 0.6511 GB, free: 1.855 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2121, allocations: 4 kB / 0.6511 GB, free: 1.852 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2121, allocations: 0 / 0.6511 GB, free: 1.852 MB / 446.1 MB 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.0004721/0.2125, allocations: 353.9 kB / 0.6515 GB, free: 1.461 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.2126, allocations: 8.031 kB / 0.6515 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.76e-05/0.2126, allocations: 34.56 kB / 0.6515 GB, free: 1.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.51e-05/0.2127, allocations: 0.7188 kB / 0.6515 GB, free: 1.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.2128, allocations: 174.9 kB / 0.6517 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.2128, allocations: 9.203 kB / 0.6517 GB, free: 1.191 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.2128, allocations: 7.938 kB / 0.6517 GB, free: 1.184 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.213, allocations: 62.86 kB / 0.6518 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.2131, allocations: 0.5938 kB / 0.6518 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.2131, allocations: 4.516 kB / 0.6518 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2131, allocations: 0 / 0.6518 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.2133, allocations: 59.23 kB / 0.6518 GB, free: 1.059 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004901/0.2138, allocations: 273.5 kB / 0.6521 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.2141, allocations: 68.69 kB / 0.6521 GB, free: 0.668 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002456/0.2144, allocations: 171 kB / 0.6523 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.2144, allocations: 31.31 kB / 0.6523 GB, free: 436 kB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.2144, allocations: 1.031 kB / 0.6523 GB, free: 436 kB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004487/0.2149, allocations: 120.6 kB / 0.6524 GB, free: 312 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.2149, allocations: 51.41 kB / 0.6525 GB, free: 248 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.753e-05/0.215, allocations: 108.2 kB / 0.6526 GB, free: 132 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.215, allocations: 25.7 kB / 0.6526 GB, free: 100 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.2151, allocations: 92.08 kB / 0.6527 GB, free: 4 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.2151, allocations: 8 kB / 0.6527 GB, free: 15.99 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.2151, allocations: 0 / 0.6527 GB, free: 15.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2152, allocations: 323.4 kB / 0.653 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.2154, allocations: 21.94 kB / 0.653 GB, free: 15.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.881e-05/0.2155, allocations: 24.67 kB / 0.6531 GB, free: 15.62 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.2156, allocations: 29.59 kB / 0.6531 GB, free: 15.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2156, allocations: 1.719 kB / 0.6531 GB, free: 15.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002367/0.2158, allocations: 86.22 kB / 0.6532 GB, free: 15.51 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.2159, allocations: 9.406 kB / 0.6532 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2159, allocations: 0 / 0.6532 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2159, allocations: 0 / 0.6532 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.116e-05/0.216, allocations: 12.89 kB / 0.6532 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.216, allocations: 4 kB / 0.6532 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.149e-05/0.2161, allocations: 14.92 kB / 0.6532 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.2161, allocations: 4 kB / 0.6532 GB, free: 15.47 MB / 462.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: 2 (rea2Int.y,bin.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.884e-05/0.2162, allocations: 114.1 kB / 0.6533 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.2162, allocations: 4 kB / 0.6533 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003324/0.2166, allocations: 99.94 kB / 0.6534 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2166, allocations: 0 / 0.6534 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.2166, allocations: 5.062 kB / 0.6534 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2166, allocations: 0 / 0.6534 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/0.2168, allocations: 169.6 kB / 0.6536 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2168, allocations: 7.984 kB / 0.6536 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.069e-05/0.2169, allocations: 8 kB / 0.6536 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.217, allocations: 4 kB / 0.6536 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.217, allocations: 3.984 kB / 0.6536 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.217, allocations: 3.938 kB / 0.6536 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.217, allocations: 0 / 0.6536 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.2173, allocations: 183.4 kB / 0.6538 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.424e-05/0.2174, allocations: 85.11 kB / 0.6539 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.2174, allocations: 3.984 kB / 0.6539 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.2176, allocations: 4 kB / 0.6539 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.2176, allocations: 7.984 kB / 0.6539 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.289e-06/0.2177, allocations: 11.88 kB / 0.6539 GB, free: 14.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.461e-05/0.2177, allocations: 91.27 kB / 0.654 GB, free: 14.58 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2177, allocations: 0 / 0.654 GB, free: 14.58 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.218, allocations: 16 kB / 0.654 GB, free: 14.56 MB / 462.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: 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 (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.0006767/0.2187, allocations: 0.7319 MB / 0.6547 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0003021/0.219, allocations: 59.95 kB / 0.6548 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2191, allocations: 3.938 kB / 0.6548 GB, free: 13.74 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.2192, allocations: 31.97 kB / 0.6548 GB, free: 13.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.2195, allocations: 0 / 0.6548 GB, free: 13.71 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.2206, allocations: 458.4 kB / 0.6553 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.221, allocations: 0.6848 MB / 0.6559 GB, free: 12.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.315e-05/0.221, allocations: 4 kB / 0.6559 GB, free: 12.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.816e-05/0.2211, allocations: 11.44 kB / 0.6559 GB, free: 12.49 MB / 462.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2211, allocations: 3.938 kB / 0.6559 GB, free: 12.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02936/0.2505, allocations: 1.618 MB / 0.6575 GB, free: 10.99 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003149/0.2508, allocations: 180.6 kB / 0.6577 GB, free: 10.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.016, allocations: 0 / 0.6577 GB, free: 10.75 MB / 462.1 MB (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) Environment - environmentSimulation: