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.001737/0.001737, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002218/0.002218, allocations: 214.4 kB / 22.25 MB, free: 5.242 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.695/1.695, allocations: 230.6 MB / 256 MB, free: 7.789 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.424/3.424, allocations: 0.4893 GB / 0.7944 GB, free: 35.4 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.002082/0.002082, allocations: 68.66 kB / 1.153 GB, free: 25.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3632, allocations: 176.1 MB / 1.325 GB, free: 2.328 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001982/0.3652, allocations: 0.5903 MB / 1.326 GB, free: 1.742 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003107/0.3655, allocations: 48.28 kB / 1.326 GB, free: 1.695 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.801e-05/0.3656, allocations: 0 / 1.326 GB, free: 1.695 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.3656, allocations: 0 / 1.326 GB, free: 1.695 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.193e-06/0.3656, allocations: 4 kB / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.3658, allocations: 15.92 kB / 1.326 GB, free: 1.676 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 4.885e-05/0.3659, allocations: 4 kB / 1.326 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.029e-05/0.3659, allocations: 0 / 1.326 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.3659, allocations: 4 kB / 1.326 GB, free: 1.668 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.421e-05/0.366, allocations: 0 / 1.326 GB, free: 1.668 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.366, allocations: 0 / 1.326 GB, free: 1.668 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.971e-05/0.3661, allocations: 11.98 kB / 1.326 GB, free: 1.656 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.3661, allocations: 7.984 kB / 1.326 GB, free: 1.648 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.295e-05/0.3661, allocations: 7.938 kB / 1.326 GB, free: 1.641 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 9.891e-05/0.3662, allocations: 7.984 kB / 1.326 GB, free: 1.633 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3662, allocations: 0 / 1.326 GB, free: 1.633 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3662, allocations: 0 / 1.326 GB, free: 1.633 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.3662, allocations: 0 / 1.326 GB, free: 1.633 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.0003772/0.3666, allocations: 242.7 kB / 1.326 GB, free: 1.363 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3667, allocations: 12.03 kB / 1.326 GB, free: 1.352 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.3667, allocations: 34.73 kB / 1.326 GB, free: 1.309 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.3667, allocations: 0.9375 kB / 1.326 GB, free: 1.309 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.4e-05/0.3668, allocations: 106.5 kB / 1.326 GB, free: 1.18 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.3668, allocations: 4.375 kB / 1.326 GB, free: 1.176 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-06/0.3668, allocations: 4.375 kB / 1.326 GB, free: 1.172 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.3669, allocations: 38.2 kB / 1.326 GB, free: 1.129 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3669, allocations: 3.938 kB / 1.326 GB, free: 1.125 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.3669, allocations: 0 / 1.326 GB, free: 1.125 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3669, allocations: 0 / 1.326 GB, free: 1.125 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.865e-05/0.367, allocations: 7.984 kB / 1.326 GB, free: 1.117 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.3671, allocations: 116.8 kB / 1.326 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 6.604e-05/0.3672, allocations: 18.67 kB / 1.326 GB, free: 0.9336 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.296e-05/0.3672, allocations: 20.83 kB / 1.326 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.3673, allocations: 7.938 kB / 1.326 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.3674, allocations: 34.56 kB / 1.326 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.3674, allocations: 0 / 1.326 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001491/0.3675, allocations: 45.62 kB / 1.326 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.3676, allocations: 51.41 kB / 1.327 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.698e-05/0.3676, allocations: 97.8 kB / 1.327 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3677, allocations: 25.7 kB / 1.327 GB, free: 0.6094 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.895e-05/0.3677, allocations: 80.14 kB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.3677, allocations: 3.953 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.3677, allocations: 17.84 kB / 1.327 GB, free: 0.5 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002096/0.368, allocations: 314.8 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.438e-05/0.368, allocations: 8 kB / 1.327 GB, free: 180 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.087e-05/0.368, allocations: 7.922 kB / 1.327 GB, free: 172 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.247e-05/0.368, allocations: 12.86 kB / 1.327 GB, free: 156 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.368, allocations: 0 / 1.327 GB, free: 156 kB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.583e-05/0.3681, allocations: 37.7 kB / 1.327 GB, free: 112 kB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.3681, allocations: 4 kB / 1.327 GB, free: 108 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.3681, allocations: 3.938 kB / 1.327 GB, free: 104 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3681, allocations: 96 / 1.327 GB, free: 104 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.063e-05/0.3682, allocations: 11.98 kB / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3682, allocations: 0 / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.401e-05/0.3682, allocations: 0 / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.3682, allocations: 4 kB / 1.327 GB, free: 88 kB / 1.014 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 0.0001921/0.3684, allocations: 111.6 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.3684, allocations: 0 / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.3685, allocations: 48.78 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3685, allocations: 0 / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3685, allocations: 0 / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3685, allocations: 4.031 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.3687, allocations: 120.8 kB / 1.327 GB, free: 15.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3687, allocations: 3.984 kB / 1.327 GB, free: 15.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.367e-05/0.3687, allocations: 7.938 kB / 1.327 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3687, allocations: 0 / 1.327 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.3687, allocations: 3.938 kB / 1.327 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3687, allocations: 0 / 1.327 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3687, allocations: 0 / 1.327 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001019/0.3688, allocations: 69.06 kB / 1.327 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.193e-06/0.3688, allocations: 3.953 kB / 1.327 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.3688, allocations: 3.938 kB / 1.327 GB, free: 15.63 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.091e-05/0.3688, allocations: 4.031 kB / 1.327 GB, free: 15.63 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.3689, allocations: 4 kB / 1.327 GB, free: 15.62 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.3689, allocations: 3.938 kB / 1.327 GB, free: 15.62 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.786e-05/0.3689, allocations: 75.28 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.3689, allocations: 0 / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000196/0.3691, allocations: 11.94 kB / 1.328 GB, free: 15.54 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.0005948/0.3697, allocations: 0.6084 MB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 8.479e-05/0.3698, allocations: 8.031 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3698, allocations: 4.062 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.745e-05/0.3698, allocations: 8 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.3699, allocations: 0 / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003701/0.3703, allocations: 122.6 kB / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.529e-05/0.3704, allocations: 59.36 kB / 1.328 GB, free: 14.64 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.3e-05/0.3704, allocations: 0 / 1.328 GB, free: 14.64 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.3704, allocations: 19.36 kB / 1.328 GB, free: 14.62 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.3704, allocations: 0 / 1.328 GB, free: 14.62 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.3998, allocations: 1.568 MB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.71, allocations: 12.2 kB / 1.33 GB, free: 13.17 MB / 1.029 GB " [Timeout remaining time 288] (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: 19.063678618054837]