Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.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 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_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.001616/0.001616, allocations: 107.1 kB / 16.41 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 191.9 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8248/0.8248, allocations: 126.7 MB / 417.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003047/0.003047, allocations: 67.5 kB / 0.5735 GB, free: 27.06 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1908, allocations: 78.86 MB / 0.6506 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003127/0.1939, allocations: 1.5 MB / 0.652 GB, free: 2.086 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004158/0.1944, allocations: 130.3 kB / 0.6521 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.347e-05/0.1944, allocations: 0 / 0.6521 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/0.1945, allocations: 3.938 kB / 0.6522 GB, free: 1.953 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.443e-05/0.1946, allocations: 0 / 0.6522 GB, free: 1.953 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.1948, allocations: 23.92 kB / 0.6522 GB, free: 1.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.651e-05/0.1949, allocations: 31.92 kB / 0.6522 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.195, allocations: 11.97 kB / 0.6522 GB, free: 1.887 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.651e-05/0.1951, allocations: 11.94 kB / 0.6522 GB, free: 1.875 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.3e-05/0.1951, allocations: 11.98 kB / 0.6522 GB, free: 1.863 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.1952, allocations: 4 kB / 0.6522 GB, free: 1.859 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.1952, allocations: 15.98 kB / 0.6523 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.768e-05/0.1952, allocations: 7.938 kB / 0.6523 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.1953, allocations: 15.92 kB / 0.6523 GB, free: 1.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.1954, allocations: 40.11 kB / 0.6523 GB, free: 1.781 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1955, allocations: 0 / 0.6523 GB, free: 1.781 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1955, allocations: 3.938 kB / 0.6523 GB, free: 1.777 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1955, allocations: 0 / 0.6523 GB, free: 1.777 MB / 494.1 MB 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.0004969/0.196, allocations: 339.5 kB / 0.6526 GB, free: 1.395 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.196, allocations: 8.031 kB / 0.6527 GB, free: 1.387 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.1961, allocations: 38.73 kB / 0.6527 GB, free: 1.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.483e-05/0.1961, allocations: 0.9375 kB / 0.6527 GB, free: 1.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.1962, allocations: 168.3 kB / 0.6529 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.1963, allocations: 16.31 kB / 0.6529 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.1963, allocations: 384 / 0.6529 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001934/0.1965, allocations: 58.22 kB / 0.6529 GB, free: 1.059 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1965, allocations: 3.938 kB / 0.6529 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.1965, allocations: 8 kB / 0.6529 GB, free: 1.047 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1965, allocations: 0 / 0.6529 GB, free: 1.047 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.1967, allocations: 39.95 kB / 0.653 GB, free: 1.008 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004073/0.1971, allocations: 260.9 kB / 0.6532 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.1975, allocations: 62.47 kB / 0.6533 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.1976, allocations: 24.91 kB / 0.6533 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001268/0.1978, allocations: 89.08 kB / 0.6534 GB, free: 0.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1978, allocations: 34.56 kB / 0.6534 GB, free: 468 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1978, allocations: 0 / 0.6534 GB, free: 468 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004031/0.1982, allocations: 93.58 kB / 0.6535 GB, free: 368 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.1983, allocations: 55.39 kB / 0.6536 GB, free: 300 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.076e-05/0.1983, allocations: 97.86 kB / 0.6537 GB, free: 192 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.1984, allocations: 25.7 kB / 0.6537 GB, free: 160 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.265e-05/0.1984, allocations: 92.09 kB / 0.6538 GB, free: 64 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.1985, allocations: 15.88 kB / 0.6538 GB, free: 48 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.1985, allocations: 13.72 kB / 0.6538 GB, free: 28 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1987, allocations: 310.8 kB / 0.6541 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.1988, allocations: 23.97 kB / 0.6541 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.786e-05/0.1989, allocations: 20.36 kB / 0.6541 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.1991, allocations: 56.83 kB / 0.6542 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1991, allocations: 0 / 0.6542 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002306/0.1993, allocations: 73.59 kB / 0.6543 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1993, allocations: 4 kB / 0.6543 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1993, allocations: 0 / 0.6543 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1994, allocations: 0 / 0.6543 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.769e-05/0.1995, allocations: 11.98 kB / 0.6543 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.1995, allocations: 3.984 kB / 0.6543 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.231e-05/0.1995, allocations: 15.98 kB / 0.6543 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.1996, allocations: 0 / 0.6543 GB, free: 15.5 MB / 0.4981 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.362e-05/0.1997, allocations: 113.8 kB / 0.6544 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/0.1997, allocations: 0 / 0.6544 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.2, allocations: 96.97 kB / 0.6545 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2, allocations: 0 / 0.6545 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2, allocations: 0 / 0.6545 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2, allocations: 4 kB / 0.6545 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.2002, allocations: 169.5 kB / 0.6547 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2002, allocations: 0 / 0.6547 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.737e-05/0.2003, allocations: 11.98 kB / 0.6547 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2003, allocations: 0 / 0.6547 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.2003, allocations: 0 / 0.6547 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2003, allocations: 0 / 0.6547 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2003, allocations: 0 / 0.6547 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.2006, allocations: 175.4 kB / 0.6548 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.47e-05/0.2007, allocations: 81.11 kB / 0.6549 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.2007, allocations: 8 kB / 0.6549 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.408e-05/0.2008, allocations: 3.984 kB / 0.6549 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.853e-05/0.2008, allocations: 7.984 kB / 0.6549 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.2009, allocations: 0 / 0.6549 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.286e-05/0.2009, allocations: 87.22 kB / 0.655 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.003e-06/0.2009, allocations: 0 / 0.655 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002262/0.2011, allocations: 15.94 kB / 0.655 GB, free: 14.64 MB / 0.4981 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,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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 (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.000637/0.2018, allocations: 0.7088 MB / 0.6557 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.202, allocations: 43.95 kB / 0.6558 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2021, allocations: 3.938 kB / 0.6558 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.2022, allocations: 32.05 kB / 0.6558 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.2025, allocations: 7.969 kB / 0.6558 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000441/0.2029, allocations: 147.2 kB / 0.656 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.2032, allocations: 0.6729 MB / 0.6566 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.386e-05/0.2033, allocations: 11.98 kB / 0.6566 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.244e-05/0.2033, allocations: 15.44 kB / 0.6566 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.2033, allocations: 0 / 0.6566 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.2264, allocations: 1.565 MB / 0.6582 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.243/8.47, allocations: 11.17 kB / 0.6582 GB, free: 11.4 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)