Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_11_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.007946/0.007946, allocations: 100.5 kB / 15.73 MB, free: 6.008 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.001861/0.001862, allocations: 197.3 kB / 16.67 MB, free: 5.926 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.563/2.563, allocations: 469.8 MB / 0.7425 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 68.12 kB / 1.065 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6565/0.6584, allocations: 159.1 MB / 1.22 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002288/0.6607, allocations: 1.525 MB / 1.222 GB, free: 492 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003078/0.661, allocations: 143.5 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.959e-05/0.6611, allocations: 4 kB / 1.222 GB, free: 344 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.623e-05/0.6611, allocations: 3.938 kB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.427e-05/0.6612, allocations: 3.938 kB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.6614, allocations: 27.91 kB / 1.222 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.572e-05/0.6615, allocations: 35.98 kB / 1.222 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 7.824e-05/0.6615, allocations: 23.91 kB / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.21e-05/0.6616, allocations: 15.94 kB / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.675e-05/0.6616, allocations: 15.92 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.6616, allocations: 4 kB / 1.222 GB, free: 212 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.05e-05/0.6617, allocations: 15.98 kB / 1.222 GB, free: 196 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.022e-05/0.6617, allocations: 15.97 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.574e-05/0.6618, allocations: 19.88 kB / 1.222 GB, free: 160 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.945e-05/0.6619, allocations: 38.55 kB / 1.222 GB, free: 124 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.6619, allocations: 8 kB / 1.222 GB, free: 116 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.072e-06/0.6619, allocations: 0 / 1.222 GB, free: 116 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.6619, allocations: 0 / 1.222 GB, free: 116 kB / 0.9356 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.0004449/0.6623, allocations: 352.3 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.6624, allocations: 12.03 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.659e-05/0.6624, allocations: 34.73 kB / 1.222 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.6625, allocations: 4.922 kB / 1.222 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.6626, allocations: 172.3 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.6626, allocations: 4.375 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.6626, allocations: 8.375 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.6628, allocations: 66.16 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.6628, allocations: 3.938 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.6628, allocations: 3.938 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.6628, allocations: 4 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.663, allocations: 43.95 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003348/0.6634, allocations: 276.8 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.6637, allocations: 62.47 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.534e-05/0.6638, allocations: 28.84 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002763/0.664, allocations: 401.5 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.6641, allocations: 34.56 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.6641, allocations: 0 / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0003592/0.6644, allocations: 97.53 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.453e-05/0.6645, allocations: 59.39 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.57e-05/0.6646, allocations: 105.8 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.6646, allocations: 25.7 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.6646, allocations: 84.14 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.084e-05/0.6647, allocations: 11.95 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.458e-05/0.6647, allocations: 17.72 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.6648, allocations: 318.8 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.959e-05/0.6649, allocations: 19.98 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.132e-05/0.665, allocations: 19.97 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.6652, allocations: 44.83 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.6652, allocations: 0 / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002121/0.6654, allocations: 85.53 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.6654, allocations: 4 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-06/0.6654, allocations: 0 / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/0.6654, allocations: 0 / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.403e-05/0.6655, allocations: 11.98 kB / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.6655, allocations: 0 / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.547e-05/0.6656, allocations: 8 kB / 1.224 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.6656, allocations: 8 kB / 1.224 GB, free: 13.4 MB / 0.9512 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.117e-05/0.6657, allocations: 113.8 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.409e-05/0.6657, allocations: 4.328 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.666, allocations: 89.47 kB / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.666, allocations: 4 kB / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.666, allocations: 0 / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.666, allocations: 4 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.6661, allocations: 173.6 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.6662, allocations: 4 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.613e-05/0.6662, allocations: 11.98 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.6663, allocations: 0 / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-06/0.6663, allocations: 3.938 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.6663, allocations: 320 / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.6663, allocations: 0 / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.6665, allocations: 183.4 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.352e-05/0.6666, allocations: 85.05 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.6666, allocations: 0 / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.188e-05/0.6667, allocations: 7.984 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.6667, allocations: 4 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.6667, allocations: 7.938 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.588e-05/0.6668, allocations: 91.25 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.6668, allocations: 0 / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002039/0.667, allocations: 12 kB / 1.225 GB, free: 12.51 MB / 0.9512 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.0005426/0.6676, allocations: 0.7129 MB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002125/0.6678, allocations: 47.89 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.6678, allocations: 0 / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.541e-05/0.6679, allocations: 27.97 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.6681, allocations: 8 kB / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.6694, allocations: 1.276 MB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.6697, allocations: 0.6807 MB / 1.228 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.759e-05/0.6697, allocations: 4 kB / 1.228 GB, free: 9.621 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.6698, allocations: 15.44 kB / 1.228 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of SimCode: time 2e-07/0.6698, allocations: 0 / 1.228 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.594/1.264, allocations: 1.715 MB / 1.229 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.826/11.09, allocations: 15.41 kB / 1.229 GB, free: 7.969 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches