Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001136/0.001136, allocations: 72.45 kB / 19.17 MB, free: 0.7344 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.001321/0.001321, allocations: 173.9 kB / 22.46 MB, free: 2.09 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.9205/0.9205, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.79/1.79, allocations: 377.9 MB / 0.6221 GB, free: 8.641 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.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 0.981 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.572e-05/2.756e-05, allocations: 10.16 kB / 0.981 GB, free: 2.57 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002076/0.002103, allocations: 1.534 MB / 0.9825 GB, free: 1.027 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002835/0.002387, allocations: 131.4 kB / 0.9826 GB, free: 0.8984 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.225e-05/0.002419, allocations: 0 / 0.9826 GB, free: 0.8984 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.961e-05/0.002449, allocations: 3.938 kB / 0.9826 GB, free: 0.8945 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 3.995e-05/0.002489, allocations: 0 / 0.9826 GB, free: 0.8945 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002649/0.002754, allocations: 27.86 kB / 0.9826 GB, free: 0.8672 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.867e-05/0.002822, allocations: 27.92 kB / 0.9826 GB, free: 0.8398 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.002923, allocations: 15.97 kB / 0.9827 GB, free: 0.8242 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 5.165e-05/0.002975, allocations: 11.98 kB / 0.9827 GB, free: 0.8125 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.573e-05/0.00302, allocations: 15.92 kB / 0.9827 GB, free: 0.7969 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.003035, allocations: 8 kB / 0.9827 GB, free: 0.7891 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.003e-05/0.003095, allocations: 8 kB / 0.9827 GB, free: 0.7812 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.003109, allocations: 7.984 kB / 0.9827 GB, free: 0.7734 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.117e-05/0.00313, allocations: 11.98 kB / 0.9827 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.003259, allocations: 39.83 kB / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.003261, allocations: 0 / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.463e-06/0.003263, allocations: 0 / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.003267, allocations: 0 / 0.9828 GB, free: 0.7227 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000392/0.003659, allocations: 266.3 kB / 0.983 GB, free: 440 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.0037, allocations: 12.03 kB / 0.983 GB, free: 428 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.993e-05/0.00374, allocations: 30.75 kB / 0.9831 GB, free: 388 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.003767, allocations: 8.891 kB / 0.9831 GB, free: 380 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.998e-05/0.003857, allocations: 113.7 kB / 0.9832 GB, free: 240 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.003881, allocations: 4.375 kB / 0.9832 GB, free: 236 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.003892, allocations: 8.312 kB / 0.9832 GB, free: 228 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.004047, allocations: 58.22 kB / 0.9832 GB, free: 164 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.004055, allocations: 192 / 0.9832 GB, free: 164 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.004064, allocations: 384 / 0.9832 GB, free: 164 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.004071, allocations: 4.125 kB / 0.9832 GB, free: 160 kB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.00418, allocations: 47.95 kB / 0.9833 GB, free: 112 kB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003574/0.004538, allocations: 224.2 kB / 0.9835 GB, free: 15.84 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.004764, allocations: 58.48 kB / 0.9836 GB, free: 15.78 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.278e-05/0.004817, allocations: 24.89 kB / 0.9836 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.089e-05/0.004898, allocations: 11.69 kB / 0.9836 GB, free: 15.74 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.004915, allocations: 34.56 kB / 0.9836 GB, free: 15.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.004916, allocations: 0 / 0.9836 GB, free: 15.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0002519/0.005168, allocations: 97.58 kB / 0.9837 GB, free: 15.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.005202, allocations: 63.28 kB / 0.9838 GB, free: 15.52 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.757e-05/0.00526, allocations: 97.84 kB / 0.9839 GB, free: 15.42 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.005271, allocations: 29.7 kB / 0.9839 GB, free: 15.38 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.835e-05/0.005309, allocations: 84.14 kB / 0.984 GB, free: 15.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.005323, allocations: 3.953 kB / 0.984 GB, free: 15.29 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/0.005352, allocations: 17.72 kB / 0.984 GB, free: 15.27 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.005442, allocations: 318.8 kB / 0.9843 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.667e-05/0.005499, allocations: 23.98 kB / 0.9843 GB, free: 14.93 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.226e-05/0.005541, allocations: 19.97 kB / 0.9843 GB, free: 14.91 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.042e-05/0.005631, allocations: 40.83 kB / 0.9844 GB, free: 14.86 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.005633, allocations: 0 / 0.9844 GB, free: 14.86 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001253/0.005759, allocations: 85.52 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.005773, allocations: 4 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.005778, allocations: 4 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.005791, allocations: 4 kB / 0.9845 GB, free: 14.76 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.005844, allocations: 7.984 kB / 0.9845 GB, free: 14.75 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.005849, allocations: 4 kB / 0.9845 GB, free: 14.75 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.862e-05/0.005878, allocations: 7.953 kB / 0.9845 GB, free: 14.74 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.005884, allocations: 3.984 kB / 0.9845 GB, free: 14.74 MB / 0.948 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 6.094e-05/0.005945, allocations: 109.8 kB / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.005958, allocations: 7.938 kB / 0.9846 GB, free: 14.61 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001713/0.00613, allocations: 81.84 kB / 0.9847 GB, free: 14.53 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.006132, allocations: 48 / 0.9847 GB, free: 14.53 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.006139, allocations: 7.984 kB / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.006143, allocations: 0 / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.006254, allocations: 124.8 kB / 0.9848 GB, free: 14.36 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.006257, allocations: 3.938 kB / 0.9848 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.491e-05/0.006291, allocations: 15.92 kB / 0.9848 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.006293, allocations: 0 / 0.9848 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.006306, allocations: 4 kB / 0.9848 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.006307, allocations: 4 kB / 0.9848 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.006308, allocations: 0 / 0.9848 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.006458, allocations: 171.5 kB / 0.985 GB, free: 14.14 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.476e-06/0.006466, allocations: 11.83 kB / 0.985 GB, free: 14.13 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.006479, allocations: 7.938 kB / 0.985 GB, free: 14.12 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.201e-05/0.006521, allocations: 3.984 kB / 0.985 GB, free: 14.12 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.006564, allocations: 4 kB / 0.985 GB, free: 14.12 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.006568, allocations: 3.984 kB / 0.985 GB, free: 14.11 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.932e-05/0.006597, allocations: 87.22 kB / 0.9851 GB, free: 14.03 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.006597, allocations: 4 kB / 0.9851 GB, free: 14.02 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001604/0.006758, allocations: 8 kB / 0.9851 GB, free: 14.02 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.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.0004158/0.007173, allocations: 0.7085 MB / 0.9858 GB, free: 13.28 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001543/0.007328, allocations: 39.95 kB / 0.9859 GB, free: 13.24 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.00733, allocations: 0 / 0.9859 GB, free: 13.24 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.031e-05/0.00738, allocations: 35.91 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.007632, allocations: 10.34 kB / 0.9859 GB, free: 13.2 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003948/0.008027, allocations: 142.5 kB / 0.986 GB, free: 13.02 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.437e-05/0.008071, allocations: 63.34 kB / 0.9861 GB, free: 12.94 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.574e-05/0.008097, allocations: 0 / 0.9861 GB, free: 12.94 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.008134, allocations: 20.48 kB / 0.9861 GB, free: 12.92 MB / 0.948 GB Notification: Performance of SimCode: time 6.71e-07/0.008135, allocations: 4 kB / 0.9861 GB, free: 12.91 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01616/0.0243, allocations: 2.271 MB / 0.9883 GB, free: 10.77 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.802/6.826, allocations: 7.609 kB / 0.9884 GB, free: 10.77 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_12_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Utilities.Math.Examples.Factorial_res.csv. Warning: Get data of variable fac.y from file Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.050509148277342]