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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, 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.001912/0.001912, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.406/1.406, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.8/2.8, allocations: 472.6 MB / 0.7451 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 69.56 kB / 0.9121 GB, free: 33.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2945, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001691/0.2963, allocations: 0.5826 MB / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002338/0.2965, allocations: 63.7 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.505e-05/0.2966, allocations: 0 / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.27e-05/0.2966, allocations: 0 / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/0.2966, allocations: 0 / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.2968, allocations: 19.92 kB / 1.069 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.189e-05/0.2969, allocations: 27.98 kB / 1.069 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.908e-05/0.297, allocations: 4 kB / 1.069 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.025e-05/0.297, allocations: 19.97 kB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.391e-05/0.297, allocations: 8 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.297, allocations: 4 kB / 1.069 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.644e-05/0.2971, allocations: 15.98 kB / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.023e-05/0.2972, allocations: 19.91 kB / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.2972, allocations: 7.938 kB / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.277e-05/0.2973, allocations: 35.89 kB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2973, allocations: 0 / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2973, allocations: 0 / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.2973, allocations: 0 / 1.069 GB, free: 9.57 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002941/0.2976, allocations: 343.6 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.2976, allocations: 8.031 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.185e-05/0.2977, allocations: 4.844 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.852e-05/0.2978, allocations: 172.5 kB / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.687e-06/0.2978, allocations: 384 / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.2978, allocations: 8.375 kB / 1.07 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001181/0.2979, allocations: 62.22 kB / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.2979, allocations: 192 / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.298, allocations: 3.938 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.298, allocations: 4 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.2981, allocations: 107.8 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.2983, allocations: 169.7 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.2984, allocations: 78.42 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.176e-05/0.2985, allocations: 24.84 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003102/0.2988, allocations: 409.5 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.2988, allocations: 34.56 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.2988, allocations: 0 / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0002774/0.2991, allocations: 129.7 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.2991, allocations: 51.41 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.907e-05/0.2992, allocations: 89.86 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.2992, allocations: 33.7 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.277e-05/0.2992, allocations: 80.14 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.2993, allocations: 27.64 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.2993, allocations: 25.7 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2994, allocations: 318.8 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.87e-05/0.2995, allocations: 23.98 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.267e-05/0.2995, allocations: 19.98 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.2996, allocations: 65.42 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2996, allocations: 0 / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001316/0.2998, allocations: 93.55 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2998, allocations: 5.562 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2998, allocations: 3.938 kB / 1.071 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.2998, allocations: 0 / 1.071 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.43e-05/0.2999, allocations: 19.98 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.2999, allocations: 0 / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.379e-05/0.3, allocations: 15.91 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.3, allocations: 0 / 1.071 GB, free: 6.871 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: 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.0001306/0.3001, allocations: 123.4 kB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.3001, allocations: 4 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.3004, allocations: 129.3 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3004, allocations: 4 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3004, allocations: 0 / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3004, allocations: 4 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.3005, allocations: 177.5 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3005, allocations: 0 / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.958e-05/0.3006, allocations: 23.98 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3006, allocations: 3.938 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.3006, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3006, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3006, allocations: 4 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001497/0.3008, allocations: 129 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.3009, allocations: 84.95 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.3009, allocations: 4 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.496e-05/0.3009, allocations: 0 / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.074e-05/0.3009, allocations: 19.91 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.301, allocations: 4 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.795e-05/0.301, allocations: 77.45 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.301, allocations: 0 / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001977/0.3012, allocations: 12 kB / 1.072 GB, free: 5.98 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: 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.0001656/0.3014, allocations: 119.7 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001458/0.3015, allocations: 71.91 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3015, allocations: 0 / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.465e-05/0.3016, allocations: 39.91 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.3018, allocations: 8 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.3021, allocations: 157.5 kB / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.3023, allocations: 0.687 MB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.883e-05/0.3024, allocations: 39.7 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.3024, allocations: 15.44 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3025, allocations: 0 / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of Templates: time 0.00275/0.3052, allocations: 0.6056 MB / 1.074 GB, free: 4.188 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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