Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",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.0009476/0.0009476, allocations: 99.31 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.001232/0.001232, allocations: 177.3 kB / 15.95 MB, free: 216 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.437/1.437, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00173/0.00173, allocations: 266.7 kB / 291.2 MB, free: 1.941 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.835/0.835, allocations: 144.6 MB / 487 MB, free: 7.199 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006202/0.0006204, allocations: 16.94 kB / 0.5684 GB, free: 38.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2201, allocations: 83.09 MB / 0.6495 GB, free: 3.512 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002634/0.2228, allocations: 1.236 MB / 0.6507 GB, free: 2.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005053/0.2234, allocations: 123.7 kB / 0.6509 GB, free: 2.148 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.133e-05/0.2234, allocations: 0 / 0.6509 GB, free: 2.148 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.464e-05/0.2235, allocations: 3.938 kB / 0.6509 GB, free: 2.145 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.459e-05/0.2235, allocations: 3.984 kB / 0.6509 GB, free: 2.141 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.2239, allocations: 28.47 kB / 0.6509 GB, free: 2.113 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.992e-05/0.224, allocations: 30.41 kB / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.2241, allocations: 4 kB / 0.6509 GB, free: 2.082 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.521e-05/0.2241, allocations: 11.98 kB / 0.6509 GB, free: 2.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.568e-05/0.2242, allocations: 23.91 kB / 0.651 GB, free: 2.047 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.2243, allocations: 0 / 0.651 GB, free: 2.047 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.838e-05/0.2243, allocations: 9.812 kB / 0.651 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.705e-05/0.2244, allocations: 7.984 kB / 0.651 GB, free: 2.031 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.677e-05/0.2244, allocations: 33.64 kB / 0.651 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.2245, allocations: 27.94 kB / 0.651 GB, free: 1.965 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2245, allocations: 0 / 0.651 GB, free: 1.965 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.2246, allocations: 4.5 kB / 0.651 GB, free: 1.961 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2246, allocations: 0.625 kB / 0.651 GB, free: 1.961 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.0006266/0.2252, allocations: 353.2 kB / 0.6514 GB, free: 1.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.2253, allocations: 12.02 kB / 0.6514 GB, free: 1.559 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.924e-05/0.2253, allocations: 31.28 kB / 0.6514 GB, free: 1.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.2254, allocations: 4 kB / 0.6514 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.2256, allocations: 164.1 kB / 0.6516 GB, free: 1.316 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.2256, allocations: 11.95 kB / 0.6516 GB, free: 1.305 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.2256, allocations: 0.6562 kB / 0.6516 GB, free: 1.305 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000307/0.226, allocations: 74.72 kB / 0.6517 GB, free: 1.227 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.226, allocations: 0.5625 kB / 0.6517 GB, free: 1.227 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.226, allocations: 3.938 kB / 0.6517 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.226, allocations: 1.781 kB / 0.6517 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.2264, allocations: 56.83 kB / 0.6517 GB, free: 1.168 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005078/0.2269, allocations: 271 kB / 0.652 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.2273, allocations: 67.88 kB / 0.652 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003574/0.2277, allocations: 398.4 kB / 0.6524 GB, free: 308 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.2278, allocations: 35.58 kB / 0.6525 GB, free: 264 kB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.2278, allocations: 0 / 0.6525 GB, free: 264 kB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006076/0.2284, allocations: 113.5 kB / 0.6526 GB, free: 148 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.2284, allocations: 55.34 kB / 0.6526 GB, free: 80 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.2286, allocations: 114.6 kB / 0.6527 GB, free: 15.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.2286, allocations: 25.7 kB / 0.6528 GB, free: 15.93 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.2287, allocations: 90.34 kB / 0.6528 GB, free: 15.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.2287, allocations: 15.91 kB / 0.6529 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.2288, allocations: 0 / 0.6529 GB, free: 15.82 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2289, allocations: 318.8 kB / 0.6532 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.2291, allocations: 25.08 kB / 0.6532 GB, free: 15.48 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.2292, allocations: 25.44 kB / 0.6532 GB, free: 15.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.2294, allocations: 25.3 kB / 0.6532 GB, free: 15.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2294, allocations: 1.531 kB / 0.6532 GB, free: 15.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003678/0.2298, allocations: 89.55 kB / 0.6533 GB, free: 15.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2298, allocations: 4 kB / 0.6533 GB, free: 15.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.2298, allocations: 0 / 0.6533 GB, free: 15.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.2299, allocations: 4 kB / 0.6533 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.23, allocations: 15.92 kB / 0.6533 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.23, allocations: 0 / 0.6533 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.2301, allocations: 13.31 kB / 0.6534 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.2302, allocations: 0 / 0.6534 GB, free: 15.3 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,falFac.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 0.0001083/0.2303, allocations: 122.8 kB / 0.6535 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.2303, allocations: 0 / 0.6535 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000429/0.2308, allocations: 96.34 kB / 0.6536 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2308, allocations: 7.938 kB / 0.6536 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2308, allocations: 0 / 0.6536 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.2308, allocations: 0 / 0.6536 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002459/0.2311, allocations: 173.5 kB / 0.6537 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2311, allocations: 0 / 0.6537 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.2312, allocations: 15.98 kB / 0.6538 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2313, allocations: 3.938 kB / 0.6538 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.2313, allocations: 0 / 0.6538 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.2313, allocations: 0 / 0.6538 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.2313, allocations: 8 kB / 0.6538 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004236/0.2317, allocations: 191.4 kB / 0.6539 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.588e-05/0.2318, allocations: 77.11 kB / 0.654 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.2318, allocations: 0 / 0.654 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.232, allocations: 15.98 kB / 0.654 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.2321, allocations: 4 kB / 0.654 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.2321, allocations: 3.984 kB / 0.654 GB, free: 14.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.749e-05/0.2322, allocations: 83.28 kB / 0.6541 GB, free: 14.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2322, allocations: 4 kB / 0.6541 GB, free: 14.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003913/0.2326, allocations: 8 kB / 0.6541 GB, free: 14.4 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,falFac.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.0008285/0.2334, allocations: 0.7279 MB / 0.6548 GB, free: 13.65 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.2338, allocations: 55.95 kB / 0.6549 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2338, allocations: 0 / 0.6549 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.234, allocations: 35.91 kB / 0.6549 GB, free: 13.56 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.2343, allocations: 7.938 kB / 0.6549 GB, free: 13.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008999/0.2352, allocations: 450.5 kB / 0.6554 GB, free: 13.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.2355, allocations: 0.6809 MB / 0.656 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.179e-05/0.2355, allocations: 15.86 kB / 0.656 GB, free: 12.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.2356, allocations: 11.53 kB / 0.6561 GB, free: 12.33 MB / 462.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2356, allocations: 3.938 kB / 0.6561 GB, free: 12.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01151/0.2471, allocations: 1.389 MB / 0.6574 GB, free: 11.07 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.2473, allocations: 190.1 kB / 0.6576 GB, free: 10.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/2.374, allocations: 0 / 0.6576 GB, free: 10.84 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: