Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_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.005727/0.005727, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001277/0.001277, allocations: 194.2 kB / 16.68 MB, free: 5.969 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.721/2.721, allocations: 482.6 MB / 0.755 GB, free: 6.66 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.001821, allocations: 66 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3434, allocations: 162.3 MB / 1.242 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002939/0.3463, allocations: 1.54 MB / 1.243 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0004067/0.3468, allocations: 127.6 kB / 1.243 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.881e-05/0.3468, allocations: 4 kB / 1.243 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.299e-05/0.3469, allocations: 3.938 kB / 1.243 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.714e-05/0.3469, allocations: 3.938 kB / 1.243 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.3472, allocations: 35.89 kB / 1.244 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.15e-05/0.3473, allocations: 35.92 kB / 1.244 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.3474, allocations: 15.98 kB / 1.244 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.397e-05/0.3475, allocations: 11.98 kB / 1.244 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.884e-05/0.3475, allocations: 23.86 kB / 1.244 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.3476, allocations: 11.92 kB / 1.244 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.431e-05/0.3476, allocations: 15.98 kB / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.3477, allocations: 8 kB / 1.244 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.286e-05/0.3477, allocations: 15.92 kB / 1.244 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.3478, allocations: 48.03 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3479, allocations: 0 / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3479, allocations: 4 kB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.3479, allocations: 0 / 1.244 GB, free: 7 MB / 0.9669 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.0005211/0.3484, allocations: 359.3 kB / 1.244 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3485, allocations: 8.031 kB / 1.244 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.692e-05/0.3485, allocations: 34.75 kB / 1.244 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.494e-05/0.3485, allocations: 4.891 kB / 1.244 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.3487, allocations: 168.3 kB / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.3487, allocations: 384 / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.3487, allocations: 8.375 kB / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.3489, allocations: 70.16 kB / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3489, allocations: 7.922 kB / 1.244 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-06/0.349, allocations: 0 / 1.244 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.349, allocations: 4 kB / 1.244 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.3492, allocations: 43.95 kB / 1.244 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003873/0.3496, allocations: 276.8 kB / 1.245 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.3499, allocations: 62.48 kB / 1.245 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.612e-05/0.35, allocations: 24.89 kB / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003369/0.3503, allocations: 405.6 kB / 1.245 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.3504, allocations: 30.56 kB / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3504, allocations: 0 / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.000397/0.3508, allocations: 101.6 kB / 1.245 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.3508, allocations: 55.34 kB / 1.245 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.752e-05/0.3509, allocations: 109.8 kB / 1.245 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.351, allocations: 25.7 kB / 1.245 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.52e-05/0.351, allocations: 85.62 kB / 1.246 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.357e-05/0.351, allocations: 11.89 kB / 1.246 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.839e-05/0.3511, allocations: 21.7 kB / 1.246 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3512, allocations: 318.8 kB / 1.246 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.693e-05/0.3513, allocations: 19.98 kB / 1.246 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.413e-05/0.3514, allocations: 19.97 kB / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.3516, allocations: 44.81 kB / 1.246 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3516, allocations: 0 / 1.246 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000223/0.3518, allocations: 81.59 kB / 1.246 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.3519, allocations: 4 kB / 1.246 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3519, allocations: 0 / 1.246 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3519, allocations: 0 / 1.246 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.396e-05/0.352, allocations: 15.98 kB / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.352, allocations: 0 / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.893e-05/0.3521, allocations: 11.94 kB / 1.246 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.3521, allocations: 4 kB / 1.246 GB, free: 4.285 MB / 0.9669 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 9.718e-05/0.3522, allocations: 121.7 kB / 1.246 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.3522, allocations: 4 kB / 1.246 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.3525, allocations: 77.55 kB / 1.246 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3525, allocations: 384 / 1.246 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3525, allocations: 11.88 kB / 1.246 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3525, allocations: 0 / 1.246 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.3527, allocations: 169.6 kB / 1.246 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3527, allocations: 0 / 1.246 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.366e-05/0.3528, allocations: 15.97 kB / 1.246 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3528, allocations: 4 kB / 1.246 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.3528, allocations: 0 / 1.246 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3528, allocations: 3.984 kB / 1.246 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3528, allocations: 0 / 1.246 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.3531, allocations: 175.4 kB / 1.247 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.3531, allocations: 81.11 kB / 1.247 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.3532, allocations: 4 kB / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.631e-05/0.3533, allocations: 7.984 kB / 1.247 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.657e-05/0.3533, allocations: 7.984 kB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.3533, allocations: 4 kB / 1.247 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.458e-05/0.3534, allocations: 79.59 kB / 1.247 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.814e-06/0.3534, allocations: 3.938 kB / 1.247 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002215/0.3536, allocations: 15.94 kB / 1.247 GB, free: 3.406 MB / 0.9669 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.0006279/0.3542, allocations: 0.7168 MB / 1.247 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.3545, allocations: 43.95 kB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3545, allocations: 0 / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.3546, allocations: 31.92 kB / 1.248 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3549, allocations: 4 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.3564, allocations: 1.284 MB / 1.249 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.3567, allocations: 0.6807 MB / 1.249 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.545e-05/0.3567, allocations: 12.31 kB / 1.249 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.961e-05/0.3568, allocations: 19.36 kB / 1.25 GB, free: 496 kB / 0.9669 GB Notification: Performance of SimCode: time 2.7e-07/0.3568, allocations: 4 kB / 1.25 GB, free: 492 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2055/0.5623, allocations: 1.697 MB / 1.251 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.53/9.092, allocations: 11.52 kB / 1.251 GB, free: 14.87 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches