Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_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.009071/0.009071, allocations: 102.4 kB / 15.73 MB, free: 6.438 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.001727/0.001727, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.318/2.318, allocations: 390.3 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 60.12 kB / 0.9504 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3003, allocations: 140.4 MB / 1.087 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002998/0.3033, allocations: 1.523 MB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003749/0.3037, allocations: 140.5 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.652e-05/0.3038, allocations: 0 / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.548e-05/0.3038, allocations: 7.922 kB / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.36e-05/0.3039, allocations: 3.938 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.3043, allocations: 27.91 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.069e-05/0.3044, allocations: 39.91 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3045, allocations: 11.94 kB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.174e-05/0.3045, allocations: 19.98 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.37e-05/0.3046, allocations: 19.92 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.3046, allocations: 7.984 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.879e-05/0.3047, allocations: 19.98 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.3047, allocations: 11.94 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.492e-05/0.3048, allocations: 15.92 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.3049, allocations: 39.88 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3049, allocations: 0 / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.483e-06/0.305, allocations: 0 / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.305, allocations: 0 / 1.089 GB, free: 88 kB / 0.8419 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.0005608/0.3055, allocations: 362.2 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3056, allocations: 12.03 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.583e-05/0.3056, allocations: 30.75 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.806e-05/0.3057, allocations: 4.938 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.3058, allocations: 169.1 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.3058, allocations: 8.312 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.616e-05/0.3059, allocations: 4.375 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.3061, allocations: 58.23 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3061, allocations: 7.938 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.3061, allocations: 4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3061, allocations: 0 / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.3063, allocations: 43.95 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004512/0.3068, allocations: 280.7 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.3072, allocations: 62.53 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.3073, allocations: 32.83 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003266/0.3076, allocations: 401.6 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.3077, allocations: 34.56 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.654e-06/0.3077, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004249/0.3081, allocations: 105.5 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.3081, allocations: 55.41 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.197e-05/0.3082, allocations: 105.8 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.3082, allocations: 25.7 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.972e-05/0.3083, allocations: 88.14 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.3083, allocations: 7.891 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.87e-05/0.3084, allocations: 17.72 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3085, allocations: 314.8 kB / 1.091 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.677e-05/0.3086, allocations: 27.97 kB / 1.091 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.52e-05/0.3087, allocations: 19.98 kB / 1.091 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.3089, allocations: 44.81 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3089, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000219/0.3091, allocations: 73.59 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.3091, allocations: 8 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3091, allocations: 0 / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.3091, allocations: 7.938 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.119e-05/0.3092, allocations: 7.984 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.3093, allocations: 4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.34e-05/0.3093, allocations: 15.89 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3093, allocations: 0 / 1.092 GB, free: 13.37 MB / 0.8575 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.891e-05/0.3094, allocations: 109.8 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.3094, allocations: 8 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002657/0.3097, allocations: 85.48 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.3097, allocations: 4 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3097, allocations: 3.984 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3098, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.3099, allocations: 165.6 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3099, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.681e-05/0.31, allocations: 15.98 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.31, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.31, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.31, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.31, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.3103, allocations: 173.2 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.3104, allocations: 89.03 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.3104, allocations: 7.938 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.333e-05/0.3105, allocations: 4.047 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.901e-05/0.3106, allocations: 11.97 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.3106, allocations: 7.938 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.055e-05/0.3106, allocations: 91.56 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.8e-07/0.3106, allocations: 0 / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002358/0.3109, allocations: 12 kB / 1.092 GB, free: 12.49 MB / 0.8575 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.0005932/0.3115, allocations: 0.7123 MB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.3117, allocations: 47.89 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3117, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.3118, allocations: 23.97 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.3121, allocations: 14.19 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.3136, allocations: 1.28 MB / 1.094 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.3139, allocations: 0.6846 MB / 1.095 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.14e-05/0.3139, allocations: 11.98 kB / 1.095 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.41e-05/0.314, allocations: 11.44 kB / 1.095 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of SimCode: time 3.005e-06/0.314, allocations: 0 / 1.095 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.3349, allocations: 1.701 MB / 1.097 GB, free: 7.965 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.472, allocations: 4.062 kB / 1.097 GB, free: 7.961 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches