Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.478/1.478, allocations: 249.5 MB / 257 MB, free: 6.84 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001039/0.00104, allocations: 180.9 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.794/1.794, allocations: 205.3 MB / 0.5671 GB, free: 15.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008377/0.0008374, allocations: 99.8 kB / 0.6714 GB, free: 4.977 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.38e-05/2.384e-05, allocations: 8 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.229, allocations: 106.3 MB / 0.8853 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7031/0.9322, allocations: 131.2 MB / 1.013 GB, free: 6.086 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.9324, allocations: 80 kB / 1.014 GB, free: 6.039 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001068/0.9335, allocations: 0.5213 MB / 1.014 GB, free: 5.559 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.915e-06/0.9335, allocations: 0 / 1.014 GB, free: 5.559 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.9335, allocations: 6.625 kB / 1.014 GB, free: 5.555 MB / 0.6355 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.0002563/0.9338, allocations: 311.7 kB / 1.014 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.9338, allocations: 8.781 kB / 1.014 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.424e-05/0.9339, allocations: 0 / 1.014 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.934, allocations: 166.3 kB / 1.015 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.934, allocations: 0 / 1.015 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.934, allocations: 4 kB / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.148e-05/0.9341, allocations: 11.92 kB / 1.015 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.395e-05/0.9342, allocations: 29.7 kB / 1.015 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.9342, allocations: 0 / 1.015 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.9342, allocations: 3.938 kB / 1.015 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.9342, allocations: 0 / 1.015 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.9343, allocations: 137.7 kB / 1.015 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.297e-05/0.9344, allocations: 22.55 kB / 1.015 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.64e-05/0.9344, allocations: 4.859 kB / 1.015 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001429/0.9346, allocations: 85.17 kB / 1.015 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.9346, allocations: 33.62 kB / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.9346, allocations: 0 / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001595/0.9348, allocations: 41.62 kB / 1.015 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.9348, allocations: 51.41 kB / 1.015 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.795e-05/0.9349, allocations: 85 kB / 1.015 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.9349, allocations: 25.7 kB / 1.015 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.079e-05/0.9349, allocations: 84.17 kB / 1.015 GB, free: 4.285 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.9349, allocations: 7.25 kB / 1.015 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.935, allocations: 0 / 1.015 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.9351, allocations: 310.8 kB / 1.015 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.286e-06/0.9351, allocations: 0 / 1.015 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.296e-06/0.9351, allocations: 4 kB / 1.015 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.985e-05/0.9351, allocations: 3.984 kB / 1.015 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.9352, allocations: 0 / 1.015 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.937e-05/0.9352, allocations: 49 kB / 1.015 GB, free: 3.91 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.9353, allocations: 10.19 kB / 1.015 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.9353, allocations: 0 / 1.015 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.9353, allocations: 3.938 kB / 1.015 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.093e-05/0.9353, allocations: 4 kB / 1.015 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.9354, allocations: 3.984 kB / 1.015 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.343e-05/0.9354, allocations: 0 / 1.015 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.9354, allocations: 0 / 1.015 GB, free: 3.891 MB / 0.6355 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 6.325e-05/0.9354, allocations: 102.5 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.143e-05/0.9355, allocations: 44.81 kB / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.13e-06/0.9355, allocations: 0 / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.233e-05/0.9356, allocations: 49.33 kB / 1.016 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.9356, allocations: 0 / 1.016 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.9357, allocations: 3.938 kB / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.9357, allocations: 7.984 kB / 1.016 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.427e-05/0.9358, allocations: 129 kB / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.9358, allocations: 0 / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.167e-05/0.9358, allocations: 4 kB / 1.016 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.9358, allocations: 3.953 kB / 1.016 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.9358, allocations: 4.938 kB / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.9358, allocations: 0 / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.9358, allocations: 0 / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.801e-05/0.9359, allocations: 64.62 kB / 1.016 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.084e-05/0.9359, allocations: 81.11 kB / 1.016 GB, free: 3.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.936, allocations: 3.953 kB / 1.016 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.936, allocations: 0 / 1.016 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/0.936, allocations: 9.766 kB / 1.016 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.936, allocations: 4 kB / 1.016 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.591e-05/0.9361, allocations: 79.22 kB / 1.016 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9361, allocations: 0 / 1.016 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002007/0.9363, allocations: 8 kB / 1.016 GB, free: 3.219 MB / 0.6355 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.0004191/0.9367, allocations: 0.6061 MB / 1.017 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 5.299e-05/0.9368, allocations: 4 kB / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.9368, allocations: 0 / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.18e-05/0.9368, allocations: 7.938 kB / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.296e-05/0.9369, allocations: 7.953 kB / 1.017 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000252/0.9371, allocations: 84.34 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.9375, allocations: 0.6768 MB / 1.017 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.398e-05/0.9375, allocations: 4 kB / 1.017 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.844e-05/0.9375, allocations: 11.56 kB / 1.017 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of SimCode: time 2.7e-07/0.9375, allocations: 0 / 1.017 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.9562, allocations: 0.5744 MB / 1.018 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/0.9565, allocations: 158.1 kB / 1.018 GB, free: 0.9805 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.307/2.264, allocations: 8 kB / 1.018 GB, free: 0.9727 MB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)