Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.005414/0.005414, allocations: 97.62 kB / 15.73 MB, free: 6.055 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.001165/0.001165, allocations: 191.4 kB / 16.67 MB, free: 5.977 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.012/1.012, allocations: 143 MB / 433.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 68.08 kB / 0.5951 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3804, allocations: 82.03 MB / 0.6752 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0015/0.3819, allocations: 0.5718 MB / 0.6758 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002762/0.3822, allocations: 57.7 kB / 0.6758 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.602e-05/0.3822, allocations: 0 / 0.6758 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.3823, allocations: 1.062 kB / 0.6758 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.653e-06/0.3823, allocations: 0 / 0.6758 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.3825, allocations: 7.531 kB / 0.6758 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.551e-05/0.3826, allocations: 10.25 kB / 0.6758 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.172e-05/0.3826, allocations: 1.344 kB / 0.6758 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.529e-05/0.3827, allocations: 9.219 kB / 0.6758 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.808e-05/0.3827, allocations: 5.062 kB / 0.6759 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.3827, allocations: 1.156 kB / 0.6759 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.507e-05/0.3828, allocations: 8.422 kB / 0.6759 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.157e-05/0.3828, allocations: 4 kB / 0.6759 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.132e-05/0.3828, allocations: 1.094 kB / 0.6759 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.3829, allocations: 7.328 kB / 0.6759 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.383, allocations: 1.125 kB / 0.6759 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.314e-06/0.383, allocations: 0 / 0.6759 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.383, allocations: 0 / 0.6759 GB, free: 0.7773 MB / 0.4981 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.0002849/0.3833, allocations: 322.1 kB / 0.6762 GB, free: 428 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.3833, allocations: 9.812 kB / 0.6762 GB, free: 428 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.3e-05/0.3834, allocations: 35.88 kB / 0.6762 GB, free: 384 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.09e-05/0.3834, allocations: 0.9375 kB / 0.6762 GB, free: 384 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.302e-05/0.3835, allocations: 161.5 kB / 0.6764 GB, free: 184 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.3835, allocations: 384 / 0.6764 GB, free: 184 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-06/0.3835, allocations: 1.469 kB / 0.6764 GB, free: 184 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.913e-05/0.3836, allocations: 45.38 kB / 0.6764 GB, free: 136 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.3836, allocations: 3.938 kB / 0.6764 GB, free: 132 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.3836, allocations: 5.062 kB / 0.6764 GB, free: 128 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3836, allocations: 0 / 0.6764 GB, free: 128 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.165e-05/0.3837, allocations: 3.219 kB / 0.6764 GB, free: 128 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001652/0.3839, allocations: 147.8 kB / 0.6766 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.35e-05/0.3839, allocations: 23.33 kB / 0.6766 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.757e-05/0.384, allocations: 7.797 kB / 0.6766 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002247/0.3842, allocations: 91.39 kB / 0.6767 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.3842, allocations: 39.72 kB / 0.6767 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.3842, allocations: 0 / 0.6767 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001658/0.3844, allocations: 42.3 kB / 0.6768 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.3845, allocations: 52.78 kB / 0.6768 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.77e-05/0.3845, allocations: 97.8 kB / 0.6769 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.3845, allocations: 26.95 kB / 0.6769 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.3846, allocations: 84.14 kB / 0.677 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.3846, allocations: 5.109 kB / 0.677 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.3846, allocations: 16.34 kB / 0.677 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3848, allocations: 310.8 kB / 0.6773 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.484e-05/0.3848, allocations: 1.531 kB / 0.6773 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.549e-05/0.3848, allocations: 10.75 kB / 0.6773 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.914e-05/0.3849, allocations: 13.03 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3849, allocations: 1.156 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.061e-05/0.3849, allocations: 37.95 kB / 0.6774 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.385, allocations: 8.531 kB / 0.6774 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.385, allocations: 3.938 kB / 0.6774 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.385, allocations: 1.594 kB / 0.6774 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.985e-05/0.3851, allocations: 6.828 kB / 0.6774 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.3851, allocations: 0 / 0.6774 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.445e-05/0.3851, allocations: 1.406 kB / 0.6774 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.3851, allocations: 0 / 0.6774 GB, free: 15.02 MB / 0.5137 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 7.352e-05/0.3852, allocations: 107.4 kB / 0.6775 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.3852, allocations: 5.5 kB / 0.6775 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.782e-05/0.3853, allocations: 51.66 kB / 0.6776 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3853, allocations: 0 / 0.6776 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3853, allocations: 1.188 kB / 0.6776 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3853, allocations: 3.938 kB / 0.6776 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.3855, allocations: 148.1 kB / 0.6777 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3855, allocations: 0 / 0.6777 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.436e-05/0.3855, allocations: 7.391 kB / 0.6777 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3855, allocations: 0 / 0.6777 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3855, allocations: 5.188 kB / 0.6777 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3855, allocations: 4 kB / 0.6777 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3855, allocations: 4.031 kB / 0.6777 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.195e-05/0.3856, allocations: 70.58 kB / 0.6778 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.3857, allocations: 77.11 kB / 0.6779 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.3857, allocations: 5.188 kB / 0.6779 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.09e-05/0.3857, allocations: 0 / 0.6779 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.016e-05/0.3857, allocations: 2.344 kB / 0.6779 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.3857, allocations: 0 / 0.6779 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 2.967e-05/0.3858, allocations: 84.44 kB / 0.678 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3858, allocations: 0 / 0.678 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002181/0.386, allocations: 4 kB / 0.678 GB, free: 14.39 MB / 0.5137 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.0004312/0.3865, allocations: 0.611 MB / 0.6786 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 7.784e-05/0.3865, allocations: 14.84 kB / 0.6786 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3865, allocations: 0 / 0.6786 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.596e-05/0.3866, allocations: 3.656 kB / 0.6786 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.3867, allocations: 6.203 kB / 0.6786 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.387, allocations: 117.6 kB / 0.6787 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.3873, allocations: 0.6706 MB / 0.6794 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.215e-05/0.3873, allocations: 2.531 kB / 0.6794 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.234e-05/0.3873, allocations: 12.61 kB / 0.6794 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of SimCode: time 1.613e-06/0.3873, allocations: 4.125 kB / 0.6794 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.4054, allocations: 1.067 MB / 0.6804 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/8.092, allocations: 13.02 kB / 0.6804 GB, free: 12.29 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)