Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006893/0.006893, allocations: 103.2 kB / 15.74 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001792/0.001792, allocations: 189 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.35/2.35, allocations: 437.1 MB / 0.7106 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 67.89 kB / 1.018 GB, free: 9.84 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6469/0.6487, allocations: 151.6 MB / 1.166 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001519/0.6502, allocations: 0.5845 MB / 1.167 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002268/0.6505, allocations: 53.77 kB / 1.167 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.6505, allocations: 0 / 1.167 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.035e-05/0.6505, allocations: 7.984 kB / 1.167 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.21e-06/0.6506, allocations: 3.938 kB / 1.167 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.6508, allocations: 19.91 kB / 1.167 GB, free: 3.078 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.495e-05/0.6509, allocations: 31.98 kB / 1.167 GB, free: 3.047 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.373e-05/0.6509, allocations: 0 / 1.167 GB, free: 3.047 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.103e-05/0.6509, allocations: 19.97 kB / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.205e-05/0.651, allocations: 4 kB / 1.167 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.651, allocations: 4 kB / 1.167 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.34e-05/0.6511, allocations: 19.98 kB / 1.167 GB, free: 3 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.934e-05/0.6511, allocations: 11.97 kB / 1.167 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.117e-05/0.6511, allocations: 15.88 kB / 1.167 GB, free: 2.973 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.204e-05/0.6512, allocations: 31.89 kB / 1.167 GB, free: 2.941 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.6513, allocations: 4 kB / 1.167 GB, free: 2.938 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6513, allocations: 0 / 1.167 GB, free: 2.938 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.6513, allocations: 4 kB / 1.167 GB, free: 2.934 MB / 0.8887 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.000315/0.6516, allocations: 335.1 kB / 1.167 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.6516, allocations: 12.61 kB / 1.167 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.333e-05/0.6517, allocations: 42.69 kB / 1.167 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.217e-05/0.6517, allocations: 0.9375 kB / 1.167 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.6518, allocations: 168.3 kB / 1.168 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.6518, allocations: 4.375 kB / 1.168 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.6518, allocations: 4.375 kB / 1.168 GB, free: 2.285 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.652, allocations: 70.09 kB / 1.168 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.652, allocations: 7.938 kB / 1.168 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.652, allocations: 0 / 1.168 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.652, allocations: 4 kB / 1.168 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.6522, allocations: 99.81 kB / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001731/0.6523, allocations: 177.5 kB / 1.168 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.6525, allocations: 70.55 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.688e-05/0.6525, allocations: 32.84 kB / 1.168 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003366/0.6529, allocations: 405.5 kB / 1.168 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.6529, allocations: 42.56 kB / 1.168 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.6529, allocations: 0 / 1.168 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0002327/0.6531, allocations: 113.9 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.6532, allocations: 55.34 kB / 1.169 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.873e-05/0.6532, allocations: 101.8 kB / 1.169 GB, free: 0.9336 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.6533, allocations: 25.7 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.301e-05/0.6533, allocations: 80.14 kB / 1.169 GB, free: 0.8203 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.6533, allocations: 23.8 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.6534, allocations: 37.7 kB / 1.169 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.6535, allocations: 314.8 kB / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.693e-05/0.6536, allocations: 19.98 kB / 1.169 GB, free: 428 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.425e-05/0.6536, allocations: 19.98 kB / 1.169 GB, free: 408 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.359e-05/0.6537, allocations: 60.83 kB / 1.169 GB, free: 344 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.6537, allocations: 0 / 1.169 GB, free: 344 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000131/0.6538, allocations: 90.2 kB / 1.169 GB, free: 248 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.6539, allocations: 11.94 kB / 1.169 GB, free: 236 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.6539, allocations: 0 / 1.169 GB, free: 236 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.6539, allocations: 4 kB / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.316e-05/0.654, allocations: 23.98 kB / 1.169 GB, free: 208 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.654, allocations: 0 / 1.169 GB, free: 208 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.055e-05/0.654, allocations: 7.953 kB / 1.169 GB, free: 200 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.654, allocations: 4 kB / 1.169 GB, free: 196 kB / 0.8887 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 0.0001304/0.6542, allocations: 125.8 kB / 1.169 GB, free: 60 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.6542, allocations: 7.938 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002311/0.6544, allocations: 133.6 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.6544, allocations: 0 / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.6544, allocations: 0 / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.6544, allocations: 3.984 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.6546, allocations: 173.5 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.6546, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.663e-05/0.6547, allocations: 27.86 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.6547, allocations: 3.938 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.6547, allocations: 4 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.6547, allocations: 0 / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.6547, allocations: 0 / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000152/0.6548, allocations: 125.1 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.6549, allocations: 85 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.6549, allocations: 4 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.584e-05/0.6549, allocations: 7.938 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.866e-05/0.655, allocations: 7.984 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.655, allocations: 4 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.988e-05/0.655, allocations: 77.75 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.655, allocations: 4 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0001994/0.6552, allocations: 15.94 kB / 1.17 GB, free: 15.29 MB / 0.9044 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.0004817/0.6557, allocations: 0.6718 MB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000128/0.6559, allocations: 63.84 kB / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.6559, allocations: 4 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.592e-05/0.6559, allocations: 39.97 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.6561, allocations: 4 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003395/0.6564, allocations: 178.4 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.6567, allocations: 0.6828 MB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.702e-05/0.6568, allocations: 39.92 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.6568, allocations: 23.44 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of SimCode: time 2.7e-07/0.6568, allocations: 0 / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5477/1.205, allocations: 1.546 MB / 1.173 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/17.64, allocations: 26.12 kB / 1.173 GB, free: 12.04 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches