Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_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.438/1.438, allocations: 249.5 MB / 257 MB, free: 6.871 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.001331/0.001331, allocations: 184.9 kB / 316.3 MB, free: 3.293 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.754/1.754, allocations: 205.3 MB / 0.5671 GB, free: 15.83 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.0009113/0.0009114, allocations: 94.56 kB / 0.6714 GB, free: 4.953 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.648e-05/2.651e-05, allocations: 7.984 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2316, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7585/0.9902, allocations: 132.1 MB / 1.014 GB, free: 5.52 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.9905, allocations: 74.58 kB / 1.014 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002607/0.9931, allocations: 0.9222 MB / 1.015 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.333e-06/0.9932, allocations: 0 / 1.015 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.9932, allocations: 3.625 kB / 1.015 GB, free: 4.66 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003572/0.9935, allocations: 339.6 kB / 1.016 GB, free: 4.285 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.9936, allocations: 12.03 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.984e-05/0.9936, allocations: 0 / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.9938, allocations: 175 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.9938, allocations: 0 / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.9938, allocations: 4 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.453e-05/0.9939, allocations: 15.69 kB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.231e-05/0.994, allocations: 49.11 kB / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.994, allocations: 0 / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.994, allocations: 0 / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.994, allocations: 0.75 kB / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004288/0.9945, allocations: 268.6 kB / 1.016 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.9947, allocations: 42.38 kB / 1.016 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.037e-05/0.9947, allocations: 14.11 kB / 1.016 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.9949, allocations: 93.17 kB / 1.016 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.9949, allocations: 30.56 kB / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.9949, allocations: 0 / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001978/0.9951, allocations: 45.62 kB / 1.016 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.9952, allocations: 63.28 kB / 1.016 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.067e-05/0.9952, allocations: 92.75 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.9952, allocations: 25.7 kB / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.9953, allocations: 83.95 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.9953, allocations: 7.906 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-06/0.9953, allocations: 0 / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.9954, allocations: 322.8 kB / 1.017 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.852e-05/0.9955, allocations: 7.688 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.42e-05/0.9955, allocations: 7.938 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.219e-05/0.9955, allocations: 4 kB / 1.017 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.9955, allocations: 0 / 1.017 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.618e-05/0.9956, allocations: 53.22 kB / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.9956, allocations: 4 kB / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.9957, allocations: 4 kB / 1.017 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.9957, allocations: 4 kB / 1.017 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.068e-05/0.9958, allocations: 11.98 kB / 1.017 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.9958, allocations: 3.938 kB / 1.017 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.378e-05/0.9958, allocations: 11.98 kB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.9959, allocations: 3.938 kB / 1.017 GB, free: 2.742 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.y,fac.u) * Number of discrete 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 6.492e-05/0.9959, allocations: 107.6 kB / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.218e-05/0.996, allocations: 53.31 kB / 1.017 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.878e-05/0.9961, allocations: 0 / 1.017 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.9962, allocations: 58.78 kB / 1.017 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.9962, allocations: 0 / 1.017 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.9962, allocations: 4 kB / 1.017 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.9962, allocations: 0 / 1.017 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.9963, allocations: 149.9 kB / 1.017 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.9964, allocations: 1.422 kB / 1.017 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.952e-05/0.9964, allocations: 19.97 kB / 1.017 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.9965, allocations: 4 kB / 1.017 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.9965, allocations: 0 / 1.017 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.9965, allocations: 0 / 1.017 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.9965, allocations: 0 / 1.017 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.9966, allocations: 147.1 kB / 1.018 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-05/0.9967, allocations: 77.11 kB / 1.018 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.9967, allocations: 0 / 1.018 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.229e-05/0.9968, allocations: 15.98 kB / 1.018 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.965e-05/0.9968, allocations: 7.859 kB / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.9968, allocations: 7.938 kB / 1.018 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.055e-05/0.9969, allocations: 75.28 kB / 1.018 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9969, allocations: 0 / 1.018 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002342/0.9971, allocations: 19.94 kB / 1.018 GB, free: 1.949 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.y,fac.u) * Number of discrete 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.0004238/0.9976, allocations: 0.7001 MB / 1.018 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.238e-05/0.9976, allocations: 19.86 kB / 1.018 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.9977, allocations: 0 / 1.018 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.938e-05/0.9977, allocations: 15.5 kB / 1.018 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.9979, allocations: 0 / 1.018 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00035/0.9982, allocations: 105.4 kB / 1.019 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.9984, allocations: 0.6846 MB / 1.019 GB, free: 364 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.053e-05/0.9985, allocations: 0 / 1.019 GB, free: 364 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.432e-05/0.9985, allocations: 15.38 kB / 1.019 GB, free: 352 kB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/0.9985, allocations: 0 / 1.019 GB, free: 352 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/1.016, allocations: 0.9801 MB / 1.02 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/1.017, allocations: 137.1 kB / 1.02 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.339/2.356, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)