Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.004766/0.004766, allocations: 99 kB / 15.73 MB, free: 6.441 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.001282/0.001282, allocations: 196.4 kB / 16.67 MB, free: 6.352 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002503/0.002503, allocations: 283 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.063/1.063, allocations: 178.6 MB / 0.5074 GB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002822/0.002822, allocations: 103.8 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5108/0.5136, allocations: 89.15 MB / 0.7814 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002915/0.5166, allocations: 1.512 MB / 0.7828 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003965/0.517, allocations: 132.2 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.627e-05/0.517, allocations: 1.406 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.172e-05/0.5171, allocations: 4.594 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.827e-05/0.5171, allocations: 0 / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.5173, allocations: 20.2 kB / 0.783 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.286e-05/0.5174, allocations: 36.17 kB / 0.783 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.5176, allocations: 13.78 kB / 0.783 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.409e-05/0.5176, allocations: 10.41 kB / 0.783 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.45e-05/0.5177, allocations: 21.27 kB / 0.7831 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.5177, allocations: 2.625 kB / 0.7831 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.134e-05/0.5178, allocations: 12.7 kB / 0.7831 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.656e-05/0.5178, allocations: 5.906 kB / 0.7831 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.052e-05/0.5178, allocations: 17.33 kB / 0.7831 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.5179, allocations: 34.38 kB / 0.7831 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.518, allocations: 0 / 0.7831 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.803e-06/0.518, allocations: 0 / 0.7831 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.518, allocations: 0 / 0.7831 GB, free: 12.62 MB / 0.5606 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.0005268/0.5185, allocations: 351.8 kB / 0.7835 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.5186, allocations: 8.344 kB / 0.7835 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.492e-05/0.5186, allocations: 32.8 kB / 0.7835 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.439e-05/0.5186, allocations: 2.25 kB / 0.7835 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.5188, allocations: 171.6 kB / 0.7837 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.5188, allocations: 5.719 kB / 0.7837 GB, free: 12 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.5188, allocations: 2.281 kB / 0.7837 GB, free: 12 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001923/0.519, allocations: 60.97 kB / 0.7837 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.519, allocations: 7.922 kB / 0.7837 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.5191, allocations: 4 kB / 0.7837 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.5191, allocations: 0 / 0.7837 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.5193, allocations: 42.08 kB / 0.7838 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004457/0.5197, allocations: 268.6 kB / 0.784 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.5201, allocations: 60.45 kB / 0.7841 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.5202, allocations: 26.83 kB / 0.7841 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.5204, allocations: 84.59 kB / 0.7842 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.5204, allocations: 32.31 kB / 0.7842 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.5204, allocations: 0 / 0.7842 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004161/0.5208, allocations: 101.6 kB / 0.7843 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.5209, allocations: 51.41 kB / 0.7844 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.101e-05/0.521, allocations: 105.3 kB / 0.7845 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.521, allocations: 29.27 kB / 0.7845 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.41e-05/0.5211, allocations: 80.7 kB / 0.7846 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.5211, allocations: 4.516 kB / 0.7846 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.5212, allocations: 18.97 kB / 0.7846 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.5213, allocations: 317.4 kB / 0.7849 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.807e-05/0.5214, allocations: 20.38 kB / 0.7849 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.013e-05/0.5215, allocations: 21.11 kB / 0.785 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.5217, allocations: 49.23 kB / 0.785 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5217, allocations: 0 / 0.785 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002355/0.522, allocations: 77.05 kB / 0.7851 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.522, allocations: 5.344 kB / 0.7851 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.522, allocations: 3.938 kB / 0.7851 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.522, allocations: 6.141 kB / 0.7851 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.249e-05/0.5221, allocations: 10.34 kB / 0.7851 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.5221, allocations: 0 / 0.7851 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.279e-05/0.5222, allocations: 11.3 kB / 0.7851 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.5222, allocations: 0.75 kB / 0.7851 GB, free: 10.72 MB / 0.5606 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 0.0001025/0.5223, allocations: 117 kB / 0.7852 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.5223, allocations: 5.141 kB / 0.7852 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.5226, allocations: 83.36 kB / 0.7853 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.5226, allocations: 1.375 kB / 0.7853 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.5227, allocations: 0.5156 kB / 0.7853 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.5227, allocations: 4.031 kB / 0.7853 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.5229, allocations: 167.3 kB / 0.7855 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5229, allocations: 1.766 kB / 0.7855 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.627e-05/0.523, allocations: 15.42 kB / 0.7855 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.523, allocations: 0 / 0.7855 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.445e-06/0.523, allocations: 1.5 kB / 0.7855 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.523, allocations: 0.5625 kB / 0.7855 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.523, allocations: 0 / 0.7855 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.5233, allocations: 169.4 kB / 0.7856 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.261e-05/0.5234, allocations: 83.31 kB / 0.7857 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.5234, allocations: 4 kB / 0.7857 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.5235, allocations: 6.859 kB / 0.7857 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.5235, allocations: 9.734 kB / 0.7857 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.5235, allocations: 6.016 kB / 0.7858 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.718e-05/0.5236, allocations: 83.08 kB / 0.7858 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.5236, allocations: 0 / 0.7858 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002223/0.5238, allocations: 12.05 kB / 0.7858 GB, free: 10.01 MB / 0.5606 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.0006583/0.5245, allocations: 0.7131 MB / 0.7865 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002374/0.5247, allocations: 45.33 kB / 0.7866 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5247, allocations: 0 / 0.7866 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.5249, allocations: 29.08 kB / 0.7866 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.5251, allocations: 3.375 kB / 0.7866 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000424/0.5256, allocations: 142.8 kB / 0.7868 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.5259, allocations: 0.6779 MB / 0.7874 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.053e-05/0.5259, allocations: 3.5 kB / 0.7874 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.184e-05/0.526, allocations: 19.03 kB / 0.7874 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.526, allocations: 0 / 0.7874 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.5501, allocations: 1.596 MB / 0.789 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/8.264, allocations: 9.766 kB / 0.789 GB, free: 8.043 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)