Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_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.000908/0.000908, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.006105/0.006105, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.216/1.216, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.103/2.103, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003428/0.0003429, allocations: 19.98 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.544/0.5443, allocations: 142.4 MB / 0.9552 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0005748/0.545, allocations: 316.5 kB / 0.9555 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000236/0.5452, allocations: 57.64 kB / 0.9555 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.183e-05/0.5452, allocations: 0 / 0.9555 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.056e-05/0.5453, allocations: 3.938 kB / 0.9555 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.068e-06/0.5453, allocations: 0 / 0.9555 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.5455, allocations: 9.234 kB / 0.9556 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.448e-05/0.5456, allocations: 26.64 kB / 0.9556 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.757e-05/0.5456, allocations: 5.641 kB / 0.9556 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.828e-05/0.5456, allocations: 10.03 kB / 0.9556 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.328e-05/0.5456, allocations: 13.7 kB / 0.9556 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.5457, allocations: 5.438 kB / 0.9556 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.956e-05/0.5457, allocations: 23.66 kB / 0.9556 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.225e-05/0.5458, allocations: 10.84 kB / 0.9556 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.023e-05/0.5458, allocations: 37.78 kB / 0.9557 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.264e-05/0.5459, allocations: 30.86 kB / 0.9557 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.5459, allocations: 0 / 0.9557 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.013e-06/0.5459, allocations: 1.281 kB / 0.9557 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.386e-06/0.5459, allocations: 0 / 0.9557 GB, free: 7.262 MB / 0.7169 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.000192/0.5461, allocations: 335.1 kB / 0.956 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.5461, allocations: 13.38 kB / 0.956 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.412e-05/0.5462, allocations: 36.09 kB / 0.9561 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.988e-05/0.5462, allocations: 3.875 kB / 0.9561 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.034e-05/0.5462, allocations: 171.8 kB / 0.9562 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.5462, allocations: 1.469 kB / 0.9563 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.5463, allocations: 8 kB / 0.9563 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.5464, allocations: 59.14 kB / 0.9563 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.5464, allocations: 3.938 kB / 0.9563 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.5464, allocations: 1.125 kB / 0.9563 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.5464, allocations: 1.281 kB / 0.9563 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.5465, allocations: 106.9 kB / 0.9564 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.5467, allocations: 173.5 kB / 0.9566 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.412e-05/0.5468, allocations: 78.62 kB / 0.9567 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.981e-05/0.5468, allocations: 28.45 kB / 0.9567 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/0.547, allocations: 413.4 kB / 0.9571 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.5471, allocations: 31.75 kB / 0.9571 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.5471, allocations: 3.938 kB / 0.9571 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002038/0.5473, allocations: 125.7 kB / 0.9572 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.601e-05/0.5473, allocations: 52.41 kB / 0.9573 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.831e-05/0.5473, allocations: 90.95 kB / 0.9574 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.5473, allocations: 30.8 kB / 0.9574 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.766e-06/0.5473, allocations: 80.14 kB / 0.9575 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.5474, allocations: 20.44 kB / 0.9575 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.5474, allocations: 22.8 kB / 0.9575 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.612e-05/0.5474, allocations: 312 kB / 0.9578 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.355e-05/0.5475, allocations: 28.02 kB / 0.9578 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.922e-05/0.5475, allocations: 21.05 kB / 0.9579 GB, free: 5 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.578e-05/0.5476, allocations: 64.58 kB / 0.9579 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5476, allocations: 0 / 0.9579 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000111/0.5477, allocations: 96.39 kB / 0.958 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.5477, allocations: 9.375 kB / 0.958 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.5478, allocations: 4 kB / 0.958 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.346e-06/0.5478, allocations: 1.031 kB / 0.958 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.121e-05/0.5479, allocations: 19.36 kB / 0.9581 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.5479, allocations: 1.062 kB / 0.9581 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.921e-05/0.5479, allocations: 12.97 kB / 0.9581 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.5479, allocations: 2.406 kB / 0.9581 GB, free: 4.879 MB / 0.7169 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 8.634e-05/0.548, allocations: 121.7 kB / 0.9582 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.548, allocations: 6.219 kB / 0.9582 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.5482, allocations: 127.2 kB / 0.9583 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.5482, allocations: 5.469 kB / 0.9583 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.5482, allocations: 0 / 0.9583 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.5482, allocations: 3.984 kB / 0.9583 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.229e-05/0.5483, allocations: 171.6 kB / 0.9585 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.5483, allocations: 0 / 0.9585 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-05/0.5484, allocations: 23.2 kB / 0.9585 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.5484, allocations: 3.938 kB / 0.9585 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.5484, allocations: 6.562 kB / 0.9585 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.5484, allocations: 0 / 0.9585 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5484, allocations: 1.312 kB / 0.9585 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.5485, allocations: 126.2 kB / 0.9586 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.404e-05/0.5485, allocations: 82.2 kB / 0.9587 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.5486, allocations: 1.094 kB / 0.9587 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.627e-05/0.5486, allocations: 5.062 kB / 0.9587 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.247e-05/0.5486, allocations: 8.516 kB / 0.9587 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.5486, allocations: 2.562 kB / 0.9587 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.678e-06/0.5486, allocations: 75.28 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5486, allocations: 0 / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001835/0.5488, allocations: 22.86 kB / 0.9588 GB, free: 4.145 MB / 0.7169 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.0003011/0.5491, allocations: 0.6748 MB / 0.9595 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001072/0.5493, allocations: 59.62 kB / 0.9595 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.5493, allocations: 0 / 0.9595 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.152e-05/0.5493, allocations: 46.28 kB / 0.9596 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.5494, allocations: 4.094 kB / 0.9596 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002776/0.5497, allocations: 186 kB / 0.9598 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.322e-05/0.5498, allocations: 0.6825 MB / 0.9604 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.408e-05/0.5499, allocations: 42.92 kB / 0.9605 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.5499, allocations: 21.47 kB / 0.9605 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5499, allocations: 0 / 0.9605 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009546/0.5595, allocations: 1.35 MB / 0.9618 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.5596, allocations: 208.7 kB / 0.962 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/2.126, allocations: 6.25 kB / 0.962 GB, free: 1.66 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches