Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.00186/0.00186, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002018/0.002018, allocations: 210.9 kB / 22.25 MB, free: 5.086 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.369/3.369, allocations: 0.505 GB / 0.8101 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_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.00314/0.00314, allocations: 65.64 kB / 1.177 GB, free: 17.03 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4416/0.4447, allocations: 180.2 MB / 1.353 GB, free: 8.465 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003033/0.4478, allocations: 1.556 MB / 1.354 GB, free: 6.898 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0004018/0.4482, allocations: 127.6 kB / 1.354 GB, free: 6.773 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.789e-05/0.4482, allocations: 0 / 1.354 GB, free: 6.773 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.245e-05/0.4482, allocations: 0 / 1.354 GB, free: 6.773 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.999e-05/0.4483, allocations: 7.922 kB / 1.355 GB, free: 6.766 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.4485, allocations: 27.92 kB / 1.355 GB, free: 6.738 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.222e-05/0.4486, allocations: 27.92 kB / 1.355 GB, free: 6.711 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/0.4487, allocations: 11.98 kB / 1.355 GB, free: 6.699 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 5.046e-05/0.4488, allocations: 11.94 kB / 1.355 GB, free: 6.688 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.075e-05/0.4488, allocations: 19.91 kB / 1.355 GB, free: 6.668 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.836e-05/0.4488, allocations: 4 kB / 1.355 GB, free: 6.664 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.283e-05/0.4489, allocations: 11.98 kB / 1.355 GB, free: 6.652 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.4489, allocations: 8 kB / 1.355 GB, free: 6.645 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.98e-05/0.449, allocations: 11.92 kB / 1.355 GB, free: 6.633 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.4491, allocations: 40.11 kB / 1.355 GB, free: 6.594 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4491, allocations: 4 kB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4491, allocations: 0 / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.4491, allocations: 0 / 1.355 GB, free: 6.59 MB / 1.045 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.0004776/0.4496, allocations: 270.3 kB / 1.355 GB, free: 6.293 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4496, allocations: 8.031 kB / 1.355 GB, free: 6.285 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.494e-05/0.4497, allocations: 42.73 kB / 1.355 GB, free: 6.234 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/0.4497, allocations: 4.891 kB / 1.355 GB, free: 6.23 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.4498, allocations: 106.5 kB / 1.355 GB, free: 6.102 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.4498, allocations: 384 / 1.355 GB, free: 6.102 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.4499, allocations: 4.375 kB / 1.355 GB, free: 6.098 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.45, allocations: 66.16 kB / 1.355 GB, free: 6.027 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.45, allocations: 3.938 kB / 1.355 GB, free: 6.023 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.4501, allocations: 0 / 1.355 GB, free: 6.023 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.4501, allocations: 3.938 kB / 1.355 GB, free: 6.02 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.4502, allocations: 43.95 kB / 1.355 GB, free: 5.977 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003979/0.4506, allocations: 232 kB / 1.355 GB, free: 5.707 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.451, allocations: 62.47 kB / 1.355 GB, free: 5.637 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.537e-05/0.4511, allocations: 24.91 kB / 1.356 GB, free: 5.609 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 8.942e-05/0.4512, allocations: 4 kB / 1.356 GB, free: 5.605 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.4512, allocations: 38.48 kB / 1.356 GB, free: 5.559 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.4512, allocations: 4 kB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0004033/0.4516, allocations: 93.73 kB / 1.356 GB, free: 5.457 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.4516, allocations: 55.34 kB / 1.356 GB, free: 5.391 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.942e-05/0.4517, allocations: 101.9 kB / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.4517, allocations: 33.7 kB / 1.356 GB, free: 5.242 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.287e-05/0.4518, allocations: 80.14 kB / 1.356 GB, free: 5.16 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.529e-05/0.4518, allocations: 7.953 kB / 1.356 GB, free: 5.152 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.4518, allocations: 21.7 kB / 1.356 GB, free: 5.125 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.452, allocations: 310.8 kB / 1.356 GB, free: 4.812 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.25e-05/0.4521, allocations: 19.98 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.936e-05/0.4522, allocations: 23.97 kB / 1.356 GB, free: 4.77 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.4524, allocations: 48.75 kB / 1.356 GB, free: 4.719 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4524, allocations: 0 / 1.356 GB, free: 4.719 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002258/0.4526, allocations: 77.59 kB / 1.356 GB, free: 4.637 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.4526, allocations: 6.188 kB / 1.356 GB, free: 4.633 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4526, allocations: 0 / 1.356 GB, free: 4.633 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.4526, allocations: 0 / 1.356 GB, free: 4.633 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.165e-05/0.4527, allocations: 11.98 kB / 1.356 GB, free: 4.621 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.4527, allocations: 0 / 1.356 GB, free: 4.621 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.111e-05/0.4528, allocations: 15.92 kB / 1.356 GB, free: 4.605 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.4528, allocations: 4 kB / 1.356 GB, free: 4.602 MB / 1.045 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 9.347e-05/0.4529, allocations: 118.4 kB / 1.357 GB, free: 4.477 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.4529, allocations: 3.953 kB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002487/0.4532, allocations: 81.33 kB / 1.357 GB, free: 4.387 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.4532, allocations: 0 / 1.357 GB, free: 4.387 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.4532, allocations: 0 / 1.357 GB, free: 4.387 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.4532, allocations: 4 kB / 1.357 GB, free: 4.383 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.4534, allocations: 148.6 kB / 1.357 GB, free: 4.195 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.4534, allocations: 4 kB / 1.357 GB, free: 4.191 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.609e-05/0.4534, allocations: 11.98 kB / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4534, allocations: 0 / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.4534, allocations: 0 / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4534, allocations: 0 / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4534, allocations: 3.938 kB / 1.357 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.4537, allocations: 179.4 kB / 1.357 GB, free: 3.984 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.4537, allocations: 11.89 kB / 1.357 GB, free: 3.973 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.4537, allocations: 0 / 1.357 GB, free: 3.973 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.365e-05/0.4538, allocations: 7.984 kB / 1.357 GB, free: 3.965 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.4539, allocations: 4.422 kB / 1.357 GB, free: 3.961 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.4539, allocations: 7.984 kB / 1.357 GB, free: 3.953 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.932e-05/0.4539, allocations: 83.27 kB / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4539, allocations: 0 / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002275/0.4542, allocations: 12 kB / 1.357 GB, free: 3.859 MB / 1.045 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.0006783/0.4548, allocations: 0.7045 MB / 1.358 GB, free: 3.125 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002665/0.4551, allocations: 47.95 kB / 1.358 GB, free: 3.078 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4551, allocations: 0 / 1.358 GB, free: 3.078 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.931e-05/0.4552, allocations: 27.91 kB / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.4555, allocations: 4 kB / 1.358 GB, free: 3.047 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000502/0.456, allocations: 143.1 kB / 1.358 GB, free: 2.867 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.4564, allocations: 0.6807 MB / 1.359 GB, free: 2.16 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.739e-05/0.4564, allocations: 4 kB / 1.359 GB, free: 2.156 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.4565, allocations: 19.42 kB / 1.359 GB, free: 2.137 MB / 1.045 GB Notification: Performance of SimCode: time 3.1e-07/0.4565, allocations: 0 / 1.359 GB, free: 2.137 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.4855, allocations: 1.695 MB / 1.36 GB, free: 0.5625 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.22, allocations: 9.969 kB / 1.36 GB, free: 0.5586 MB / 1.045 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable fac.y in file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv. Warning: Get data of variable fac.y from file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.506601606000004]