Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00091/0.00091, allocations: 100.2 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.0008899/0.0008899, 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.239/1.239, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001732/0.001732, allocations: 270.7 kB / 291.3 MB, free: 2.004 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.7728/0.7728, allocations: 144.6 MB / 487 MB, free: 7.18 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003976/0.0003976, allocations: 18.22 kB / 0.5683 GB, free: 38.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1442, allocations: 83.08 MB / 0.6494 GB, free: 3.602 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0008498/0.1451, allocations: 310.1 kB / 0.6497 GB, free: 3.301 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002643/0.1454, allocations: 57.06 kB / 0.6498 GB, free: 3.246 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.026e-05/0.1454, allocations: 0 / 0.6498 GB, free: 3.246 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.314e-05/0.1455, allocations: 0.5 kB / 0.6498 GB, free: 3.246 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.474e-06/0.1455, allocations: 0.8125 kB / 0.6498 GB, free: 3.246 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.1458, allocations: 11.98 kB / 0.6498 GB, free: 3.234 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.514e-05/0.1459, allocations: 20.55 kB / 0.6498 GB, free: 3.215 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.454e-05/0.1459, allocations: 3.938 kB / 0.6498 GB, free: 3.211 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.311e-05/0.1459, allocations: 14.33 kB / 0.6498 GB, free: 3.199 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.382e-05/0.146, allocations: 11.98 kB / 0.6499 GB, free: 3.188 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.146, allocations: 0 / 0.6499 GB, free: 3.188 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.962e-05/0.1461, allocations: 15.98 kB / 0.6499 GB, free: 3.172 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.378e-05/0.1461, allocations: 11.98 kB / 0.6499 GB, free: 3.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.904e-05/0.1461, allocations: 29.7 kB / 0.6499 GB, free: 3.125 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.235e-05/0.1462, allocations: 23.16 kB / 0.6499 GB, free: 3.105 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.1462, allocations: 0 / 0.6499 GB, free: 3.105 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1462, allocations: 0 / 0.6499 GB, free: 3.105 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1462, allocations: 3.938 kB / 0.6499 GB, free: 3.102 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002662/0.1465, allocations: 327.4 kB / 0.6502 GB, free: 2.734 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.1466, allocations: 8.031 kB / 0.6503 GB, free: 2.727 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.193e-05/0.1466, allocations: 7.906 kB / 0.6503 GB, free: 2.719 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.181e-05/0.1467, allocations: 163.1 kB / 0.6504 GB, free: 2.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1467, allocations: 9.109 kB / 0.6504 GB, free: 2.512 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.1467, allocations: 8 kB / 0.6504 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.1468, allocations: 58.3 kB / 0.6505 GB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1469, allocations: 0 / 0.6505 GB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.088e-06/0.1469, allocations: 0.5312 kB / 0.6505 GB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1469, allocations: 0.5625 kB / 0.6505 GB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.147, allocations: 107.8 kB / 0.6506 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001563/0.1472, allocations: 176.7 kB / 0.6508 GB, free: 2.117 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.1473, allocations: 74.53 kB / 0.6508 GB, free: 2.035 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002793/0.1476, allocations: 405.8 kB / 0.6512 GB, free: 1.547 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.1476, allocations: 35 kB / 0.6512 GB, free: 1.504 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.1476, allocations: 3.938 kB / 0.6513 GB, free: 1.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002224/0.1479, allocations: 118.2 kB / 0.6514 GB, free: 1.379 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.1479, allocations: 55.98 kB / 0.6514 GB, free: 1.312 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.244e-05/0.1479, allocations: 95.42 kB / 0.6515 GB, free: 1.211 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.148, allocations: 29.7 kB / 0.6515 GB, free: 1.176 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.346e-05/0.148, allocations: 80.33 kB / 0.6516 GB, free: 1.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.148, allocations: 23.66 kB / 0.6516 GB, free: 1.066 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.148, allocations: 4.75 kB / 0.6516 GB, free: 1.062 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.1481, allocations: 315.5 kB / 0.6519 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.982e-05/0.1482, allocations: 19.98 kB / 0.652 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.954e-05/0.1482, allocations: 24.77 kB / 0.652 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.726e-05/0.1483, allocations: 27.98 kB / 0.652 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1483, allocations: 0.6875 kB / 0.652 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001152/0.1484, allocations: 89.61 kB / 0.6521 GB, free: 0.582 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.1484, allocations: 9.422 kB / 0.6521 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.1484, allocations: 0 / 0.6521 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.1484, allocations: 0 / 0.6521 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.608e-05/0.1485, allocations: 19.98 kB / 0.6521 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.1486, allocations: 0.625 kB / 0.6521 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.352e-05/0.1486, allocations: 20.75 kB / 0.6521 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.1486, allocations: 0 / 0.6521 GB, free: 0.5352 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001289/0.1487, allocations: 123.4 kB / 0.6523 GB, free: 416 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.1487, allocations: 4 kB / 0.6523 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001969/0.1489, allocations: 128 kB / 0.6524 GB, free: 280 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.149, allocations: 0 / 0.6524 GB, free: 280 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.149, allocations: 0 / 0.6524 GB, free: 280 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.149, allocations: 0 / 0.6524 GB, free: 280 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.1491, allocations: 183.5 kB / 0.6526 GB, free: 48 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1491, allocations: 0 / 0.6526 GB, free: 48 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.832e-05/0.1492, allocations: 19.98 kB / 0.6526 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1492, allocations: 0 / 0.6526 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.1492, allocations: 4 kB / 0.6526 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1492, allocations: 4.641 kB / 0.6526 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1492, allocations: 0 / 0.6526 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/0.1494, allocations: 131.7 kB / 0.6527 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-05/0.1494, allocations: 77.11 kB / 0.6528 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.1494, allocations: 0.8438 kB / 0.6528 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.614e-05/0.1494, allocations: 4 kB / 0.6528 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.634e-05/0.1495, allocations: 16.56 kB / 0.6528 GB, free: 15.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.1495, allocations: 0.9375 kB / 0.6528 GB, free: 15.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 2.095e-05/0.1495, allocations: 75.28 kB / 0.6529 GB, free: 15.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1495, allocations: 0.5312 kB / 0.6529 GB, free: 15.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0001827/0.1497, allocations: 19.94 kB / 0.6529 GB, free: 15.67 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001495/0.1499, allocations: 113.4 kB / 0.653 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001239/0.15, allocations: 67.89 kB / 0.6531 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.15, allocations: 0.6562 kB / 0.6531 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.662e-05/0.1501, allocations: 35.92 kB / 0.6531 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.536e-05/0.1502, allocations: 2.469 kB / 0.6531 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002335/0.1504, allocations: 150.2 kB / 0.6533 GB, free: 15.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.1506, allocations: 0.6926 MB / 0.6539 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.774e-05/0.1507, allocations: 35.94 kB / 0.654 GB, free: 14.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.151e-05/0.1507, allocations: 16.05 kB / 0.654 GB, free: 14.51 MB / 462.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1507, allocations: 0 / 0.654 GB, free: 14.51 MB / 462.1 MB Notification: Performance of Templates: time 0.002268/0.153, allocations: 0.5727 MB / 0.6545 GB, free: 13.94 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: