Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.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.0008009/0.0008009, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008053/0.0008053, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.9162/0.9162, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.723/1.723, allocations: 377.9 MB / 0.6221 GB, free: 8.652 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.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 0.981 GB, free: 2.52 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.388e-05/1.562e-05, allocations: 5.094 kB / 0.981 GB, free: 2.516 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001005/0.001021, allocations: 0.5917 MB / 0.9816 GB, free: 1.926 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.000196/0.001217, allocations: 47.81 kB / 0.9816 GB, free: 1.879 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.574e-05/0.001232, allocations: 0 / 0.9816 GB, free: 1.879 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.483e-05/0.001257, allocations: 3.984 kB / 0.9816 GB, free: 1.875 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.761e-06/0.001263, allocations: 0 / 0.9816 GB, free: 1.875 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002554/0.001518, allocations: 23.86 kB / 0.9817 GB, free: 1.852 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.761e-05/0.001586, allocations: 31.91 kB / 0.9817 GB, free: 1.82 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.352e-05/0.001619, allocations: 0 / 0.9817 GB, free: 1.82 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 3.371e-05/0.001653, allocations: 19.97 kB / 0.9817 GB, free: 1.801 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 2.188e-05/0.001675, allocations: 11.97 kB / 0.9817 GB, free: 1.789 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.001688, allocations: 4 kB / 0.9817 GB, free: 1.785 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.382e-05/0.001762, allocations: 19.98 kB / 0.9818 GB, free: 1.766 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.749e-05/0.001789, allocations: 11.98 kB / 0.9818 GB, free: 1.754 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.498e-05/0.001814, allocations: 15.92 kB / 0.9818 GB, free: 1.738 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 8.981e-05/0.001904, allocations: 27.95 kB / 0.9818 GB, free: 1.711 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.001906, allocations: 0 / 0.9818 GB, free: 1.711 MB / 0.9323 GB Notification: Performance of FrontEnd: time 5.71e-07/0.001907, allocations: 0 / 0.9818 GB, free: 1.711 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.597e-06/0.00191, allocations: 0 / 0.9818 GB, free: 1.711 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002317/0.002142, allocations: 270.3 kB / 0.9821 GB, free: 1.414 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.002177, allocations: 8.031 kB / 0.9821 GB, free: 1.406 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.991e-05/0.002207, allocations: 38.75 kB / 0.9821 GB, free: 1.359 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.155e-05/0.002228, allocations: 4.938 kB / 0.9821 GB, free: 1.355 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.684e-05/0.002285, allocations: 117.7 kB / 0.9822 GB, free: 1.215 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.002294, allocations: 384 / 0.9822 GB, free: 1.215 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.002304, allocations: 8.375 kB / 0.9822 GB, free: 1.207 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.002413, allocations: 66.16 kB / 0.9823 GB, free: 1.137 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.00242, allocations: 4.125 kB / 0.9823 GB, free: 1.133 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.002427, allocations: 384 / 0.9823 GB, free: 1.133 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.002432, allocations: 8.125 kB / 0.9823 GB, free: 1.125 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.925e-05/0.002531, allocations: 95.86 kB / 0.9824 GB, free: 1.031 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001289/0.00266, allocations: 148.6 kB / 0.9825 GB, free: 0.8438 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 9.096e-05/0.002751, allocations: 66.48 kB / 0.9826 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.343e-05/0.002785, allocations: 32.84 kB / 0.9826 GB, free: 0.7344 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001552/0.00294, allocations: 19.98 kB / 0.9827 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.002959, allocations: 34.56 kB / 0.9827 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.00296, allocations: 0 / 0.9827 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of matching and sorting (n=11): time 0.0001884/0.003148, allocations: 113.9 kB / 0.9828 GB, free: 0.5547 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.003175, allocations: 59.28 kB / 0.9829 GB, free: 496 kB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.198e-05/0.003207, allocations: 97.81 kB / 0.9829 GB, free: 388 kB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0002531/0.00346, allocations: 29.7 kB / 0.983 GB, free: 352 kB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 1.67e-05/0.003477, allocations: 80.14 kB / 0.9831 GB, free: 268 kB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.0035, allocations: 23.8 kB / 0.9831 GB, free: 244 kB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.003532, allocations: 37.7 kB / 0.9831 GB, free: 200 kB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.021e-05/0.003612, allocations: 318.8 kB / 0.9834 GB, free: 15.88 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.578e-05/0.003638, allocations: 19.98 kB / 0.9834 GB, free: 15.86 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.411e-05/0.003662, allocations: 19.98 kB / 0.9835 GB, free: 15.84 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.886e-05/0.003731, allocations: 56.78 kB / 0.9835 GB, free: 15.78 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.003733, allocations: 0 / 0.9835 GB, free: 15.78 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 9.046e-05/0.003823, allocations: 94.31 kB / 0.9836 GB, free: 15.68 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.003835, allocations: 7.938 kB / 0.9836 GB, free: 15.67 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.00384, allocations: 3.984 kB / 0.9836 GB, free: 15.67 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.003851, allocations: 4 kB / 0.9836 GB, free: 15.66 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.504e-05/0.003916, allocations: 15.94 kB / 0.9836 GB, free: 15.65 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.003921, allocations: 8 kB / 0.9836 GB, free: 15.64 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.309e-05/0.003934, allocations: 7.938 kB / 0.9836 GB, free: 15.63 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.00394, allocations: 4 kB / 0.9836 GB, free: 15.63 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.563e-05/0.004016, allocations: 117.8 kB / 0.9838 GB, free: 15.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-06/0.004022, allocations: 3.984 kB / 0.9838 GB, free: 15.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.00416, allocations: 137.4 kB / 0.9839 GB, free: 15.36 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.004164, allocations: 7.938 kB / 0.9839 GB, free: 15.36 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.004168, allocations: 0 / 0.9839 GB, free: 15.36 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.00417, allocations: 0 / 0.9839 GB, free: 15.36 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.421e-05/0.004245, allocations: 144.7 kB / 0.984 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.004247, allocations: 4 kB / 0.984 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.437e-05/0.004281, allocations: 15.98 kB / 0.9841 GB, free: 15.15 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.004283, allocations: 4 kB / 0.9841 GB, free: 15.15 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.004289, allocations: 0 / 0.9841 GB, free: 15.15 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.004291, allocations: 3.938 kB / 0.9841 GB, free: 15.14 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.004292, allocations: 0 / 0.9841 GB, free: 15.14 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.78e-05/0.004389, allocations: 132.9 kB / 0.9842 GB, free: 15 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-06/0.004395, allocations: 7.938 kB / 0.9842 GB, free: 14.99 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.004406, allocations: 11.94 kB / 0.9842 GB, free: 14.98 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.743e-06/0.004413, allocations: 4 kB / 0.9842 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.734e-05/0.004441, allocations: 7.984 kB / 0.9842 GB, free: 14.96 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.004444, allocations: 0 / 0.9842 GB, free: 14.96 MB / 0.948 GB Notification: Performance of sorting global known variables: time 1.885e-05/0.004463, allocations: 79.28 kB / 0.9843 GB, free: 14.89 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.1e-08/0.004463, allocations: 0 / 0.9843 GB, free: 14.89 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001311/0.004594, allocations: 12 kB / 0.9843 GB, free: 14.88 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0003232/0.004917, allocations: 0.6709 MB / 0.985 GB, free: 14.17 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000102/0.005019, allocations: 59.91 kB / 0.985 GB, free: 14.11 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.005023, allocations: 4 kB / 0.985 GB, free: 14.11 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 3.456e-05/0.005057, allocations: 39.91 kB / 0.9851 GB, free: 14.07 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001043/0.005161, allocations: 6.75 kB / 0.9851 GB, free: 14.07 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002888/0.00545, allocations: 174.6 kB / 0.9852 GB, free: 13.86 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.469e-05/0.005495, allocations: 71.2 kB / 0.9853 GB, free: 13.77 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 4.88e-05/0.005544, allocations: 39.92 kB / 0.9853 GB, free: 13.73 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.784e-05/0.005572, allocations: 16.5 kB / 0.9854 GB, free: 13.71 MB / 0.948 GB Notification: Performance of SimCode: time 3.6e-07/0.005572, allocations: 3.938 kB / 0.9854 GB, free: 13.71 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01421/0.01979, allocations: 2.205 MB / 0.9875 GB, free: 11.64 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.949/6.968, allocations: 5.484 kB / 0.9875 GB, free: 11.64 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --stepSize=0.00556 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.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: 10.956681886687875]