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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001259/0.00126, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001276/0.001276, allocations: 194.3 kB / 16.14 MB, free: 6.652 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.215/1.215, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.435/2.435, allocations: 461.9 MB / 0.7342 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 68.34 kB / 0.8985 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2793, allocations: 157.4 MB / 1.052 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.0033/0.2826, allocations: 1.609 MB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004558/0.2831, allocations: 131.6 kB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.006e-05/0.2832, allocations: 0 / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.12e-05/0.2833, allocations: 3.938 kB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.344e-05/0.2833, allocations: 0 / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.2836, allocations: 31.91 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.179e-05/0.2837, allocations: 35.92 kB / 1.054 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.2838, allocations: 11.98 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.85e-05/0.2839, allocations: 19.92 kB / 1.054 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.095e-05/0.284, allocations: 19.91 kB / 1.054 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.284, allocations: 0 / 1.054 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.786e-05/0.2841, allocations: 19.98 kB / 1.054 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.2841, allocations: 11.88 kB / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.237e-05/0.2841, allocations: 15.94 kB / 1.054 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.2843, allocations: 43.86 kB / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2843, allocations: 0 / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2843, allocations: 0 / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2843, allocations: 0 / 1.054 GB, free: 6.23 MB / 0.8106 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.0005534/0.2849, allocations: 351.7 kB / 1.054 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.2849, allocations: 15.97 kB / 1.054 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.699e-05/0.285, allocations: 34.73 kB / 1.054 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.285, allocations: 4.938 kB / 1.054 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.2852, allocations: 172.3 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.2852, allocations: 384 / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.2852, allocations: 4.375 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.2854, allocations: 66.16 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2855, allocations: 3.938 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.2855, allocations: 4 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.2855, allocations: 0 / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.2857, allocations: 47.89 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.2861, allocations: 280.8 kB / 1.055 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.2865, allocations: 62.47 kB / 1.055 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.2866, allocations: 24.91 kB / 1.055 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/0.2869, allocations: 405.5 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.2869, allocations: 30.56 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.193e-06/0.2869, allocations: 0 / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003904/0.2873, allocations: 101.5 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.2874, allocations: 55.34 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.998e-05/0.2875, allocations: 105.8 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.2875, allocations: 33.7 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.2876, allocations: 84.14 kB / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.2876, allocations: 3.906 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.2876, allocations: 17.72 kB / 1.056 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.2878, allocations: 318.8 kB / 1.056 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.597e-05/0.2879, allocations: 19.98 kB / 1.056 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.385e-05/0.288, allocations: 23.97 kB / 1.056 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.2882, allocations: 44.83 kB / 1.056 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2882, allocations: 0 / 1.056 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002379/0.2884, allocations: 81.58 kB / 1.056 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.2884, allocations: 4 kB / 1.056 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.2884, allocations: 0 / 1.056 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.2885, allocations: 4 kB / 1.056 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.45e-05/0.2886, allocations: 11.98 kB / 1.056 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2886, allocations: 4 kB / 1.056 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.245e-05/0.2886, allocations: 11.84 kB / 1.056 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.2887, allocations: 3.984 kB / 1.056 GB, free: 3.516 MB / 0.8106 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.833e-05/0.2888, allocations: 110.1 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.2888, allocations: 4 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002803/0.2891, allocations: 93.53 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2891, allocations: 0 / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2891, allocations: 0 / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2891, allocations: 0 / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.2893, allocations: 173.5 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2893, allocations: 3.938 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.816e-05/0.2894, allocations: 15.98 kB / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.2894, allocations: 0 / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.2894, allocations: 0 / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2894, allocations: 0 / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2894, allocations: 0 / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/0.2897, allocations: 179.3 kB / 1.057 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.104e-05/0.2897, allocations: 81.11 kB / 1.057 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.2898, allocations: 0 / 1.057 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.2899, allocations: 7.984 kB / 1.057 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.2899, allocations: 11.98 kB / 1.057 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.2899, allocations: 4 kB / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.589e-05/0.29, allocations: 83.28 kB / 1.057 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.29, allocations: 0 / 1.057 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002442/0.2902, allocations: 15.94 kB / 1.057 GB, free: 2.645 MB / 0.8106 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.0005781/0.2908, allocations: 0.7124 MB / 1.058 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002213/0.291, allocations: 43.94 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2911, allocations: 4 kB / 1.058 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.777e-05/0.2912, allocations: 23.92 kB / 1.058 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.2915, allocations: 9.094 kB / 1.058 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.293, allocations: 1.301 MB / 1.059 GB, free: 456 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.2933, allocations: 0.6809 MB / 1.06 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.602e-05/0.2934, allocations: 4.547 kB / 1.06 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.775e-05/0.2934, allocations: 15.44 kB / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2934, allocations: 0 / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.73/2.024, allocations: 1.485 MB / 1.061 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/2.024, allocations: 209.3 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/3.805, allocations: 0 / 1.062 GB, free: 14.08 MB / 0.8262 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=50 --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