Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9102/0.9102, allocations: 177.2 MB / 202.8 MB, free: 5.555 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.744/1.744, allocations: 377.9 MB / 0.6221 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 0.981 GB, free: 2.508 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.238e-05/1.377e-05, allocations: 2.281 kB / 0.981 GB, free: 2.504 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001029/0.001043, allocations: 0.5916 MB / 0.9816 GB, free: 1.914 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.000211/0.001254, allocations: 51.8 kB / 0.9817 GB, free: 1.863 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.406e-05/0.001268, allocations: 4 kB / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.463e-05/0.001282, allocations: 0 / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.482e-06/0.001289, allocations: 0 / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.00149, allocations: 11.88 kB / 0.9817 GB, free: 1.848 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 3.889e-05/0.001529, allocations: 3.984 kB / 0.9817 GB, free: 1.844 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.821e-05/0.001568, allocations: 4 kB / 0.9817 GB, free: 1.84 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.407e-05/0.001592, allocations: 4 kB / 0.9817 GB, free: 1.836 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 1.899e-05/0.001611, allocations: 3.984 kB / 0.9817 GB, free: 1.832 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.001621, allocations: 4 kB / 0.9817 GB, free: 1.828 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.857e-05/0.00169, allocations: 11.98 kB / 0.9817 GB, free: 1.816 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 9.358e-06/0.001699, allocations: 0 / 0.9817 GB, free: 1.816 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.352e-05/0.001713, allocations: 4 kB / 0.9817 GB, free: 1.812 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 7.518e-05/0.001788, allocations: 4 kB / 0.9817 GB, free: 1.809 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.00179, allocations: 0 / 0.9817 GB, free: 1.809 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.394e-06/0.001792, allocations: 7.922 kB / 0.9817 GB, free: 1.801 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.001796, allocations: 0 / 0.9817 GB, free: 1.801 MB / 0.9323 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.0002035/0.001999, allocations: 244.8 kB / 0.9819 GB, free: 1.531 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.002032, allocations: 8.031 kB / 0.982 GB, free: 1.523 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.38e-05/0.002056, allocations: 30.75 kB / 0.982 GB, free: 1.484 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.889e-05/0.002075, allocations: 4.938 kB / 0.982 GB, free: 1.48 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.873e-05/0.002124, allocations: 109.8 kB / 0.9821 GB, free: 1.348 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.002133, allocations: 4.375 kB / 0.9821 GB, free: 1.344 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.141e-06/0.002139, allocations: 384 / 0.9821 GB, free: 1.344 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.422e-05/0.002213, allocations: 38.2 kB / 0.9821 GB, free: 1.301 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.002219, allocations: 192 / 0.9821 GB, free: 1.301 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-06/0.002226, allocations: 384 / 0.9821 GB, free: 1.301 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.002231, allocations: 4.125 kB / 0.9821 GB, free: 1.297 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.943e-05/0.00226, allocations: 7.938 kB / 0.9821 GB, free: 1.289 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.967e-05/0.00236, allocations: 124.8 kB / 0.9823 GB, free: 1.125 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 4.311e-05/0.002403, allocations: 22.61 kB / 0.9823 GB, free: 1.094 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.361e-05/0.002417, allocations: 4.859 kB / 0.9823 GB, free: 1.086 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.002529, allocations: 8.047 kB / 0.9823 GB, free: 1.078 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.002547, allocations: 42.5 kB / 0.9823 GB, free: 1.027 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=2): time 7.42e-07/0.002548, allocations: 0 / 0.9823 GB, free: 1.027 MB / 0.9323 GB Notification: Performance of matching and sorting (n=2): time 0.0001079/0.002656, allocations: 33.7 kB / 0.9824 GB, free: 0.9883 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.491e-05/0.002681, allocations: 55.34 kB / 0.9824 GB, free: 0.9219 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.718e-05/0.002708, allocations: 93.84 kB / 0.9825 GB, free: 0.8203 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.002717, allocations: 29.7 kB / 0.9825 GB, free: 0.7852 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 1.691e-05/0.002734, allocations: 84.25 kB / 0.9826 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.002752, allocations: 11.94 kB / 0.9826 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/0.002772, allocations: 9.719 kB / 0.9826 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 6.458e-05/0.002837, allocations: 314.8 kB / 0.9829 GB, free: 364 kB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.002846, allocations: 4 kB / 0.9829 GB, free: 360 kB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.231e-06/0.002852, allocations: 4 kB / 0.983 GB, free: 356 kB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.476e-05/0.002877, allocations: 16.78 kB / 0.983 GB, free: 336 kB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.002879, allocations: 0 / 0.983 GB, free: 336 kB / 0.9323 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.722e-05/0.002916, allocations: 41.66 kB / 0.983 GB, free: 288 kB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.002926, allocations: 6.5 kB / 0.983 GB, free: 284 kB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.002931, allocations: 8.031 kB / 0.983 GB, free: 276 kB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.00294, allocations: 4 kB / 0.983 GB, free: 272 kB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.981e-05/0.00298, allocations: 0 / 0.983 GB, free: 272 kB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.002985, allocations: 3.938 kB / 0.983 GB, free: 268 kB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.328e-06/0.002994, allocations: 7.984 kB / 0.983 GB, free: 260 kB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-06/0.002998, allocations: 0 / 0.983 GB, free: 260 kB / 0.9323 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 4.235e-05/0.00304, allocations: 105.8 kB / 0.9831 GB, free: 144 kB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.497e-06/0.003044, allocations: 0 / 0.9831 GB, free: 144 kB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.968e-05/0.003103, allocations: 48.78 kB / 0.9832 GB, free: 92 kB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.003107, allocations: 8.031 kB / 0.9832 GB, free: 84 kB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.003111, allocations: 3.938 kB / 0.9832 GB, free: 80 kB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.003114, allocations: 0 / 0.9832 GB, free: 80 kB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.629e-05/0.00318, allocations: 116.8 kB / 0.9833 GB, free: 15.92 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.00318, allocations: 0 / 0.9833 GB, free: 15.92 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-06/0.003189, allocations: 4 kB / 0.9833 GB, free: 15.92 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.003191, allocations: 3.984 kB / 0.9833 GB, free: 15.91 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.003196, allocations: 0 / 0.9833 GB, free: 15.91 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.003197, allocations: 4 kB / 0.9833 GB, free: 15.91 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.003199, allocations: 7.938 kB / 0.9833 GB, free: 15.9 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.382e-05/0.003243, allocations: 61.08 kB / 0.9834 GB, free: 15.82 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-06/0.003248, allocations: 8.016 kB / 0.9834 GB, free: 15.82 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.857e-06/0.003257, allocations: 7.938 kB / 0.9834 GB, free: 15.81 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.579e-06/0.003261, allocations: 0 / 0.9834 GB, free: 15.81 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.378e-05/0.003285, allocations: 7.922 kB / 0.9834 GB, free: 15.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-06/0.003286, allocations: 0 / 0.9834 GB, free: 15.8 MB / 0.948 GB Notification: Performance of sorting global known variables: time 1.745e-05/0.003304, allocations: 75.28 kB / 0.9835 GB, free: 15.73 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.003304, allocations: 4 kB / 0.9835 GB, free: 15.72 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001221/0.003426, allocations: 4 kB / 0.9835 GB, free: 15.72 MB / 0.948 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.0002461/0.003672, allocations: 0.5969 MB / 0.9841 GB, free: 15.09 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 5.911e-05/0.003731, allocations: 19.92 kB / 0.9841 GB, free: 15.07 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.003732, allocations: 0 / 0.9841 GB, free: 15.07 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.927e-06/0.003741, allocations: 4 kB / 0.9841 GB, free: 15.07 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.132e-05/0.003832, allocations: 3.938 kB / 0.9841 GB, free: 15.07 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002212/0.004054, allocations: 118.6 kB / 0.9842 GB, free: 14.91 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.311e-05/0.004087, allocations: 55.22 kB / 0.9843 GB, free: 14.84 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 8.927e-06/0.004096, allocations: 4 kB / 0.9843 GB, free: 14.83 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.703e-05/0.004113, allocations: 8.5 kB / 0.9843 GB, free: 14.82 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/0.004113, allocations: 4.125 kB / 0.9843 GB, free: 14.82 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01253/0.01664, allocations: 1.708 MB / 0.9859 GB, free: 13.23 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.721/6.737, allocations: 10.19 kB / 0.986 GB, free: 13.23 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.82727193273604]