Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.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.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_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.001136/0.001136, 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.001183/0.001184, 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.479/2.479, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 63.89 kB / 0.8693 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.578/0.5793, allocations: 151.6 MB / 1.017 GB, free: 2.438 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002917/0.5823, allocations: 1.53 MB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003667/0.5827, allocations: 136.5 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.83e-05/0.5827, allocations: 0 / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.926e-05/0.5828, allocations: 7.938 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.89e-05/0.5828, allocations: 3.938 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.5831, allocations: 31.89 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.112e-05/0.5832, allocations: 35.92 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.233e-05/0.5833, allocations: 15.98 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.222e-05/0.5833, allocations: 11.94 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.863e-05/0.5834, allocations: 27.89 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.5834, allocations: 4 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.72e-05/0.5835, allocations: 16 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.5835, allocations: 7.984 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.232e-05/0.5835, allocations: 19.88 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.5837, allocations: 47.86 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.5837, allocations: 0 / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5837, allocations: 0 / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.5837, allocations: 0 / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004278/0.5841, allocations: 345.7 kB / 1.02 GB, free: 148 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.5842, allocations: 12.03 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.501e-05/0.5842, allocations: 38.73 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.5842, allocations: 8.844 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.5844, allocations: 164.3 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.5844, allocations: 12.31 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.5844, allocations: 384 / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.5846, allocations: 62.22 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.5846, allocations: 3.938 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.5846, allocations: 4 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.5847, allocations: 0 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.5849, allocations: 47.95 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000373/0.5852, allocations: 284.6 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.5856, allocations: 58.53 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.84e-05/0.5857, allocations: 28.91 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002533/0.5859, allocations: 405.5 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.586, allocations: 30.56 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.586, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003835/0.5864, allocations: 97.58 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.5864, allocations: 59.39 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.409e-05/0.5865, allocations: 105.8 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.5865, allocations: 29.69 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.011e-05/0.5866, allocations: 88.14 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.377e-05/0.5866, allocations: 3.906 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.5866, allocations: 17.72 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.539e-05/0.5867, allocations: 318.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.226e-05/0.5868, allocations: 23.98 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.096e-05/0.5869, allocations: 24.16 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.5871, allocations: 44.91 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5871, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002139/0.5873, allocations: 77.58 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.5873, allocations: 4 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5873, allocations: 8 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.5874, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.017e-05/0.5874, allocations: 11.98 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.5874, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.839e-05/0.5875, allocations: 11.94 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.5875, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.661e-05/0.5876, allocations: 117.8 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.5876, allocations: 3.906 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002537/0.5879, allocations: 93.48 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.5879, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.5879, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.5879, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.5881, allocations: 165.6 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5881, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.345e-05/0.5882, allocations: 11.98 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.5882, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.5882, allocations: 8 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.5882, allocations: 3.938 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5882, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.5885, allocations: 171.4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.526e-05/0.5885, allocations: 85.02 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.5885, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.354e-05/0.5886, allocations: 19.86 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.5887, allocations: 8 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.5887, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.071e-05/0.5887, allocations: 87.27 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5887, allocations: 4 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002254/0.589, allocations: 12 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005366/0.5895, allocations: 0.7085 MB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002216/0.5897, allocations: 48.08 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5898, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.943e-05/0.5899, allocations: 32.05 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.5902, allocations: 4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.5915, allocations: 1.276 MB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.5917, allocations: 0.6807 MB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.716e-05/0.5918, allocations: 16.47 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.945e-05/0.5918, allocations: 11.44 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.5918, allocations: 0 / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.6097, allocations: 1.668 MB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/7.862, allocations: 18.06 kB / 1.027 GB, free: 8.422 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches