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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001655/0.001655, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002008/0.002008, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.339/2.339, allocations: 390.3 MB / 0.6647 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.91 kB / 0.8127 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6489/0.6503, allocations: 140.4 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001712/0.6521, allocations: 0.5795 MB / 0.9503 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002509/0.6523, allocations: 52.16 kB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.689e-05/0.6524, allocations: 0 / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.43e-05/0.6524, allocations: 1.375 kB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.6524, allocations: 3.938 kB / 0.9504 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.6527, allocations: 14.86 kB / 0.9504 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.407e-05/0.6527, allocations: 35.09 kB / 0.9504 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.886e-05/0.6528, allocations: 5.375 kB / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.988e-05/0.6528, allocations: 18.8 kB / 0.9504 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.413e-05/0.6528, allocations: 9.484 kB / 0.9504 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.6529, allocations: 1.375 kB / 0.9504 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.889e-05/0.6529, allocations: 20.17 kB / 0.9505 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.645e-05/0.653, allocations: 13.48 kB / 0.9505 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.04e-05/0.653, allocations: 16.05 kB / 0.9505 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.495e-05/0.6531, allocations: 28.27 kB / 0.9505 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.6531, allocations: 4 kB / 0.9505 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.053e-06/0.6531, allocations: 0 / 0.9505 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.6531, allocations: 0 / 0.9505 GB, free: 8.57 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.0002392/0.6534, allocations: 346.7 kB / 0.9508 GB, free: 8.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.6534, allocations: 9.625 kB / 0.9509 GB, free: 8.195 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.785e-05/0.6534, allocations: 40.11 kB / 0.9509 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.6535, allocations: 7.688 kB / 0.9509 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.488e-05/0.6535, allocations: 162.6 kB / 0.9511 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.6535, allocations: 3.125 kB / 0.9511 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.6535, allocations: 7.125 kB / 0.9511 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.6537, allocations: 68.03 kB / 0.9511 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.6537, allocations: 7.938 kB / 0.9511 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.6537, allocations: 0 / 0.9511 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.6537, allocations: 1.375 kB / 0.9511 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.6538, allocations: 98.88 kB / 0.9512 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001198/0.654, allocations: 178.2 kB / 0.9514 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.714e-05/0.6541, allocations: 69.83 kB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.335e-05/0.6541, allocations: 28.86 kB / 0.9515 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002298/0.6544, allocations: 417.9 kB / 0.9519 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.615e-05/0.6544, allocations: 38.5 kB / 0.9519 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.6544, allocations: 1.25 kB / 0.9519 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002273/0.6546, allocations: 117.1 kB / 0.952 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/0.6546, allocations: 53.28 kB / 0.9521 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.04e-05/0.6547, allocations: 89.86 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.315e-06/0.6547, allocations: 30.7 kB / 0.9522 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.706e-06/0.6547, allocations: 80.14 kB / 0.9523 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.6547, allocations: 23.92 kB / 0.9523 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.6548, allocations: 33.36 kB / 0.9523 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.517e-05/0.6548, allocations: 324 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.664e-05/0.6549, allocations: 19.92 kB / 0.9527 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.048e-05/0.6549, allocations: 19.95 kB / 0.9527 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.852e-05/0.655, allocations: 65.52 kB / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.655, allocations: 0 / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001211/0.6551, allocations: 91.98 kB / 0.9528 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.6551, allocations: 9.469 kB / 0.9528 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.6551, allocations: 0 / 0.9528 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.6552, allocations: 5.281 kB / 0.9529 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.354e-05/0.6553, allocations: 19.23 kB / 0.9529 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.6553, allocations: 3.938 kB / 0.9529 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.981e-05/0.6553, allocations: 9.125 kB / 0.9529 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.6553, allocations: 2.812 kB / 0.9529 GB, free: 6.18 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 9.576e-05/0.6554, allocations: 122.7 kB / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.232e-05/0.6554, allocations: 5.438 kB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.6556, allocations: 122.2 kB / 0.9531 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.6556, allocations: 1.531 kB / 0.9531 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.6556, allocations: 1.188 kB / 0.9531 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.6556, allocations: 0 / 0.9531 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.387e-05/0.6557, allocations: 178.9 kB / 0.9533 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.6557, allocations: 3.938 kB / 0.9533 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.553e-05/0.6558, allocations: 22.8 kB / 0.9533 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.6558, allocations: 5.5 kB / 0.9533 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.6558, allocations: 1.688 kB / 0.9533 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.6558, allocations: 4 kB / 0.9533 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6558, allocations: 5.375 kB / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.656, allocations: 123 kB / 0.9535 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.756e-05/0.656, allocations: 82.2 kB / 0.9535 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.656, allocations: 1.312 kB / 0.9535 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.543e-05/0.656, allocations: 1.312 kB / 0.9535 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.798e-05/0.6561, allocations: 15.8 kB / 0.9536 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.6561, allocations: 2.406 kB / 0.9536 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.085e-05/0.6561, allocations: 80.5 kB / 0.9536 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.6561, allocations: 0 / 0.9536 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001896/0.6563, allocations: 14.75 kB / 0.9536 GB, free: 5.445 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.0003385/0.6566, allocations: 0.6754 MB / 0.9543 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001365/0.6568, allocations: 73.84 kB / 0.9544 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.6568, allocations: 0 / 0.9544 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.75e-05/0.6568, allocations: 38.86 kB / 0.9544 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.657, allocations: 11.08 kB / 0.9544 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003272/0.6573, allocations: 174.5 kB / 0.9546 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001069/0.6574, allocations: 0.6864 MB / 0.9553 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.901e-05/0.6575, allocations: 39.27 kB / 0.9553 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.071e-05/0.6576, allocations: 20.14 kB / 0.9553 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.6576, allocations: 1.344 kB / 0.9553 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.6732, allocations: 1.534 MB / 0.9568 GB, free: 3 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.107/7.78, allocations: 0.9375 kB / 0.9568 GB, free: 3 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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