Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 180.9 kB / 8.006 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.52/0.52, allocations: 90.91 MB / 99.34 MB, free: 2.188 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.5 MB / 343.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000978/0.0009779, allocations: 98.5 kB / 415.9 MB, free: 11.13 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.501e-05/2.502e-05, allocations: 8 kB / 494.6 MB, free: 52.33 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1523, allocations: 72.32 MB / 0.5536 GB, free: 12.2 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5251/0.6774, allocations: 100.1 MB / 0.6514 GB, free: 9.906 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.6777, allocations: 70.77 kB / 0.6515 GB, free: 9.867 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001169/0.6789, allocations: 0.5257 MB / 0.652 GB, free: 9.387 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.6789, allocations: 0 / 0.652 GB, free: 9.387 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.6789, allocations: 0 / 0.652 GB, free: 9.387 MB / 458.7 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.0003078/0.6792, allocations: 319.2 kB / 0.6523 GB, free: 9.035 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.6793, allocations: 12.03 kB / 0.6523 GB, free: 9.023 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.6793, allocations: 4.578 kB / 0.6523 GB, free: 9.02 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.6795, allocations: 163.1 kB / 0.6524 GB, free: 8.82 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.6795, allocations: 0 / 0.6524 GB, free: 8.82 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.6795, allocations: 0 / 0.6524 GB, free: 8.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.94e-05/0.6796, allocations: 7.562 kB / 0.6524 GB, free: 8.816 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.774e-05/0.6797, allocations: 33.69 kB / 0.6525 GB, free: 8.777 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.6797, allocations: 3.984 kB / 0.6525 GB, free: 8.773 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.6797, allocations: 0 / 0.6525 GB, free: 8.773 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.6797, allocations: 3.953 kB / 0.6525 GB, free: 8.77 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.6799, allocations: 122.2 kB / 0.6526 GB, free: 8.613 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.922e-05/0.6799, allocations: 34.11 kB / 0.6526 GB, free: 8.574 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.628e-05/0.68, allocations: 4.859 kB / 0.6526 GB, free: 8.566 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001526/0.6801, allocations: 89.09 kB / 0.6527 GB, free: 8.461 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.6801, allocations: 30.56 kB / 0.6528 GB, free: 8.422 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.6802, allocations: 0 / 0.6528 GB, free: 8.422 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.000183/0.6803, allocations: 45.16 kB / 0.6528 GB, free: 8.375 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.6804, allocations: 55.44 kB / 0.6529 GB, free: 8.309 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.122e-05/0.6804, allocations: 85 kB / 0.6529 GB, free: 8.219 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.6805, allocations: 26.45 kB / 0.653 GB, free: 8.188 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.6805, allocations: 80.14 kB / 0.653 GB, free: 8.105 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.6805, allocations: 0 / 0.653 GB, free: 8.105 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-06/0.6805, allocations: 0 / 0.653 GB, free: 8.105 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.6807, allocations: 318.8 kB / 0.6533 GB, free: 7.785 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.6807, allocations: 7.625 kB / 0.6533 GB, free: 7.781 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.6807, allocations: 0 / 0.6533 GB, free: 7.781 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.268e-05/0.6807, allocations: 8.062 kB / 0.6534 GB, free: 7.773 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.6808, allocations: 3.938 kB / 0.6534 GB, free: 7.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.832e-05/0.6808, allocations: 37.69 kB / 0.6534 GB, free: 7.727 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.6808, allocations: 4 kB / 0.6534 GB, free: 7.723 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.6809, allocations: 0 / 0.6534 GB, free: 7.723 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.6809, allocations: 4 kB / 0.6534 GB, free: 7.719 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.702e-05/0.6809, allocations: 3.125 kB / 0.6534 GB, free: 7.719 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.681, allocations: 3.984 kB / 0.6534 GB, free: 7.715 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.397e-05/0.681, allocations: 4 kB / 0.6534 GB, free: 7.711 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-06/0.681, allocations: 4.031 kB / 0.6534 GB, free: 7.707 MB / 458.7 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 () * 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 8.051e-05/0.6811, allocations: 108.6 kB / 0.6535 GB, free: 7.598 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.443e-05/0.6811, allocations: 41.62 kB / 0.6536 GB, free: 7.551 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-06/0.6812, allocations: 0 / 0.6536 GB, free: 7.551 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.6813, allocations: 48.97 kB / 0.6536 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.6813, allocations: 0 / 0.6536 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6813, allocations: 0 / 0.6536 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.6813, allocations: 0 / 0.6536 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.706e-05/0.6814, allocations: 142.2 kB / 0.6537 GB, free: 7.328 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.6814, allocations: 0 / 0.6537 GB, free: 7.328 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.173e-05/0.6814, allocations: 4 kB / 0.6537 GB, free: 7.324 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.6814, allocations: 0 / 0.6537 GB, free: 7.324 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.6814, allocations: 0 / 0.6537 GB, free: 7.324 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.6815, allocations: 0 / 0.6537 GB, free: 7.324 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6815, allocations: 0 / 0.6537 GB, free: 7.324 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.928e-05/0.6816, allocations: 68.7 kB / 0.6538 GB, free: 7.242 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.6816, allocations: 81.14 kB / 0.6539 GB, free: 7.145 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.6816, allocations: 4 kB / 0.6539 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.949e-06/0.6816, allocations: 0 / 0.6539 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.6817, allocations: 0 / 0.6539 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.6817, allocations: 2.812 kB / 0.6539 GB, free: 7.141 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.555e-05/0.6817, allocations: 75.28 kB / 0.654 GB, free: 7.066 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6817, allocations: 0 / 0.654 GB, free: 7.066 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0001873/0.6819, allocations: 11.98 kB / 0.654 GB, free: 7.055 MB / 458.7 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 () * 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.0004657/0.6824, allocations: 0.6156 MB / 0.6546 GB, free: 6.414 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 6.059e-05/0.6825, allocations: 8 kB / 0.6546 GB, free: 6.406 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.6825, allocations: 0 / 0.6546 GB, free: 6.406 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.336e-05/0.6825, allocations: 4 kB / 0.6546 GB, free: 6.402 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.311e-05/0.6826, allocations: 0 / 0.6546 GB, free: 6.402 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002673/0.6829, allocations: 93.19 kB / 0.6547 GB, free: 6.277 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.6832, allocations: 0.6768 MB / 0.6553 GB, free: 5.574 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 1.283e-05/0.6832, allocations: 0 / 0.6553 GB, free: 5.574 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.143e-05/0.6832, allocations: 15.38 kB / 0.6554 GB, free: 5.559 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6832, allocations: 0 / 0.6554 GB, free: 5.559 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01983/0.703, allocations: 0.5718 MB / 0.6559 GB, free: 5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002386/0.7033, allocations: 135.9 kB / 0.656 GB, free: 4.809 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.451/2.154, allocations: 6.125 kB / 0.656 GB, free: 4.805 MB / 458.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)