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 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: 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.0009722/0.0009722, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001011/0.001011, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 223.2 MB / 239.9 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.714/2.714, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003688, allocations: 8 kB / 0.8708 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8532/0.8536, allocations: 153.6 MB / 1.021 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006163/0.8542, allocations: 321.4 kB / 1.021 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0001882/0.8544, allocations: 51.83 kB / 1.021 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.694e-05/0.8544, allocations: 4 kB / 1.021 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.147e-05/0.8545, allocations: 3.938 kB / 1.021 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.588e-06/0.8545, allocations: 0 / 1.021 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001757/0.8547, allocations: 11.98 kB / 1.021 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.642e-05/0.8547, allocations: 19.97 kB / 1.021 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.469e-05/0.8548, allocations: 4 kB / 1.021 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.897e-05/0.8548, allocations: 8 kB / 1.021 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.674e-05/0.8548, allocations: 19.84 kB / 1.021 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.8549, allocations: 8 kB / 1.021 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.783e-05/0.8549, allocations: 15.98 kB / 1.021 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.916e-05/0.8549, allocations: 8 kB / 1.021 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.855, allocations: 25.7 kB / 1.021 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 5.472e-05/0.855, allocations: 23.95 kB / 1.021 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.855, allocations: 0 / 1.021 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.132e-06/0.855, allocations: 0 / 1.021 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.835e-06/0.8551, allocations: 0 / 1.021 GB, free: 0.5391 MB / 0.7637 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.0002637/0.8553, allocations: 331.3 kB / 1.022 GB, free: 172 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.8554, allocations: 8.031 kB / 1.022 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.8554, allocations: 8 kB / 1.022 GB, free: 156 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.8555, allocations: 165 kB / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.8555, allocations: 3.938 kB / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.8555, allocations: 11.98 kB / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.8557, allocations: 65.61 kB / 1.022 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.8557, allocations: 0 / 1.022 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.8557, allocations: 0 / 1.022 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.8557, allocations: 4 kB / 1.022 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.8558, allocations: 99.86 kB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001517/0.856, allocations: 185.5 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.47e-05/0.8561, allocations: 66.55 kB / 1.022 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002755/0.8564, allocations: 401.5 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.8564, allocations: 38.56 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.8564, allocations: 0 / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0002141/0.8566, allocations: 113.8 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.8567, allocations: 55.41 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.849e-05/0.8567, allocations: 101.8 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.8567, allocations: 25.7 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/0.8568, allocations: 80.33 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.8568, allocations: 23.7 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.8568, allocations: 4 kB / 1.023 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.8569, allocations: 314.8 kB / 1.023 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.483e-05/0.857, allocations: 19.98 kB / 1.023 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.02e-05/0.857, allocations: 19.98 kB / 1.023 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.529e-05/0.8571, allocations: 27.92 kB / 1.023 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.8571, allocations: 4 kB / 1.023 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001302/0.8572, allocations: 94.22 kB / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.8572, allocations: 8 kB / 1.023 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.8572, allocations: 7.875 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.8573, allocations: 3.953 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.568e-05/0.8574, allocations: 19.98 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.8574, allocations: 0 / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.819e-05/0.8574, allocations: 3.938 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.8574, allocations: 8 kB / 1.024 GB, free: 13.96 MB / 0.7794 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 (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 initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.8575, allocations: 129 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-06/0.8576, allocations: 0 / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.8578, allocations: 129.6 kB / 1.024 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.8578, allocations: 4 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.8578, allocations: 3.953 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.8578, allocations: 0 / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.8579, allocations: 177.5 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.8579, allocations: 4 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-05/0.858, allocations: 19.98 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.858, allocations: 0 / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.858, allocations: 4 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.858, allocations: 4 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.858, allocations: 0 / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.8582, allocations: 125.3 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.8582, allocations: 89.02 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.8582, allocations: 4 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.421e-05/0.8582, allocations: 0 / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.8583, allocations: 7.984 kB / 1.024 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.8583, allocations: 8 kB / 1.024 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.72e-05/0.8583, allocations: 79.23 kB / 1.024 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8583, allocations: 0 / 1.024 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001946/0.8585, allocations: 12 kB / 1.024 GB, free: 13.07 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001612/0.8587, allocations: 115.2 kB / 1.024 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001162/0.8588, allocations: 63.84 kB / 1.024 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.8588, allocations: 0 / 1.024 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.535e-05/0.8589, allocations: 35.92 kB / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.931e-05/0.859, allocations: 5.547 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002197/0.8592, allocations: 142.7 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.8594, allocations: 0.6848 MB / 1.025 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.713e-05/0.8595, allocations: 35.94 kB / 1.025 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.491e-05/0.8595, allocations: 23.42 kB / 1.025 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8595, allocations: 0 / 1.025 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of Templates: time 0.002308/0.8618, allocations: 0.5627 MB / 1.026 GB, free: 11.35 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches