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.001711/0.001711, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.002244/0.002244, allocations: 221.5 kB / 22.26 MB, free: 5.125 MB / 14.72 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 1.601/1.601, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.282/3.282, allocations: 0.49 GB / 0.7951 GB, free: 33.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 68.88 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3645/0.3665, allocations: 176.1 MB / 1.326 GB, free: 1.945 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001853/0.3684, allocations: 0.5969 MB / 1.327 GB, free: 1.355 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002785/0.3687, allocations: 56.19 kB / 1.327 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.3687, allocations: 0 / 1.327 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.173e-05/0.3687, allocations: 0 / 1.327 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.331e-06/0.3687, allocations: 0 / 1.327 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.3689, allocations: 19.92 kB / 1.327 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 3.954e-05/0.369, allocations: 0 / 1.327 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.573e-05/0.369, allocations: 7.984 kB / 1.327 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.135e-05/0.3691, allocations: 0 / 1.327 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.196e-05/0.3691, allocations: 0 / 1.327 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 9.507e-06/0.3691, allocations: 0 / 1.327 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.693e-05/0.3692, allocations: 12 kB / 1.327 GB, free: 1.262 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.015e-05/0.3692, allocations: 7.984 kB / 1.327 GB, free: 1.254 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.291e-05/0.3692, allocations: 7.922 kB / 1.327 GB, free: 1.246 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 8.235e-05/0.3693, allocations: 8 kB / 1.327 GB, free: 1.238 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3693, allocations: 0 / 1.327 GB, free: 1.238 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3693, allocations: 0 / 1.327 GB, free: 1.238 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.169e-06/0.3693, allocations: 0 / 1.327 GB, free: 1.238 MB / 1.014 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.0003827/0.3697, allocations: 242.7 kB / 1.327 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3697, allocations: 12.03 kB / 1.327 GB, free: 0.957 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.3698, allocations: 34.75 kB / 1.327 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.3698, allocations: 0.9375 kB / 1.327 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.483e-05/0.3699, allocations: 106.5 kB / 1.327 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.3699, allocations: 4.375 kB / 1.327 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.3699, allocations: 384 / 1.327 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.37, allocations: 38.19 kB / 1.327 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.37, allocations: 7.875 kB / 1.327 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.37, allocations: 0 / 1.327 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.37, allocations: 0 / 1.327 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.68e-05/0.3701, allocations: 11.98 kB / 1.327 GB, free: 0.7188 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.3703, allocations: 116.8 kB / 1.327 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 6.011e-05/0.3703, allocations: 26.61 kB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.157e-05/0.3703, allocations: 8.922 kB / 1.327 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.3705, allocations: 4 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.3705, allocations: 38.48 kB / 1.327 GB, free: 476 kB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.3705, allocations: 0 / 1.327 GB, free: 476 kB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001588/0.3707, allocations: 45.58 kB / 1.327 GB, free: 424 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.3707, allocations: 55.53 kB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.17e-05/0.3708, allocations: 93.86 kB / 1.327 GB, free: 252 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.3708, allocations: 25.7 kB / 1.327 GB, free: 220 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.846e-05/0.3708, allocations: 80.14 kB / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.3709, allocations: 3.953 kB / 1.328 GB, free: 132 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.3709, allocations: 21.7 kB / 1.328 GB, free: 104 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.3711, allocations: 310.8 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.257e-05/0.3711, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.428e-06/0.3711, allocations: 8 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.73e-05/0.3711, allocations: 16.8 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3711, allocations: 0 / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.394e-05/0.3712, allocations: 41.69 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.3712, allocations: 4 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.3712, allocations: 7.938 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.3712, allocations: 0 / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.277e-05/0.3713, allocations: 0 / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.3713, allocations: 7.984 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.3713, allocations: 8.094 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-06/0.3713, allocations: 0 / 1.328 GB, free: 15.69 MB / 1.029 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 8.286e-05/0.3714, allocations: 110.4 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-06/0.3714, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.325e-05/0.3715, allocations: 48.73 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.3715, allocations: 3.984 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3715, allocations: 4 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.3715, allocations: 0 / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.3716, allocations: 116.8 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3716, allocations: 0 / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.248e-05/0.3716, allocations: 4 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.3716, allocations: 0 / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.3716, allocations: 7.922 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3716, allocations: 4 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3716, allocations: 3.938 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.045e-05/0.3717, allocations: 65.08 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-06/0.3717, allocations: 11.97 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.3717, allocations: 3.938 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.3717, allocations: 3.938 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.057e-05/0.3718, allocations: 4 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.3718, allocations: 0 / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.895e-05/0.3718, allocations: 75.28 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3718, allocations: 0 / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001899/0.372, allocations: 7.938 kB / 1.328 GB, free: 15.14 MB / 1.029 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.0004383/0.3724, allocations: 0.6046 MB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 7.202e-05/0.3725, allocations: 15.98 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3725, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.436e-05/0.3725, allocations: 4 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.3726, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003223/0.373, allocations: 122.7 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.3733, allocations: 0.6729 MB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.116e-05/0.3733, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.186e-05/0.3733, allocations: 11.44 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.3733, allocations: 0 / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.4021, allocations: 1.179 MB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.2, allocations: 9.609 kB / 1.331 GB, free: 12.55 MB / 1.029 GB " [Timeout remaining time 289] (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/jenkins1/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: 18.308133214999543]