Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 192.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.698/1.698, allocations: 292.3 MB / 0.5489 GB, free: 12.86 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 72.98 kB / 0.6716 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2359, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001643/0.2376, allocations: 0.594 MB / 0.7841 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002185/0.2378, allocations: 39.86 kB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.5e-05/0.2379, allocations: 4 kB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.058e-05/0.2379, allocations: 0 / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.65e-06/0.2379, allocations: 7.938 kB / 0.7841 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.2381, allocations: 11.92 kB / 0.7841 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.706e-05/0.2381, allocations: 4 kB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.939e-05/0.2382, allocations: 8 kB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.169e-05/0.2382, allocations: 0 / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.069e-05/0.2382, allocations: 3.984 kB / 0.7841 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.454e-06/0.2382, allocations: 0 / 0.7841 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.309e-05/0.2383, allocations: 11.98 kB / 0.7842 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.827e-06/0.2383, allocations: 4 kB / 0.7842 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 1.529e-05/0.2383, allocations: 3.938 kB / 0.7842 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.734e-05/0.2384, allocations: 11.98 kB / 0.7842 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2384, allocations: 4 kB / 0.7842 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2384, allocations: 0 / 0.7842 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.2385, allocations: 0 / 0.7842 GB, free: 12.69 MB / 0.6075 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.0002438/0.2387, allocations: 311.6 kB / 0.7845 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.2387, allocations: 8.031 kB / 0.7845 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.772e-05/0.2388, allocations: 34.75 kB / 0.7845 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.2388, allocations: 4.875 kB / 0.7845 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.673e-05/0.2389, allocations: 164.4 kB / 0.7847 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.2389, allocations: 384 / 0.7847 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-06/0.2389, allocations: 4.375 kB / 0.7847 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.386e-05/0.239, allocations: 34.27 kB / 0.7847 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.239, allocations: 3.938 kB / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.239, allocations: 0 / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.239, allocations: 0 / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.093e-05/0.2391, allocations: 7.984 kB / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001217/0.2392, allocations: 149.7 kB / 0.7849 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 4.359e-05/0.2392, allocations: 26.55 kB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.833e-05/0.2393, allocations: 8.844 kB / 0.7849 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001361/0.2394, allocations: 85.11 kB / 0.785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.2394, allocations: 34.56 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.2394, allocations: 4 kB / 0.785 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001281/0.2396, allocations: 41.62 kB / 0.7851 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.2396, allocations: 55.34 kB / 0.7851 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.299e-05/0.2397, allocations: 93.98 kB / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.2397, allocations: 29.7 kB / 0.7852 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.102e-05/0.2397, allocations: 80.14 kB / 0.7853 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.2397, allocations: 8.172 kB / 0.7853 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/0.2397, allocations: 13.72 kB / 0.7853 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.2398, allocations: 310.8 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.497e-05/0.2399, allocations: 11.98 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.2399, allocations: 0 / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.424e-05/0.2399, allocations: 16.92 kB / 0.7856 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.2399, allocations: 3.938 kB / 0.7857 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.513e-05/0.24, allocations: 37.7 kB / 0.7857 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.24, allocations: 7.984 kB / 0.7857 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.24, allocations: 7.875 kB / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.24, allocations: 0 / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.237e-05/0.2401, allocations: 4 kB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.2401, allocations: 0 / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.322e-05/0.2401, allocations: 3.938 kB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-06/0.2401, allocations: 0 / 0.7857 GB, free: 10.86 MB / 0.6075 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 (n,fac) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.603e-05/0.2402, allocations: 113.9 kB / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.732e-06/0.2402, allocations: 0 / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.373e-05/0.2403, allocations: 48.75 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.2403, allocations: 0 / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2403, allocations: 0 / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2403, allocations: 0 / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.979e-05/0.2404, allocations: 157.7 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2404, allocations: 0 / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.334e-05/0.2404, allocations: 3.938 kB / 0.786 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.2404, allocations: 8.031 kB / 0.786 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.2404, allocations: 3.938 kB / 0.786 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.2405, allocations: 0 / 0.786 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2405, allocations: 0 / 0.786 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.601e-05/0.2405, allocations: 65.06 kB / 0.7861 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.2406, allocations: 81.09 kB / 0.7862 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.2406, allocations: 7.938 kB / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-06/0.2406, allocations: 4.031 kB / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.182e-05/0.2406, allocations: 3.984 kB / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.2406, allocations: 0 / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.874e-05/0.2407, allocations: 75.28 kB / 0.7863 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2407, allocations: 0 / 0.7863 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001719/0.2408, allocations: 4 kB / 0.7863 GB, free: 10.19 MB / 0.6075 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003711/0.2412, allocations: 0.6162 MB / 0.7869 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 6.525e-05/0.2413, allocations: 8 kB / 0.7869 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.2413, allocations: 0 / 0.7869 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.632e-05/0.2413, allocations: 11.92 kB / 0.7869 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.2415, allocations: 4 kB / 0.7869 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002655/0.2417, allocations: 114.8 kB / 0.787 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.2419, allocations: 0.6768 MB / 0.7877 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.306e-05/0.2419, allocations: 4 kB / 0.7877 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.99e-05/0.242, allocations: 15.38 kB / 0.7877 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.242, allocations: 0 / 0.7877 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.2574, allocations: 1.033 MB / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.814/7.072, allocations: 8 kB / 0.7887 GB, free: 7.668 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)