Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 109 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 185.9 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 225.6 MB / 249.3 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.364/2.364, allocations: 443.5 MB / 0.7304 GB, free: 13.89 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 67.89 kB / 1.059 GB, free: 0.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.281, allocations: 160.7 MB / 1.216 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00174/0.2827, allocations: 0.5909 MB / 1.216 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000282/0.283, allocations: 51.86 kB / 1.216 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.742e-05/0.283, allocations: 4 kB / 1.216 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.294e-05/0.283, allocations: 0 / 1.216 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.646e-06/0.283, allocations: 3.938 kB / 1.216 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.2832, allocations: 7.984 kB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.18e-05/0.2833, allocations: 4 kB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.304e-05/0.2833, allocations: 0 / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.63e-05/0.2834, allocations: 4 kB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.956e-05/0.2834, allocations: 11.92 kB / 1.216 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.2834, allocations: 0 / 1.216 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.382e-05/0.2835, allocations: 11.98 kB / 1.216 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.258e-06/0.2835, allocations: 0 / 1.216 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.304e-05/0.2835, allocations: 4 kB / 1.216 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 8.606e-05/0.2836, allocations: 7.984 kB / 1.216 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2836, allocations: 0 / 1.216 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2836, allocations: 0 / 1.216 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.2836, allocations: 0 / 1.216 GB, free: 15.14 MB / 0.9669 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.000347/0.284, allocations: 319.8 kB / 1.217 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.284, allocations: 8.031 kB / 1.217 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.371e-05/0.284, allocations: 30.75 kB / 1.217 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.486e-05/0.2841, allocations: 8.875 kB / 1.217 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.2842, allocations: 164.3 kB / 1.217 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.2842, allocations: 8.375 kB / 1.217 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-06/0.2842, allocations: 4.312 kB / 1.217 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.008e-05/0.2843, allocations: 34.27 kB / 1.217 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2843, allocations: 7.922 kB / 1.217 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-06/0.2843, allocations: 0 / 1.217 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.2843, allocations: 0 / 1.217 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.067e-05/0.2843, allocations: 7.984 kB / 1.217 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.2845, allocations: 145.7 kB / 1.217 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.232e-05/0.2845, allocations: 34.48 kB / 1.217 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.333e-05/0.2846, allocations: 12.91 kB / 1.217 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000161/0.2847, allocations: 81.11 kB / 1.217 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.2848, allocations: 34.56 kB / 1.217 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.2848, allocations: 0 / 1.217 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001373/0.2849, allocations: 45.62 kB / 1.217 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.2849, allocations: 55.47 kB / 1.217 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.366e-05/0.285, allocations: 93.86 kB / 1.217 GB, free: 13.85 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.285, allocations: 25.7 kB / 1.217 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.184e-05/0.285, allocations: 80.14 kB / 1.217 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.285, allocations: 8 kB / 1.217 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.618e-05/0.2851, allocations: 9.719 kB / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2852, allocations: 318.8 kB / 1.218 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.039e-05/0.2852, allocations: 0 / 1.218 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.087e-05/0.2852, allocations: 8 kB / 1.218 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.085e-05/0.2853, allocations: 12.92 kB / 1.218 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-06/0.2853, allocations: 0 / 1.218 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.434e-05/0.2853, allocations: 37.7 kB / 1.218 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.2854, allocations: 7.984 kB / 1.218 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2854, allocations: 3.938 kB / 1.218 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.2854, allocations: 3.938 kB / 1.218 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.337e-05/0.2854, allocations: 4 kB / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.2854, allocations: 0 / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.445e-05/0.2854, allocations: 4.031 kB / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.2854, allocations: 4 kB / 1.218 GB, free: 13.3 MB / 0.9669 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.974e-05/0.2855, allocations: 105.8 kB / 1.218 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.2855, allocations: 3.953 kB / 1.218 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.271e-05/0.2856, allocations: 48.75 kB / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2856, allocations: 0 / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2856, allocations: 3.938 kB / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2856, allocations: 0 / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.2858, allocations: 149.7 kB / 1.218 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2858, allocations: 4.031 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.787e-05/0.2858, allocations: 11.94 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2858, allocations: 0 / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.2858, allocations: 3.938 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2858, allocations: 0 / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2858, allocations: 0 / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.895e-05/0.2859, allocations: 61.12 kB / 1.218 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.811e-05/0.2859, allocations: 81.14 kB / 1.218 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.2859, allocations: 7.938 kB / 1.218 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.968e-06/0.2859, allocations: 0 / 1.218 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.756e-05/0.286, allocations: 7.922 kB / 1.218 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.286, allocations: 8 kB / 1.218 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.145e-05/0.286, allocations: 75.28 kB / 1.218 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.286, allocations: 0 / 1.218 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001742/0.2862, allocations: 4 kB / 1.218 GB, free: 12.63 MB / 0.9669 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.0004651/0.2867, allocations: 0.6162 MB / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.329e-05/0.2867, allocations: 4 kB / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2867, allocations: 0 / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.689e-05/0.2867, allocations: 7.984 kB / 1.219 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.2869, allocations: 7.938 kB / 1.219 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003306/0.2872, allocations: 118.7 kB / 1.219 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.2875, allocations: 0.6729 MB / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.448e-05/0.2875, allocations: 4 kB / 1.22 GB, free: 11.1 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.114e-05/0.2875, allocations: 7.438 kB / 1.22 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of SimCode: time 6.61e-07/0.2875, allocations: 0 / 1.22 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.3114, allocations: 1.043 MB / 1.221 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.928/7.24, allocations: 8.703 kB / 1.221 GB, free: 10.12 MB / 0.9669 GB " [Timeout remaining time 293] (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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: 12.465633303996583]