Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 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.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_11_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.005103/0.005103, allocations: 98.17 kB / 15.73 MB, free: 6.055 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.001435/0.001435, allocations: 195.3 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.5/2.5, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00242/0.00242, allocations: 63.89 kB / 1.065 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7338/0.7362, allocations: 159.1 MB / 1.22 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001516/0.7377, allocations: 0.5864 MB / 1.221 GB, free: 1.48 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002349/0.738, allocations: 61.75 kB / 1.221 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.651e-05/0.738, allocations: 4 kB / 1.221 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.804e-05/0.7381, allocations: 0 / 1.221 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.26e-06/0.7381, allocations: 0 / 1.221 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.7383, allocations: 19.92 kB / 1.221 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.348e-05/0.7384, allocations: 35.89 kB / 1.221 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.164e-05/0.7384, allocations: 0 / 1.221 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.854e-05/0.7385, allocations: 12 kB / 1.221 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.721e-05/0.7385, allocations: 15.97 kB / 1.221 GB, free: 1.336 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.7385, allocations: 0 / 1.221 GB, free: 1.336 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.289e-05/0.7386, allocations: 19.98 kB / 1.221 GB, free: 1.316 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.7386, allocations: 4 kB / 1.221 GB, free: 1.312 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.422e-05/0.7386, allocations: 23.86 kB / 1.221 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.061e-05/0.7387, allocations: 35.89 kB / 1.221 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7387, allocations: 0 / 1.221 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7388, allocations: 0 / 1.221 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.7388, allocations: 0 / 1.221 GB, free: 1.254 MB / 0.9356 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.0003274/0.7391, allocations: 339.1 kB / 1.221 GB, free: 0.875 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.7391, allocations: 8.031 kB / 1.221 GB, free: 0.8672 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.333e-05/0.7392, allocations: 38.73 kB / 1.221 GB, free: 0.8203 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.053e-05/0.7392, allocations: 4.938 kB / 1.221 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.7393, allocations: 172.3 kB / 1.222 GB, free: 0.6094 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.7393, allocations: 8.375 kB / 1.222 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.7393, allocations: 4.375 kB / 1.222 GB, free: 0.5977 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.7395, allocations: 62.22 kB / 1.222 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.7395, allocations: 3.938 kB / 1.222 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-06/0.7395, allocations: 0 / 1.222 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.7395, allocations: 0 / 1.222 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.7397, allocations: 99.88 kB / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.7398, allocations: 185.5 kB / 1.222 GB, free: 204 kB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/0.74, allocations: 82.47 kB / 1.222 GB, free: 112 kB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.827e-05/0.74, allocations: 32.84 kB / 1.222 GB, free: 76 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003447/0.7404, allocations: 401.5 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.7404, allocations: 34.56 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.7404, allocations: 0 / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0002263/0.7406, allocations: 109.9 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.7407, allocations: 59.34 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.032e-05/0.7407, allocations: 105.8 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.7408, allocations: 25.7 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.248e-05/0.7408, allocations: 80.14 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.7408, allocations: 27.78 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/0.7409, allocations: 33.7 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.741, allocations: 310.8 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.728e-05/0.7411, allocations: 19.98 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.524e-05/0.7411, allocations: 20.42 kB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.498e-05/0.7412, allocations: 68.98 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.7412, allocations: 0 / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001392/0.7414, allocations: 89.61 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.7414, allocations: 11.88 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.7414, allocations: 4 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.7414, allocations: 0 / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.429e-05/0.7415, allocations: 23.98 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.7415, allocations: 0 / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.798e-05/0.7415, allocations: 3.953 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.7415, allocations: 4 kB / 1.223 GB, free: 14.51 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: 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 0.0001125/0.7417, allocations: 125.8 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.7417, allocations: 3.938 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.7419, allocations: 137.4 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.7419, allocations: 0 / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.7419, allocations: 4 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.7419, allocations: 0 / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.7421, allocations: 169.6 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.7421, allocations: 0 / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.228e-05/0.7421, allocations: 23.98 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.7421, allocations: 3.938 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.7422, allocations: 8 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7422, allocations: 0 / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.7422, allocations: 0 / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.7423, allocations: 124.9 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.7424, allocations: 85.05 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.7424, allocations: 0 / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.527e-05/0.7424, allocations: 4 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.7425, allocations: 15.92 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.7425, allocations: 4 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.973e-05/0.7425, allocations: 75.28 kB / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.7425, allocations: 0 / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001904/0.7427, allocations: 19.94 kB / 1.224 GB, free: 13.61 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: 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.0004975/0.7432, allocations: 0.6792 MB / 1.225 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.7434, allocations: 60.34 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.7434, allocations: 0 / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.629e-05/0.7434, allocations: 44.08 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001146/0.7435, allocations: 0 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003369/0.7439, allocations: 174.5 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.7442, allocations: 0.6923 MB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.014e-05/0.7443, allocations: 35.94 kB / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.292e-05/0.7443, allocations: 19.42 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.7443, allocations: 0 / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3934/1.138, allocations: 1.563 MB / 1.227 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.941/10.08, allocations: 10.41 kB / 1.227 GB, free: 10.35 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches