Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 98.61 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.001142/0.001142, 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.228/1.228, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001617/0.001617, allocations: 267.2 kB / 291.2 MB, free: 1.922 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.7634/0.7634, allocations: 144.6 MB / 487 MB, free: 7.234 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000396/0.000396, allocations: 17.28 kB / 0.5683 GB, free: 38.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1415, allocations: 83.08 MB / 0.6494 GB, free: 3.684 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.0005964/0.1422, allocations: 309.2 kB / 0.6497 GB, free: 3.383 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002001/0.1424, allocations: 46.75 kB / 0.6498 GB, free: 3.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.578e-06/0.1424, allocations: 0 / 0.6498 GB, free: 3.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.689e-06/0.1424, allocations: 0 / 0.6498 GB, free: 3.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.559e-06/0.1424, allocations: 4 kB / 0.6498 GB, free: 3.336 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001516/0.1426, allocations: 3.984 kB / 0.6498 GB, free: 3.332 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.141e-05/0.1426, allocations: 4.531 kB / 0.6498 GB, free: 3.328 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.1427, allocations: 0.625 kB / 0.6498 GB, free: 3.328 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.371e-05/0.1427, allocations: 4 kB / 0.6498 GB, free: 3.324 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.285e-05/0.1427, allocations: 8.578 kB / 0.6498 GB, free: 3.316 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.659e-06/0.1427, allocations: 4 kB / 0.6498 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.236e-05/0.1428, allocations: 8.547 kB / 0.6498 GB, free: 3.305 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.819e-06/0.1428, allocations: 1.094 kB / 0.6498 GB, free: 3.305 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.974e-05/0.1428, allocations: 25.7 kB / 0.6498 GB, free: 3.273 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 4.456e-05/0.1429, allocations: 0 / 0.6498 GB, free: 3.273 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.1429, allocations: 0.7188 kB / 0.6498 GB, free: 3.273 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1429, allocations: 4 kB / 0.6498 GB, free: 3.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1429, allocations: 5.094 kB / 0.6498 GB, free: 3.266 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002182/0.1431, allocations: 315.4 kB / 0.6501 GB, free: 2.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.1432, allocations: 16.69 kB / 0.6502 GB, free: 2.895 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.057e-05/0.1432, allocations: 0 / 0.6502 GB, free: 2.895 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.189e-05/0.1433, allocations: 159.7 kB / 0.6503 GB, free: 2.699 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.1433, allocations: 4.484 kB / 0.6503 GB, free: 2.695 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.1433, allocations: 0 / 0.6503 GB, free: 2.695 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.849e-05/0.1434, allocations: 35.62 kB / 0.6504 GB, free: 2.656 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1434, allocations: 0 / 0.6504 GB, free: 2.656 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.1434, allocations: 0 / 0.6504 GB, free: 2.656 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1434, allocations: 3.938 kB / 0.6504 GB, free: 2.652 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.885e-05/0.1435, allocations: 8.781 kB / 0.6504 GB, free: 2.645 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.1436, allocations: 150.3 kB / 0.6505 GB, free: 2.449 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.562e-05/0.1436, allocations: 24.11 kB / 0.6505 GB, free: 2.418 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.1438, allocations: 85.12 kB / 0.6506 GB, free: 2.316 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.1438, allocations: 35.22 kB / 0.6506 GB, free: 2.273 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1438, allocations: 0.75 kB / 0.6506 GB, free: 2.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.000117/0.1439, allocations: 46.34 kB / 0.6507 GB, free: 2.223 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.144, allocations: 51.41 kB / 0.6507 GB, free: 2.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.26e-05/0.144, allocations: 90.89 kB / 0.6508 GB, free: 2.062 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.789e-06/0.144, allocations: 25.7 kB / 0.6509 GB, free: 2.031 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.448e-05/0.144, allocations: 85.67 kB / 0.6509 GB, free: 1.945 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.1441, allocations: 3.906 kB / 0.6509 GB, free: 1.941 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.1441, allocations: 0 / 0.6509 GB, free: 1.941 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.1442, allocations: 319.7 kB / 0.6512 GB, free: 1.621 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.976e-06/0.1442, allocations: 0 / 0.6512 GB, free: 1.621 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-06/0.1442, allocations: 4.719 kB / 0.6512 GB, free: 1.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.797e-05/0.1442, allocations: 6.062 kB / 0.6513 GB, free: 1.613 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1442, allocations: 0 / 0.6513 GB, free: 1.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.18e-05/0.1443, allocations: 41.64 kB / 0.6513 GB, free: 1.566 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1443, allocations: 11.94 kB / 0.6513 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.1443, allocations: 0 / 0.6513 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.1443, allocations: 1.25 kB / 0.6513 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.671e-05/0.1444, allocations: 4 kB / 0.6513 GB, free: 1.551 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1444, allocations: 3.938 kB / 0.6513 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.224e-05/0.1444, allocations: 1.312 kB / 0.6513 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-06/0.1444, allocations: 0 / 0.6513 GB, free: 1.547 MB / 446.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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.066e-05/0.1445, allocations: 110.5 kB / 0.6514 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-06/0.1445, allocations: 0 / 0.6514 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.1446, allocations: 53.58 kB / 0.6515 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1446, allocations: 0.75 kB / 0.6515 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.1446, allocations: 0 / 0.6515 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1446, allocations: 0 / 0.6515 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.719e-05/0.1447, allocations: 151.4 kB / 0.6516 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1447, allocations: 3.938 kB / 0.6516 GB, free: 1.176 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.888e-05/0.1447, allocations: 0 / 0.6516 GB, free: 1.176 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.1447, allocations: 4 kB / 0.6516 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.1447, allocations: 4.625 kB / 0.6516 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.1447, allocations: 3.953 kB / 0.6516 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1447, allocations: 0.6562 kB / 0.6516 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.648e-05/0.1448, allocations: 62.72 kB / 0.6517 GB, free: 1.086 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.179e-05/0.1448, allocations: 81.09 kB / 0.6518 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.046e-06/0.1449, allocations: 0.625 kB / 0.6518 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.998e-06/0.1449, allocations: 7.281 kB / 0.6518 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.611e-05/0.1449, allocations: 7.938 kB / 0.6518 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.1449, allocations: 0 / 0.6518 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.191e-05/0.1449, allocations: 79.22 kB / 0.6519 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1449, allocations: 0 / 0.6519 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00017/0.1451, allocations: 4 kB / 0.6519 GB, free: 0.8945 MB / 446.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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000131/0.1453, allocations: 104.5 kB / 0.652 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 5.865e-05/0.1453, allocations: 8 kB / 0.652 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1453, allocations: 1.094 kB / 0.652 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.821e-05/0.1454, allocations: 7.984 kB / 0.652 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.757e-05/0.1454, allocations: 4 kB / 0.652 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001371/0.1456, allocations: 87.33 kB / 0.6521 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001974/0.1458, allocations: 0.677 MB / 0.6527 GB, free: 15.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 1.298e-05/0.1458, allocations: 7.938 kB / 0.6527 GB, free: 15.94 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.111e-05/0.1458, allocations: 7.438 kB / 0.6527 GB, free: 15.93 MB / 462.1 MB Notification: Performance of SimCode: time 2e-07/0.1458, allocations: 0 / 0.6527 GB, free: 15.93 MB / 462.1 MB Notification: Performance of Templates: time 0.001722/0.1476, allocations: 304 kB / 0.653 GB, free: 15.63 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: