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 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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002166/0.002166, allocations: 108.2 kB / 15.99 MB, free: 5.891 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.002181/0.002181, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.563/1.563, allocations: 222.9 MB / 240.6 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.941/2.941, allocations: 482.4 MB / 0.755 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 72.23 kB / 0.924 GB, free: 29.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3521, allocations: 162.2 MB / 1.082 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003325/0.3555, allocations: 1.599 MB / 1.084 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0004111/0.3559, allocations: 127.6 kB / 1.084 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.324e-05/0.3559, allocations: 0 / 1.084 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.307e-05/0.356, allocations: 4 kB / 1.084 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.52e-05/0.3561, allocations: 7.938 kB / 1.084 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.3564, allocations: 23.98 kB / 1.084 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.92e-05/0.3565, allocations: 35.91 kB / 1.084 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.723e-05/0.3566, allocations: 15.98 kB / 1.084 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.196e-05/0.3566, allocations: 15.92 kB / 1.084 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.939e-05/0.3567, allocations: 19.92 kB / 1.084 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.3567, allocations: 4 kB / 1.084 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.805e-05/0.3567, allocations: 19.98 kB / 1.084 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.755e-05/0.3568, allocations: 7.984 kB / 1.084 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.2e-05/0.3568, allocations: 19.88 kB / 1.084 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001045/0.3569, allocations: 27.95 kB / 1.084 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3569, allocations: 7.938 kB / 1.084 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3569, allocations: 0 / 1.084 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.357, allocations: 0 / 1.084 GB, free: 11.68 MB / 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.0005414/0.3575, allocations: 351.7 kB / 1.085 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3575, allocations: 12.03 kB / 1.085 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.3576, allocations: 8.844 kB / 1.085 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.3577, allocations: 168.4 kB / 1.085 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.3578, allocations: 8.312 kB / 1.085 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.3578, allocations: 384 / 1.085 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.358, allocations: 66.22 kB / 1.085 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.358, allocations: 192 / 1.085 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.3581, allocations: 3.938 kB / 1.085 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.3581, allocations: 0 / 1.085 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.3583, allocations: 47.95 kB / 1.085 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004543/0.3587, allocations: 288.6 kB / 1.085 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.3591, allocations: 58.48 kB / 1.085 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.3592, allocations: 32.89 kB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003531/0.3596, allocations: 393.5 kB / 1.086 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.3596, allocations: 38.56 kB / 1.086 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3596, allocations: 0 / 1.086 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0003972/0.36, allocations: 93.56 kB / 1.086 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.3601, allocations: 51.41 kB / 1.086 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.3602, allocations: 117.8 kB / 1.086 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3602, allocations: 25.7 kB / 1.086 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.117e-05/0.3603, allocations: 80.14 kB / 1.086 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.3603, allocations: 7.906 kB / 1.086 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.3604, allocations: 17.7 kB / 1.086 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.3605, allocations: 322.8 kB / 1.086 GB, free: 9.223 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.823e-05/0.3606, allocations: 11.98 kB / 1.086 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.486e-05/0.3607, allocations: 27.97 kB / 1.086 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.3609, allocations: 53.08 kB / 1.086 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3609, allocations: 0 / 1.086 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002279/0.3611, allocations: 81.5 kB / 1.087 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.3612, allocations: 4 kB / 1.087 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3612, allocations: 0 / 1.087 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.3612, allocations: 4 kB / 1.087 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.342e-05/0.3613, allocations: 11.98 kB / 1.087 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3613, allocations: 0 / 1.087 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.764e-05/0.3614, allocations: 7.984 kB / 1.087 GB, free: 9.016 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.3614, allocations: 0 / 1.087 GB, free: 9.016 MB / 0.8419 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 9.997e-05/0.3615, allocations: 117.8 kB / 1.087 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.3615, allocations: 0 / 1.087 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002862/0.3618, allocations: 97.72 kB / 1.087 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.3618, allocations: 0 / 1.087 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3618, allocations: 0 / 1.087 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3618, allocations: 0 / 1.087 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.362, allocations: 177.6 kB / 1.087 GB, free: 8.562 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3621, allocations: 0 / 1.087 GB, free: 8.562 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.803e-05/0.3621, allocations: 11.98 kB / 1.087 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3621, allocations: 3.938 kB / 1.087 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.3622, allocations: 4 kB / 1.087 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.093e-06/0.3622, allocations: 0 / 1.087 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.3622, allocations: 7.984 kB / 1.087 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.3625, allocations: 167.5 kB / 1.087 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.3625, allocations: 77.11 kB / 1.087 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.3625, allocations: 8 kB / 1.087 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.492e-05/0.3626, allocations: 11.92 kB / 1.087 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.3627, allocations: 11.98 kB / 1.087 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.3627, allocations: 0 / 1.087 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.41e-05/0.3628, allocations: 87.28 kB / 1.087 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of sort global known variables: time 9e-08/0.3628, allocations: 0 / 1.087 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002264/0.363, allocations: 8 kB / 1.087 GB, free: 8.137 MB / 0.8419 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.000188/0.3632, allocations: 111.2 kB / 1.087 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000242/0.3635, allocations: 43.95 kB / 1.087 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3635, allocations: 4 kB / 1.087 GB, free: 7.973 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.921e-05/0.3636, allocations: 23.92 kB / 1.088 GB, free: 7.949 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.3639, allocations: 19.86 kB / 1.088 GB, free: 7.93 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003719/0.3643, allocations: 151.4 kB / 1.088 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.3647, allocations: 0.6846 MB / 1.088 GB, free: 7.039 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.306e-05/0.3647, allocations: 11.44 kB / 1.088 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of SimCode: time 3.3e-07/0.3647, allocations: 0 / 1.088 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of Templates: time 0.002704/0.3674, allocations: 0.7943 MB / 1.089 GB, free: 6.234 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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