Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_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.005914/0.005914, allocations: 99.64 kB / 15.73 MB, free: 5.547 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.001314/0.001314, allocations: 193.6 kB / 16.67 MB, free: 5.492 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.754/2.754, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001426, allocations: 71.91 kB / 1.054 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.292, allocations: 157.4 MB / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001715/0.2938, allocations: 0.5933 MB / 1.208 GB, free: 9.508 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000266/0.2941, allocations: 59.78 kB / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.055e-05/0.2941, allocations: 0 / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.542e-05/0.2942, allocations: 0 / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.925e-06/0.2942, allocations: 0 / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.2944, allocations: 23.86 kB / 1.208 GB, free: 9.426 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.594e-05/0.2945, allocations: 31.97 kB / 1.208 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.745e-05/0.2946, allocations: 0 / 1.208 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.443e-05/0.2946, allocations: 15.98 kB / 1.208 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.779e-05/0.2946, allocations: 11.98 kB / 1.208 GB, free: 9.367 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.2947, allocations: 0 / 1.208 GB, free: 9.367 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.173e-05/0.2947, allocations: 15.98 kB / 1.208 GB, free: 9.352 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.122e-05/0.2948, allocations: 15.98 kB / 1.208 GB, free: 9.336 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.501e-05/0.2948, allocations: 19.86 kB / 1.208 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.2949, allocations: 31.89 kB / 1.208 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2949, allocations: 3.938 kB / 1.208 GB, free: 9.281 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.452e-06/0.2949, allocations: 0 / 1.208 GB, free: 9.281 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.93e-06/0.295, allocations: 0 / 1.208 GB, free: 9.281 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003155/0.2953, allocations: 335.6 kB / 1.208 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.2953, allocations: 16.62 kB / 1.208 GB, free: 8.887 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.447e-05/0.2954, allocations: 34.75 kB / 1.208 GB, free: 8.844 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.2954, allocations: 8.844 kB / 1.208 GB, free: 8.836 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.869e-05/0.2955, allocations: 168.5 kB / 1.209 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.2955, allocations: 4.375 kB / 1.209 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.2955, allocations: 4.375 kB / 1.209 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.2957, allocations: 66.22 kB / 1.209 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.2957, allocations: 3.938 kB / 1.209 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.2957, allocations: 0 / 1.209 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2957, allocations: 0 / 1.209 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.2959, allocations: 107.9 kB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001643/0.296, allocations: 169.6 kB / 1.209 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.2962, allocations: 74.48 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.289e-05/0.2962, allocations: 32.84 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.2966, allocations: 401.5 kB / 1.209 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.2966, allocations: 30.56 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.2966, allocations: 4 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0002437/0.2968, allocations: 121.8 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.2969, allocations: 55.34 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.319e-05/0.2969, allocations: 101.8 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.297, allocations: 25.7 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.26e-05/0.297, allocations: 80.14 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.297, allocations: 27.64 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.442e-05/0.2971, allocations: 33.7 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.2972, allocations: 314.8 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.84e-05/0.2972, allocations: 19.98 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.647e-05/0.2973, allocations: 19.98 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.2974, allocations: 61.48 kB / 1.21 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.2974, allocations: 0 / 1.21 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001379/0.2975, allocations: 97.48 kB / 1.21 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2976, allocations: 7.938 kB / 1.21 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.2976, allocations: 0 / 1.21 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.2976, allocations: 4 kB / 1.21 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.919e-05/0.2977, allocations: 19.98 kB / 1.21 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2977, allocations: 8 kB / 1.21 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.261e-05/0.2977, allocations: 11.84 kB / 1.21 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.2978, allocations: 4 kB / 1.21 GB, free: 6.531 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: 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.0001455/0.2979, allocations: 121.8 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.2979, allocations: 3.938 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000217/0.2981, allocations: 129.3 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.2982, allocations: 4 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2982, allocations: 7.984 kB / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2982, allocations: 0 / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.2983, allocations: 165.7 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2983, allocations: 0 / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.249e-05/0.2984, allocations: 19.98 kB / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2984, allocations: 3.938 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.2984, allocations: 8 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2984, allocations: 0 / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2984, allocations: 3.984 kB / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001582/0.2986, allocations: 121 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.343e-05/0.2986, allocations: 92.89 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.2987, allocations: 0 / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.875e-05/0.2987, allocations: 4 kB / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.002e-05/0.2987, allocations: 11.92 kB / 1.211 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-06/0.2987, allocations: 4 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.422e-05/0.2988, allocations: 75.28 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2988, allocations: 0 / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002098/0.299, allocations: 19.98 kB / 1.211 GB, free: 5.645 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: 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.0005127/0.2995, allocations: 0.667 MB / 1.212 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001439/0.2997, allocations: 59.91 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2997, allocations: 0 / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.852e-05/0.2997, allocations: 43.91 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.2999, allocations: 4.875 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004292/0.3003, allocations: 191.1 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.3006, allocations: 0.6846 MB / 1.213 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.218e-05/0.3007, allocations: 39.8 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.245e-05/0.3007, allocations: 15.44 kB / 1.213 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of SimCode: time 4.81e-07/0.3007, allocations: 0 / 1.213 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0176/0.3183, allocations: 1.585 MB / 1.214 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.636/7.954, allocations: 11.62 kB / 1.214 GB, free: 2.375 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches