Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",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.0007684/0.0007683, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0008776/0.0008774, allocations: 172.7 kB / 15.95 MB, free: 208 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.283/1.283, allocations: 223.3 MB / 240 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.001737/0.001737, allocations: 266.9 kB / 291.3 MB, free: 1.898 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.79/0.79, allocations: 144.7 MB / 487.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004501/0.0004504, allocations: 14.81 kB / 0.5686 GB, free: 38.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.157, allocations: 83.09 MB / 0.6497 GB, free: 3.461 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001442/0.1585, allocations: 1.211 MB / 0.6509 GB, free: 2.242 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002757/0.1588, allocations: 124.3 kB / 0.651 GB, free: 2.121 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.772e-05/0.1588, allocations: 1.844 kB / 0.651 GB, free: 2.121 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.445e-05/0.1588, allocations: 0 / 0.651 GB, free: 2.121 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.392e-05/0.1589, allocations: 0 / 0.651 GB, free: 2.121 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001668/0.1591, allocations: 23.91 kB / 0.651 GB, free: 2.098 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.303e-05/0.1591, allocations: 23.92 kB / 0.6511 GB, free: 2.074 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.502e-05/0.1592, allocations: 9.625 kB / 0.6511 GB, free: 2.066 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.397e-05/0.1592, allocations: 7.984 kB / 0.6511 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.486e-05/0.1593, allocations: 15.92 kB / 0.6511 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.074e-05/0.1593, allocations: 0.6875 kB / 0.6511 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.987e-05/0.1594, allocations: 12 kB / 0.6511 GB, free: 2.031 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.129e-05/0.1594, allocations: 9.172 kB / 0.6511 GB, free: 2.023 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.1594, allocations: 25.7 kB / 0.6511 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 6.665e-05/0.1595, allocations: 27.89 kB / 0.6512 GB, free: 1.965 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1595, allocations: 1.656 kB / 0.6512 GB, free: 1.965 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.1595, allocations: 0 / 0.6512 GB, free: 1.965 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.1595, allocations: 0 / 0.6512 GB, free: 1.965 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003627/0.1599, allocations: 344.6 kB / 0.6515 GB, free: 1.582 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.1599, allocations: 10.03 kB / 0.6515 GB, free: 1.574 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.117e-05/0.16, allocations: 34.56 kB / 0.6515 GB, free: 1.531 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.925e-05/0.16, allocations: 4 kB / 0.6515 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.387e-05/0.1601, allocations: 167 kB / 0.6517 GB, free: 1.324 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.1601, allocations: 3.953 kB / 0.6517 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.1601, allocations: 6.406 kB / 0.6517 GB, free: 1.316 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.1603, allocations: 61.67 kB / 0.6518 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.1603, allocations: 0 / 0.6518 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.1603, allocations: 0.5 kB / 0.6518 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1603, allocations: 0.6562 kB / 0.6518 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.1605, allocations: 53.64 kB / 0.6518 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.1609, allocations: 279.4 kB / 0.6521 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/0.1612, allocations: 59.95 kB / 0.6521 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.379e-05/0.1613, allocations: 34.33 kB / 0.6522 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001203/0.1614, allocations: 81.11 kB / 0.6523 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.1614, allocations: 35.97 kB / 0.6523 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 2.294e-06/0.1614, allocations: 0 / 0.6523 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.000354/0.1618, allocations: 108.8 kB / 0.6524 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.1619, allocations: 52.66 kB / 0.6524 GB, free: 476 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.836e-05/0.1619, allocations: 105.8 kB / 0.6525 GB, free: 360 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.162, allocations: 25.7 kB / 0.6526 GB, free: 328 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.162, allocations: 88.84 kB / 0.6527 GB, free: 236 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.162, allocations: 4.781 kB / 0.6527 GB, free: 232 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-06/0.162, allocations: 0 / 0.6527 GB, free: 232 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1622, allocations: 319.4 kB / 0.653 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.82e-05/0.1623, allocations: 29.94 kB / 0.653 GB, free: 15.88 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.47e-05/0.1624, allocations: 24.61 kB / 0.653 GB, free: 15.86 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.301e-05/0.1625, allocations: 29.59 kB / 0.653 GB, free: 15.83 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1625, allocations: 0 / 0.653 GB, free: 15.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001988/0.1627, allocations: 84.45 kB / 0.6531 GB, free: 15.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.1627, allocations: 9.719 kB / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.1627, allocations: 0 / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1627, allocations: 0 / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.427e-05/0.1628, allocations: 11.98 kB / 0.6531 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1628, allocations: 4.625 kB / 0.6531 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.616e-05/0.1629, allocations: 17.23 kB / 0.6532 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.1629, allocations: 0 / 0.6532 GB, free: 15.7 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 (fac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.652e-05/0.163, allocations: 114.8 kB / 0.6533 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.163, allocations: 4.578 kB / 0.6533 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/0.1633, allocations: 95.61 kB / 0.6534 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1633, allocations: 0 / 0.6534 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1633, allocations: 2 kB / 0.6534 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1633, allocations: 0 / 0.6534 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.1635, allocations: 173.5 kB / 0.6535 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1635, allocations: 0 / 0.6535 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.424e-05/0.1635, allocations: 16.58 kB / 0.6536 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1636, allocations: 0 / 0.6536 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.1636, allocations: 1.031 kB / 0.6536 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1636, allocations: 0 / 0.6536 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1636, allocations: 0 / 0.6536 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.1638, allocations: 187.4 kB / 0.6537 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.154e-05/0.1639, allocations: 85.02 kB / 0.6538 GB, free: 14.94 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.1639, allocations: 4 kB / 0.6538 GB, free: 14.94 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.794e-05/0.164, allocations: 15.92 kB / 0.6538 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.164, allocations: 4 kB / 0.6538 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.164, allocations: 3.984 kB / 0.6538 GB, free: 14.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.009e-05/0.1641, allocations: 83.28 kB / 0.6539 GB, free: 14.83 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1641, allocations: 0 / 0.6539 GB, free: 14.83 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.1643, allocations: 8 kB / 0.6539 GB, free: 14.82 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 (fac.y,rea2Int.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.0004755/0.1648, allocations: 0.7202 MB / 0.6546 GB, free: 14.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000204/0.165, allocations: 59.89 kB / 0.6547 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.165, allocations: 0 / 0.6547 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 9.082e-05/0.1651, allocations: 31.97 kB / 0.6547 GB, free: 13.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/0.1653, allocations: 4 kB / 0.6547 GB, free: 13.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003519/0.1657, allocations: 146.4 kB / 0.6549 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.1659, allocations: 0.677 MB / 0.6555 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.302e-05/0.1659, allocations: 4 kB / 0.6555 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.402e-05/0.166, allocations: 11.42 kB / 0.6555 GB, free: 13.08 MB / 462.1 MB Notification: Performance of SimCode: time 2.51e-07/0.166, allocations: 0 / 0.6555 GB, free: 13.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01075/0.1767, allocations: 1.313 MB / 0.6568 GB, free: 11.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.1769, allocations: 186.9 kB / 0.657 GB, free: 11.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/1.8, allocations: 0 / 0.657 GB, free: 11.66 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: