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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001117/0.001117, 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.001127/0.001127, allocations: 198.1 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.528/2.528, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 64.09 kB / 0.8686 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.56/0.5615, allocations: 151.6 MB / 1.017 GB, free: 2.875 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002669/0.5642, allocations: 1.587 MB / 1.018 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003735/0.5646, allocations: 136.5 kB / 1.018 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.287e-05/0.5646, allocations: 0 / 1.018 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.593e-05/0.5647, allocations: 11.92 kB / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.548e-05/0.5648, allocations: 0 / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.565, allocations: 27.92 kB / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.833e-05/0.565, allocations: 27.92 kB / 1.018 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.557e-05/0.5651, allocations: 19.92 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.613e-05/0.5652, allocations: 11.98 kB / 1.018 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.94e-05/0.5652, allocations: 15.92 kB / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.5652, allocations: 4 kB / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.5653, allocations: 19.98 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.5653, allocations: 11.92 kB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.726e-05/0.5654, allocations: 11.88 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.5655, allocations: 47.88 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.5655, allocations: 0 / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of FrontEnd: time 5.05e-06/0.5655, allocations: 3.984 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.5655, allocations: 0 / 1.019 GB, free: 0.9297 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.0004269/0.5659, allocations: 353.7 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.566, allocations: 8.031 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.609e-05/0.566, allocations: 42.75 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.244e-05/0.566, allocations: 0.9375 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.833e-05/0.5661, allocations: 172.3 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.5662, allocations: 4.312 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.5662, allocations: 4.375 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.5664, allocations: 62.17 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-06/0.5664, allocations: 3.938 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.5664, allocations: 3.984 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.5664, allocations: 0 / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.5666, allocations: 51.94 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003504/0.567, allocations: 276.8 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003092/0.5673, allocations: 62.47 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.543e-05/0.5674, allocations: 28.91 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002536/0.5677, allocations: 397.5 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.5677, allocations: 38.55 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.5677, allocations: 0 / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003722/0.5681, allocations: 89.55 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.5681, allocations: 59.34 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.53e-05/0.5682, allocations: 117.8 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.5682, allocations: 25.7 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.62e-05/0.5683, allocations: 84.12 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.5683, allocations: 11.91 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.5683, allocations: 9.719 kB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.5685, allocations: 322.8 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.5685, allocations: 19.97 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.452e-05/0.5686, allocations: 19.98 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.5688, allocations: 52.81 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.5688, allocations: 0 / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002161/0.569, allocations: 77.92 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.5691, allocations: 4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5691, allocations: 7.984 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.5691, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.374e-05/0.5692, allocations: 11.98 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.5692, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.031e-05/0.5693, allocations: 11.92 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-06/0.5693, allocations: 3.938 kB / 1.021 GB, free: 14.21 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 8.183e-05/0.5694, allocations: 118.3 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.5694, allocations: 7.844 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002547/0.5697, allocations: 85.55 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.5697, allocations: 3.984 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5697, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.5697, allocations: 3.938 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.5698, allocations: 169.6 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.5699, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.527e-05/0.5699, allocations: 11.98 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.5699, allocations: 0 / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.57, allocations: 8 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.57, allocations: 0 / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.57, allocations: 0 / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.5702, allocations: 171.4 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.52e-05/0.5703, allocations: 81.02 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.5703, allocations: 4 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.033e-05/0.5704, allocations: 11.98 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/0.5704, allocations: 4 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.5704, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.229e-05/0.5705, allocations: 91.27 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.134e-06/0.5705, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002258/0.5707, allocations: 11.94 kB / 1.022 GB, free: 13.35 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.0005409/0.5713, allocations: 0.7203 MB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002181/0.5715, allocations: 43.95 kB / 1.022 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.5715, allocations: 0 / 1.022 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.5716, allocations: 27.91 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.5719, allocations: 12 kB / 1.022 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.5733, allocations: 1.286 MB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.5735, allocations: 0.6809 MB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.518e-05/0.5735, allocations: 7.984 kB / 1.024 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.5736, allocations: 15.44 kB / 1.024 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.5736, allocations: 0 / 1.024 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01147/0.585, allocations: 1.48 MB / 1.026 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/0.5853, allocations: 202.1 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.193, allocations: 3.938 kB / 1.026 GB, free: 8.777 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