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.009198/0.009197, allocations: 99.67 kB / 15.73 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.002121/0.002121, allocations: 192.2 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.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.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.716/2.716, allocations: 437 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.89 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3511, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002232/0.3533, allocations: 0.5903 MB / 1.167 GB, free: 6.711 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003492/0.3537, allocations: 55.78 kB / 1.167 GB, free: 6.656 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.495e-05/0.3538, allocations: 0 / 1.167 GB, free: 6.656 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.745e-05/0.3538, allocations: 0 / 1.167 GB, free: 6.656 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.444e-06/0.3539, allocations: 0 / 1.167 GB, free: 6.656 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003609/0.3542, allocations: 19.92 kB / 1.167 GB, free: 6.637 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.3544, allocations: 39.89 kB / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.457e-05/0.3544, allocations: 0 / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.021e-05/0.3545, allocations: 8 kB / 1.167 GB, free: 6.59 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 3.813e-05/0.3545, allocations: 19.97 kB / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.3545, allocations: 0 / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.3546, allocations: 15.98 kB / 1.167 GB, free: 6.555 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.815e-05/0.3547, allocations: 12 kB / 1.167 GB, free: 6.543 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.083e-05/0.3547, allocations: 19.86 kB / 1.167 GB, free: 6.523 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.3549, allocations: 32.11 kB / 1.167 GB, free: 6.492 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3549, allocations: 0 / 1.167 GB, free: 6.492 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3549, allocations: 0 / 1.167 GB, free: 6.492 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.154e-05/0.3549, allocations: 0 / 1.167 GB, free: 6.492 MB / 0.92 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.0004685/0.3554, allocations: 339.4 kB / 1.167 GB, free: 6.109 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3554, allocations: 16.03 kB / 1.167 GB, free: 6.094 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.585e-05/0.3555, allocations: 42.73 kB / 1.167 GB, free: 6.043 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.323e-05/0.3555, allocations: 4.938 kB / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.3557, allocations: 164.7 kB / 1.168 GB, free: 5.84 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.3557, allocations: 4.375 kB / 1.168 GB, free: 5.836 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.3557, allocations: 384 / 1.168 GB, free: 5.836 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.3559, allocations: 70.22 kB / 1.168 GB, free: 5.762 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3559, allocations: 7.875 kB / 1.168 GB, free: 5.754 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.3559, allocations: 0 / 1.168 GB, free: 5.754 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.3559, allocations: 0 / 1.168 GB, free: 5.754 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001623/0.3561, allocations: 107.8 kB / 1.168 GB, free: 5.648 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000264/0.3564, allocations: 181.5 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.3566, allocations: 74.48 kB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.392e-05/0.3566, allocations: 28.84 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003861/0.357, allocations: 405.5 kB / 1.168 GB, free: 4.82 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.3571, allocations: 30.56 kB / 1.168 GB, free: 4.781 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.3571, allocations: 0 / 1.168 GB, free: 4.781 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0002618/0.3573, allocations: 121.9 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3574, allocations: 55.41 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.36e-05/0.3575, allocations: 101.8 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.3575, allocations: 29.7 kB / 1.169 GB, free: 4.445 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.3575, allocations: 84.12 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.3576, allocations: 23.8 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.3576, allocations: 29.7 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3578, allocations: 314.8 kB / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-05/0.3578, allocations: 23.98 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.75e-05/0.3579, allocations: 19.98 kB / 1.169 GB, free: 3.941 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.358, allocations: 60.83 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.358, allocations: 0 / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001518/0.3582, allocations: 93.55 kB / 1.169 GB, free: 3.781 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3582, allocations: 7.938 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3582, allocations: 0 / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.3582, allocations: 4 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3583, allocations: 15.98 kB / 1.169 GB, free: 3.754 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.3583, allocations: 7.984 kB / 1.169 GB, free: 3.746 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.3584, allocations: 11.89 kB / 1.169 GB, free: 3.734 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.3584, allocations: 8 kB / 1.169 GB, free: 3.727 MB / 0.92 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.0002012/0.3586, allocations: 129.6 kB / 1.169 GB, free: 3.594 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.3586, allocations: 3.938 kB / 1.169 GB, free: 3.59 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002486/0.3589, allocations: 118.3 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3589, allocations: 4 kB / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3589, allocations: 0 / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3589, allocations: 4 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.3591, allocations: 177.6 kB / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3591, allocations: 0 / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.613e-05/0.3592, allocations: 19.98 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3592, allocations: 7.875 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.3592, allocations: 4 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3592, allocations: 7.938 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3592, allocations: 0 / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/0.3594, allocations: 125.1 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-05/0.3595, allocations: 96.92 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.3595, allocations: 0 / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.53e-05/0.3595, allocations: 0 / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.3596, allocations: 15.92 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.3596, allocations: 4 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.74e-05/0.3596, allocations: 75.28 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of sort global known variables: time 9e-08/0.3596, allocations: 0 / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002112/0.3599, allocations: 16 kB / 1.17 GB, free: 2.828 MB / 0.92 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.0005713/0.3604, allocations: 0.6709 MB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001544/0.3606, allocations: 63.84 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3606, allocations: 0 / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 6.565e-05/0.3607, allocations: 31.98 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.3608, allocations: 7.984 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.3612, allocations: 182.5 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.3615, allocations: 0.6845 MB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 8.592e-05/0.3616, allocations: 31.95 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.3617, allocations: 19.42 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of SimCode: time 2.7e-07/0.3617, allocations: 0 / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.3845, allocations: 1.553 MB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.534, allocations: 7.891 kB / 1.173 GB, free: 15.59 MB / 0.9356 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 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.csv","/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