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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8212/0.8212, allocations: 141.8 MB / 149.3 MB, free: 9.188 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 180.8 kB / 182.2 MB, free: 9.434 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 221.5 MB / 436.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009819, allocations: 99.78 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001841/0.001841, allocations: 284.7 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.481e-05, allocations: 8 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4887/0.4887, allocations: 82.77 MB / 0.7575 GB, free: 31.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.146/0.6348, allocations: 107.2 MB / 0.8622 GB, free: 4.543 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.6351, allocations: 79.94 kB / 0.8622 GB, free: 4.465 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001225/0.6364, allocations: 0.5218 MB / 0.8628 GB, free: 3.945 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.694e-06/0.6364, allocations: 0 / 0.8628 GB, free: 3.945 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.6364, allocations: 0 / 0.8628 GB, free: 3.945 MB / 0.5261 GB 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.0002697/0.6367, allocations: 316.1 kB / 0.8631 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.6368, allocations: 12.03 kB / 0.8631 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.6368, allocations: 2.844 kB / 0.8631 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.6369, allocations: 159.1 kB / 0.8632 GB, free: 3.387 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.6369, allocations: 3.953 kB / 0.8632 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.6369, allocations: 4 kB / 0.8632 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.11e-05/0.637, allocations: 7.938 kB / 0.8632 GB, free: 3.371 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.893e-05/0.6371, allocations: 33.69 kB / 0.8633 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.6371, allocations: 3.938 kB / 0.8633 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.6371, allocations: 4 kB / 0.8633 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.6371, allocations: 0 / 0.8633 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.6373, allocations: 126.2 kB / 0.8634 GB, free: 3.164 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.986e-05/0.6373, allocations: 22.61 kB / 0.8634 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.038e-05/0.6374, allocations: 4.859 kB / 0.8634 GB, free: 3.125 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001464/0.6375, allocations: 85.16 kB / 0.8635 GB, free: 3.023 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.6376, allocations: 38.52 kB / 0.8635 GB, free: 2.977 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.6376, allocations: 0 / 0.8635 GB, free: 2.977 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001615/0.6377, allocations: 45.62 kB / 0.8636 GB, free: 2.926 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.6378, allocations: 55.34 kB / 0.8636 GB, free: 2.859 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.808e-05/0.6378, allocations: 85 kB / 0.8637 GB, free: 2.77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.6378, allocations: 25.7 kB / 0.8637 GB, free: 2.738 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.095e-05/0.6379, allocations: 80.14 kB / 0.8638 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.6379, allocations: 3.906 kB / 0.8638 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-06/0.6379, allocations: 0 / 0.8638 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6381, allocations: 318.9 kB / 0.8641 GB, free: 2.332 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.137e-05/0.6381, allocations: 4 kB / 0.8641 GB, free: 2.328 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.615e-06/0.6381, allocations: 4 kB / 0.8641 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.402e-05/0.6381, allocations: 0 / 0.8641 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.6381, allocations: 0 / 0.8641 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.845e-05/0.6382, allocations: 37.69 kB / 0.8642 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.6382, allocations: 4 kB / 0.8642 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.6382, allocations: 3.938 kB / 0.8642 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.6383, allocations: 8.047 kB / 0.8642 GB, free: 2.266 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.671e-05/0.6383, allocations: 4 kB / 0.8642 GB, free: 2.262 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.6383, allocations: 0 / 0.8642 GB, free: 2.262 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.6384, allocations: 4 kB / 0.8642 GB, free: 2.258 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.6384, allocations: 3.938 kB / 0.8642 GB, free: 2.254 MB / 0.5261 GB 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 7.26e-05/0.6384, allocations: 101 kB / 0.8643 GB, free: 2.148 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.622e-05/0.6385, allocations: 45.36 kB / 0.8643 GB, free: 2.102 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.803e-06/0.6385, allocations: 3.953 kB / 0.8643 GB, free: 2.098 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.6386, allocations: 49.41 kB / 0.8644 GB, free: 2.043 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.6386, allocations: 3.984 kB / 0.8644 GB, free: 2.039 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6387, allocations: 0 / 0.8644 GB, free: 2.039 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.6387, allocations: 0 / 0.8644 GB, free: 2.039 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.804e-05/0.6388, allocations: 134.2 kB / 0.8645 GB, free: 1.871 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.6388, allocations: 0 / 0.8645 GB, free: 1.871 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.166e-05/0.6388, allocations: 4 kB / 0.8645 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.6388, allocations: 0 / 0.8645 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.6388, allocations: 0 / 0.8645 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6388, allocations: 3.953 kB / 0.8645 GB, free: 1.863 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6388, allocations: 0 / 0.8645 GB, free: 1.863 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.37e-05/0.6389, allocations: 65.16 kB / 0.8646 GB, free: 1.781 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.639, allocations: 77.11 kB / 0.8647 GB, free: 1.688 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.639, allocations: 4 kB / 0.8647 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.069e-05/0.639, allocations: 0 / 0.8647 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.639, allocations: 7.953 kB / 0.8647 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.6391, allocations: 0 / 0.8647 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.188e-05/0.6391, allocations: 79.22 kB / 0.8647 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6391, allocations: 4.031 kB / 0.8648 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001801/0.6393, allocations: 11.98 kB / 0.8648 GB, free: 1.582 MB / 0.5261 GB 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.0004248/0.6397, allocations: 0.6046 MB / 0.8654 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 6.528e-05/0.6398, allocations: 4 kB / 0.8654 GB, free: 0.9453 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.6398, allocations: 8.031 kB / 0.8654 GB, free: 0.9375 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.461e-05/0.6398, allocations: 11.94 kB / 0.8654 GB, free: 0.9258 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000102/0.6399, allocations: 3.953 kB / 0.8654 GB, free: 0.9219 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002782/0.6402, allocations: 81.59 kB / 0.8655 GB, free: 0.8047 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.6405, allocations: 0.6768 MB / 0.8661 GB, free: 104 kB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.486e-05/0.6405, allocations: 4 kB / 0.8661 GB, free: 100 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.086e-05/0.6406, allocations: 7.438 kB / 0.8661 GB, free: 92 kB / 0.5261 GB Notification: Performance of SimCode: time 2.51e-07/0.6406, allocations: 0 / 0.8661 GB, free: 92 kB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.6601, allocations: 0.5711 MB / 0.8667 GB, free: 15.53 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/0.6604, allocations: 153.3 kB / 0.8668 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.403, allocations: 0 / 0.8668 GB, free: 15.34 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)