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.000836/0.000836, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005857/0.005857, allocations: 170.1 kB / 16.27 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.72/2.72, allocations: 462.7 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004971/0.0004972, allocations: 8.812 kB / 0.9029 GB, free: 36.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2908, allocations: 159.6 MB / 1.059 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001339/0.2922, allocations: 1.263 MB / 1.06 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000281/0.2925, allocations: 135.6 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.653e-05/0.2925, allocations: 0 / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.028e-05/0.2925, allocations: 3.938 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.892e-05/0.2926, allocations: 0 / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000159/0.2927, allocations: 23.92 kB / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.886e-05/0.2928, allocations: 35.92 kB / 1.06 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.292e-05/0.2929, allocations: 15.98 kB / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.2929, allocations: 11.92 kB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.248e-05/0.2929, allocations: 15.92 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.2929, allocations: 4 kB / 1.06 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.822e-05/0.293, allocations: 19.98 kB / 1.06 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.293, allocations: 0 / 1.06 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.679e-05/0.2931, allocations: 45.56 kB / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.688e-05/0.2931, allocations: 43.86 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.2931, allocations: 0 / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2931, allocations: 4 kB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.875e-06/0.2932, allocations: 0 / 1.06 GB, free: 3.215 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.0003416/0.2935, allocations: 347.8 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.2935, allocations: 11.97 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.638e-05/0.2936, allocations: 30.75 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.846e-05/0.2936, allocations: 8.844 kB / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.325e-05/0.2937, allocations: 164.4 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.2937, allocations: 8.375 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.2937, allocations: 4.375 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.2939, allocations: 74.17 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-06/0.2939, allocations: 3.938 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.2939, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.2939, allocations: 7.969 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.2941, allocations: 63.94 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000288/0.2944, allocations: 276.7 kB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.2947, allocations: 78.41 kB / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.47e-05/0.2948, allocations: 28.91 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002095/0.295, allocations: 397.5 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.2951, allocations: 34.55 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.2951, allocations: 4 kB / 1.062 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003475/0.2954, allocations: 109.6 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.2954, allocations: 51.41 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.939e-05/0.2955, allocations: 113.8 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.2955, allocations: 29.7 kB / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.143e-05/0.2956, allocations: 88.12 kB / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.2956, allocations: 3.906 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.2956, allocations: 13.72 kB / 1.062 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.2957, allocations: 318.8 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.596e-05/0.2958, allocations: 31.97 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.266e-05/0.2959, allocations: 23.92 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.2961, allocations: 60.81 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.2961, allocations: 0 / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002083/0.2963, allocations: 85.59 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.358e-06/0.2963, allocations: 4 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-06/0.2963, allocations: 0 / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.873e-06/0.2963, allocations: 4 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.554e-05/0.2964, allocations: 15.98 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-06/0.2964, allocations: 0 / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.21e-05/0.2965, allocations: 11.98 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-06/0.2965, allocations: 0 / 1.063 GB, free: 440 kB / 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 5.959e-05/0.2965, allocations: 117.8 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.2966, allocations: 3.906 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.2968, allocations: 97.48 kB / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2968, allocations: 0 / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.2968, allocations: 0 / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.2968, allocations: 4 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.297, allocations: 173.6 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.297, allocations: 384 / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.323e-05/0.2971, allocations: 15.98 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2971, allocations: 3.938 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-06/0.2971, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.2971, allocations: 4 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2971, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002451/0.2974, allocations: 187.4 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.143e-05/0.2974, allocations: 85 kB / 1.063 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.2974, allocations: 4 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.561e-05/0.2975, allocations: 4 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.2975, allocations: 7.984 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.2976, allocations: 3.938 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.711e-05/0.2976, allocations: 99.56 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2976, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002223/0.2978, allocations: 11.94 kB / 1.064 GB, free: 15.52 MB / 0.8262 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.0004732/0.2983, allocations: 0.7242 MB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002056/0.2985, allocations: 55.95 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.2985, allocations: 7.938 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.823e-05/0.2986, allocations: 31.97 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.2989, allocations: 0 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.3001, allocations: 1.322 MB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.3003, allocations: 0.6809 MB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.64e-05/0.3003, allocations: 4 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.181e-05/0.3003, allocations: 15.44 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of SimCode: time 1.683e-06/0.3003, allocations: 0 / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.296/1.597, allocations: 1.419 MB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002836/1.597, allocations: 204.5 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/3.674, allocations: 0 / 1.068 GB, free: 11 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