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.001507/0.001507, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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: 197.2 kB / 16.14 MB, free: 6.711 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.283/1.283, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.219/2.219, allocations: 390.2 MB / 0.6643 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 67.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5771/0.5785, allocations: 140.3 MB / 0.949 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001603/0.5801, allocations: 0.6494 MB / 0.9497 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002405/0.5804, allocations: 61.89 kB / 0.9497 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.076e-05/0.5804, allocations: 0 / 0.9497 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.297e-05/0.5804, allocations: 1.438 kB / 0.9497 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.669e-06/0.5804, allocations: 0 / 0.9497 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.5806, allocations: 11.89 kB / 0.9498 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.313e-05/0.5807, allocations: 31.34 kB / 0.9498 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.489e-05/0.5807, allocations: 1.531 kB / 0.9498 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.665e-05/0.5808, allocations: 14.8 kB / 0.9498 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.069e-05/0.5808, allocations: 9.641 kB / 0.9498 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.187e-05/0.5808, allocations: 5.344 kB / 0.9498 GB, free: 8.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.007e-05/0.5809, allocations: 23.7 kB / 0.9498 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.345e-05/0.5809, allocations: 9.906 kB / 0.9498 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.5809, allocations: 23.56 kB / 0.9499 GB, free: 8.445 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.369e-05/0.581, allocations: 23.62 kB / 0.9499 GB, free: 8.434 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.581, allocations: 4 kB / 0.9499 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.32e-07/0.581, allocations: 1.031 kB / 0.9499 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.446e-06/0.581, allocations: 0 / 0.9499 GB, free: 8.43 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.0002147/0.5813, allocations: 337 kB / 0.9502 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.5813, allocations: 12.34 kB / 0.9502 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.521e-05/0.5813, allocations: 41.58 kB / 0.9503 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.468e-05/0.5814, allocations: 2.344 kB / 0.9503 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.95e-05/0.5814, allocations: 172 kB / 0.9504 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.5814, allocations: 1.781 kB / 0.9504 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.5814, allocations: 8.875 kB / 0.9504 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.5815, allocations: 66.41 kB / 0.9505 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.5816, allocations: 3.938 kB / 0.9505 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.5816, allocations: 0.9375 kB / 0.9505 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.5816, allocations: 1.438 kB / 0.9505 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.5817, allocations: 102.5 kB / 0.9506 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000109/0.5818, allocations: 178.3 kB / 0.9508 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.298e-05/0.5819, allocations: 77.72 kB / 0.9509 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.773e-05/0.582, allocations: 27.97 kB / 0.9509 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001954/0.5822, allocations: 405.8 kB / 0.9513 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.5822, allocations: 35.88 kB / 0.9513 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.143e-06/0.5822, allocations: 0 / 0.9513 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002087/0.5824, allocations: 117.8 kB / 0.9514 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/0.5824, allocations: 53 kB / 0.9515 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.722e-05/0.5824, allocations: 91.23 kB / 0.9516 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/0.5825, allocations: 37.62 kB / 0.9516 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.667e-06/0.5825, allocations: 81.52 kB / 0.9517 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.5825, allocations: 19.84 kB / 0.9517 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.354e-05/0.5825, allocations: 27.33 kB / 0.9517 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.662e-05/0.5826, allocations: 317.6 kB / 0.952 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.575e-05/0.5826, allocations: 22.98 kB / 0.952 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.216e-05/0.5827, allocations: 24.73 kB / 0.9521 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.167e-05/0.5827, allocations: 64.39 kB / 0.9521 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.5827, allocations: 1.375 kB / 0.9521 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001178/0.5829, allocations: 92.02 kB / 0.9522 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.5829, allocations: 9.438 kB / 0.9522 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.5829, allocations: 0 / 0.9522 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.5829, allocations: 1.375 kB / 0.9522 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.041e-05/0.583, allocations: 19.11 kB / 0.9522 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.583, allocations: 3.938 kB / 0.9522 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.937e-05/0.583, allocations: 13.31 kB / 0.9523 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.583, allocations: 2.75 kB / 0.9523 GB, free: 6.047 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 7.78e-05/0.5831, allocations: 125.7 kB / 0.9524 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.157e-05/0.5831, allocations: 5.312 kB / 0.9524 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/0.5833, allocations: 119.4 kB / 0.9525 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.5833, allocations: 9.438 kB / 0.9525 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.5834, allocations: 0 / 0.9525 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.5834, allocations: 3.984 kB / 0.9525 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.346e-05/0.5834, allocations: 175.1 kB / 0.9527 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5834, allocations: 5.469 kB / 0.9527 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.407e-05/0.5835, allocations: 22.52 kB / 0.9527 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.5835, allocations: 3.938 kB / 0.9527 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.5835, allocations: 2.625 kB / 0.9527 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.5835, allocations: 0 / 0.9527 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.5835, allocations: 0 / 0.9527 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001235/0.5837, allocations: 126.4 kB / 0.9528 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.568e-05/0.5837, allocations: 83.73 kB / 0.9529 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.5837, allocations: 1.531 kB / 0.9529 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.463e-05/0.5837, allocations: 3.938 kB / 0.9529 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-05/0.5838, allocations: 16.02 kB / 0.9529 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.5838, allocations: 6.656 kB / 0.9529 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.258e-05/0.5838, allocations: 76.44 kB / 0.953 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.5838, allocations: 0 / 0.953 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001943/0.584, allocations: 18.94 kB / 0.953 GB, free: 5.305 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.0003253/0.5843, allocations: 0.667 MB / 0.9537 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000122/0.5845, allocations: 67.42 kB / 0.9537 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.5845, allocations: 0 / 0.9537 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.738e-05/0.5845, allocations: 38.89 kB / 0.9538 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.5847, allocations: 10.52 kB / 0.9538 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003056/0.585, allocations: 177.6 kB / 0.954 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.592e-05/0.5851, allocations: 0.6816 MB / 0.9546 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.852e-05/0.5851, allocations: 43.33 kB / 0.9547 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.962e-05/0.5852, allocations: 20.77 kB / 0.9547 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.5852, allocations: 0 / 0.9547 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01039/0.5956, allocations: 1.421 MB / 0.9561 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001974/0.5958, allocations: 209.4 kB / 0.9563 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/2.258, allocations: 1.219 kB / 0.9563 GB, free: 2.738 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