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: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008481/0.0008521, 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.0009193/0.0009194, 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.201/1.201, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001684/0.001684, allocations: 270.6 kB / 291.3 MB, free: 1.992 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.7447/0.7447, allocations: 144.6 MB / 487 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004241/0.0004241, allocations: 14.62 kB / 0.5683 GB, free: 38.87 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1447, allocations: 83.08 MB / 0.6494 GB, free: 3.703 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001414/0.1462, allocations: 1.223 MB / 0.6506 GB, free: 2.473 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002629/0.1464, allocations: 115.8 kB / 0.6507 GB, free: 2.359 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.775e-05/0.1465, allocations: 0 / 0.6507 GB, free: 2.359 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.115e-05/0.1465, allocations: 3.25 kB / 0.6507 GB, free: 2.359 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.785e-05/0.1466, allocations: 3.938 kB / 0.6507 GB, free: 2.355 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.1467, allocations: 23.92 kB / 0.6508 GB, free: 2.332 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.833e-05/0.1468, allocations: 15.97 kB / 0.6508 GB, free: 2.316 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.715e-05/0.1469, allocations: 8 kB / 0.6508 GB, free: 2.309 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.577e-05/0.1469, allocations: 15.91 kB / 0.6508 GB, free: 2.293 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.092e-05/0.1469, allocations: 9.062 kB / 0.6508 GB, free: 2.285 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.147, allocations: 0 / 0.6508 GB, free: 2.285 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.643e-05/0.147, allocations: 11.98 kB / 0.6508 GB, free: 2.273 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.147, allocations: 4.594 kB / 0.6508 GB, free: 2.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.904e-05/0.1471, allocations: 29.64 kB / 0.6509 GB, free: 2.234 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 6.924e-05/0.1471, allocations: 24.52 kB / 0.6509 GB, free: 2.211 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1471, allocations: 4.562 kB / 0.6509 GB, free: 2.207 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1471, allocations: 0 / 0.6509 GB, free: 2.207 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.1472, allocations: 2.281 kB / 0.6509 GB, free: 2.207 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.0003779/0.1475, allocations: 339.3 kB / 0.6512 GB, free: 1.828 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.1476, allocations: 8.531 kB / 0.6512 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.562e-05/0.1476, allocations: 0 / 0.6512 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.1477, allocations: 172 kB / 0.6514 GB, free: 1.613 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.1477, allocations: 7.953 kB / 0.6514 GB, free: 1.605 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.1478, allocations: 0.5938 kB / 0.6514 GB, free: 1.605 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.1479, allocations: 63.19 kB / 0.6514 GB, free: 1.539 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.1479, allocations: 4.656 kB / 0.6515 GB, free: 1.535 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.148, allocations: 0 / 0.6515 GB, free: 1.535 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.148, allocations: 4.719 kB / 0.6515 GB, free: 1.531 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.1482, allocations: 54.95 kB / 0.6515 GB, free: 1.48 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003089/0.1485, allocations: 265.4 kB / 0.6518 GB, free: 1.172 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.1488, allocations: 68.09 kB / 0.6518 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.1489, allocations: 93.67 kB / 0.6519 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.1489, allocations: 31.81 kB / 0.6519 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1489, allocations: 0 / 0.6519 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003627/0.1493, allocations: 108.8 kB / 0.652 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.1493, allocations: 52.28 kB / 0.6521 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.102e-05/0.1494, allocations: 102.7 kB / 0.6522 GB, free: 0.668 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.1494, allocations: 25.7 kB / 0.6522 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.515e-05/0.1495, allocations: 84.8 kB / 0.6523 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.1495, allocations: 5.75 kB / 0.6523 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.1495, allocations: 4 kB / 0.6523 GB, free: 0.543 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.1496, allocations: 318.8 kB / 0.6526 GB, free: 228 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.17e-05/0.1497, allocations: 30.08 kB / 0.6526 GB, free: 200 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.164e-05/0.1498, allocations: 23.97 kB / 0.6527 GB, free: 176 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.649e-05/0.1499, allocations: 25.36 kB / 0.6527 GB, free: 152 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1499, allocations: 3.438 kB / 0.6527 GB, free: 152 kB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002089/0.1501, allocations: 81.66 kB / 0.6528 GB, free: 64 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1501, allocations: 4 kB / 0.6528 GB, free: 60 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1501, allocations: 0 / 0.6528 GB, free: 60 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.976e-06/0.1501, allocations: 0.5 kB / 0.6528 GB, free: 60 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.814e-05/0.1502, allocations: 16.64 kB / 0.6528 GB, free: 44 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.1502, allocations: 0.9062 kB / 0.6528 GB, free: 44 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.898e-05/0.1503, allocations: 16.7 kB / 0.6528 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.1503, allocations: 0 / 0.6528 GB, free: 28 kB / 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.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.913e-05/0.1504, allocations: 114.9 kB / 0.6529 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.1504, allocations: 11.94 kB / 0.6529 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.1507, allocations: 85.14 kB / 0.653 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.1507, allocations: 4 kB / 0.653 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1507, allocations: 0 / 0.653 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1507, allocations: 3.984 kB / 0.653 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001428/0.1509, allocations: 169.6 kB / 0.6532 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1509, allocations: 4 kB / 0.6532 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.182e-05/0.1509, allocations: 11.98 kB / 0.6532 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.151, allocations: 0 / 0.6532 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.151, allocations: 0 / 0.6532 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.151, allocations: 3.938 kB / 0.6532 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.151, allocations: 7.984 kB / 0.6532 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002415/0.1512, allocations: 180 kB / 0.6534 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.223e-05/0.1513, allocations: 88.97 kB / 0.6535 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.1513, allocations: 0 / 0.6535 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.1514, allocations: 11.98 kB / 0.6535 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-05/0.1514, allocations: 19.97 kB / 0.6535 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.1514, allocations: 3.984 kB / 0.6535 GB, free: 15.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 2.897e-05/0.1515, allocations: 79.28 kB / 0.6536 GB, free: 15.14 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1515, allocations: 0 / 0.6536 GB, free: 15.14 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.1517, allocations: 4 kB / 0.6536 GB, free: 15.14 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.000118/0.1518, allocations: 107.2 kB / 0.6537 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002177/0.152, allocations: 59.89 kB / 0.6537 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.1521, allocations: 0 / 0.6537 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 9.583e-05/0.1522, allocations: 27.98 kB / 0.6538 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.1523, allocations: 1.562 kB / 0.6538 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.1527, allocations: 124.7 kB / 0.6539 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1529, allocations: 0.6809 MB / 0.6545 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.959e-05/0.153, allocations: 0 / 0.6545 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.453e-05/0.153, allocations: 11.44 kB / 0.6546 GB, free: 14.07 MB / 462.1 MB Notification: Performance of SimCode: time 2.31e-07/0.153, allocations: 0 / 0.6546 GB, free: 14.07 MB / 462.1 MB Notification: Performance of Templates: time 0.00278/0.1558, allocations: 0.5955 MB / 0.6551 GB, free: 13.47 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile Environment - environmentSimulation: (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: