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.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.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.001346/0.001346, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.676/2.676, allocations: 469.4 MB / 0.742 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.27 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2619, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002963/0.2649, allocations: 1.541 MB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003876/0.2653, allocations: 133.3 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.902e-05/0.2654, allocations: 4 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.897e-05/0.2654, allocations: 3.938 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.37e-05/0.2655, allocations: 3.938 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.2658, allocations: 39.89 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.549e-05/0.2659, allocations: 31.92 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.266, allocations: 12 kB / 1.065 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.506e-05/0.266, allocations: 15.92 kB / 1.065 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.924e-05/0.2661, allocations: 27.91 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.2661, allocations: 4 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.863e-05/0.2662, allocations: 19.98 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.2662, allocations: 7.938 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.954e-05/0.2663, allocations: 15.92 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.2664, allocations: 39.88 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2664, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2664, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2664, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8262 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.000447/0.2669, allocations: 363.7 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.2669, allocations: 8.031 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.2669, allocations: 30.75 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.706e-05/0.267, allocations: 4.938 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.2671, allocations: 168.3 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.2671, allocations: 8.359 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.2671, allocations: 384 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.2673, allocations: 62.17 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.2673, allocations: 7.938 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.2674, allocations: 0 / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.2674, allocations: 7.938 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/0.2676, allocations: 43.95 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003936/0.268, allocations: 284.8 kB / 1.066 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.2683, allocations: 62.55 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.939e-05/0.2684, allocations: 24.83 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002672/0.2687, allocations: 397.5 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.2687, allocations: 30.56 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 2.746e-06/0.2687, allocations: 3.984 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003856/0.2691, allocations: 105.5 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.2692, allocations: 59.28 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.744e-05/0.2692, allocations: 105.8 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.2693, allocations: 29.7 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.902e-05/0.2693, allocations: 84.14 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.2693, allocations: 3.906 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.581e-05/0.2694, allocations: 21.7 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.168e-05/0.2695, allocations: 314.8 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.595e-05/0.2696, allocations: 27.97 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.489e-05/0.2697, allocations: 19.98 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.2698, allocations: 44.81 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2698, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002193/0.2701, allocations: 81.5 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2701, allocations: 9.094 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2701, allocations: 4 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.2701, allocations: 0 / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.264e-05/0.2702, allocations: 15.98 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2702, allocations: 0 / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.029e-05/0.2703, allocations: 7.984 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.2703, allocations: 0 / 1.068 GB, free: 9.906 MB / 0.8262 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.12e-05/0.2704, allocations: 115.5 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.2704, allocations: 4 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002619/0.2707, allocations: 85.55 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2707, allocations: 0 / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2707, allocations: 0 / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.2707, allocations: 3.938 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.2708, allocations: 177.5 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2709, allocations: 0 / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.629e-05/0.2709, allocations: 11.98 kB / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2709, allocations: 4 kB / 1.068 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.271, allocations: 0 / 1.068 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.271, allocations: 0 / 1.068 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.271, allocations: 4 kB / 1.068 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/0.2712, allocations: 171.4 kB / 1.068 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.346e-05/0.2713, allocations: 81.52 kB / 1.068 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.2713, allocations: 0 / 1.068 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.525e-05/0.2714, allocations: 8 kB / 1.068 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.2714, allocations: 11.98 kB / 1.068 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-06/0.2714, allocations: 0 / 1.068 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.533e-05/0.2715, allocations: 91.58 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.352e-06/0.2715, allocations: 0 / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002389/0.2717, allocations: 15.88 kB / 1.069 GB, free: 9.035 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.0005304/0.2723, allocations: 0.7245 MB / 1.069 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.2725, allocations: 47.95 kB / 1.069 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2725, allocations: 0 / 1.069 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.684e-05/0.2726, allocations: 23.92 kB / 1.069 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.2729, allocations: 11.98 kB / 1.069 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.2742, allocations: 1.276 MB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.2744, allocations: 0.6807 MB / 1.071 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.039e-05/0.2745, allocations: 12.22 kB / 1.071 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.797e-05/0.2745, allocations: 15.42 kB / 1.071 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.2745, allocations: 0 / 1.071 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/0.2921, allocations: 1.681 MB / 1.073 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.334/7.626, allocations: 13.23 kB / 1.073 GB, free: 4.5 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 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.csv","/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