Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_10_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.00141/0.001411, allocations: 108 kB / 15.61 MB, free: 148 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.001495/0.001496, allocations: 196.4 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.451/1.451, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.787/2.787, allocations: 437 MB / 0.7104 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002739/0.002739, allocations: 63.89 kB / 0.8692 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7065/0.7092, allocations: 151.6 MB / 1.017 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003606/0.7129, allocations: 1.518 MB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000477/0.7134, allocations: 144.3 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.24e-05/0.7135, allocations: 0 / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.233e-05/0.7135, allocations: 3.984 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.81e-05/0.7136, allocations: 3.938 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.714, allocations: 35.91 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.706e-05/0.7141, allocations: 35.91 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.7142, allocations: 16 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.827e-05/0.7142, allocations: 15.92 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.07e-05/0.7143, allocations: 15.92 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.7143, allocations: 4 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.923e-05/0.7144, allocations: 19.98 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.965e-05/0.7145, allocations: 7.984 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.679e-05/0.7145, allocations: 23.86 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.7147, allocations: 43.88 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.7147, allocations: 0 / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.462e-06/0.7147, allocations: 4 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.213e-05/0.7147, allocations: 0 / 1.019 GB, free: 0.6328 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005804/0.7153, allocations: 349.4 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.7153, allocations: 8.031 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.246e-05/0.7154, allocations: 12.84 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.7156, allocations: 168.3 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.7156, allocations: 4.312 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.7156, allocations: 4.375 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.7159, allocations: 70.2 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.7159, allocations: 192 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.7159, allocations: 3.938 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.7159, allocations: 4 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.7161, allocations: 43.95 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004641/0.7166, allocations: 280.7 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.7169, allocations: 58.53 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.7171, allocations: 28.89 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004386/0.7175, allocations: 401.5 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.7175, allocations: 30.56 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.7176, allocations: 4 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.000471/0.718, allocations: 101.6 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.7181, allocations: 51.41 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.7182, allocations: 113.7 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.7182, allocations: 29.7 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/0.7183, allocations: 84.14 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.7183, allocations: 11.97 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.7184, allocations: 21.7 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.7186, allocations: 322.7 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.32e-05/0.7187, allocations: 15.98 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.539e-05/0.7188, allocations: 23.97 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.7189, allocations: 40.83 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.719, allocations: 7.984 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002297/0.7192, allocations: 77.59 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.7192, allocations: 4 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.7192, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.7193, allocations: 4 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.26e-05/0.7194, allocations: 7.984 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.7194, allocations: 4 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.183e-05/0.7194, allocations: 11.92 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-06/0.7195, allocations: 4 kB / 1.021 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: 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 0.000111/0.7196, allocations: 109.8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.7196, allocations: 11.91 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002753/0.7199, allocations: 81.48 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.7199, allocations: 4.375 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.7199, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.7199, allocations: 4 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.7201, allocations: 169.6 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.7202, allocations: 3.984 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.192e-05/0.7202, allocations: 11.98 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.7202, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.7203, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.7203, allocations: 3.938 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.7203, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002872/0.7206, allocations: 175.4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.495e-05/0.7206, allocations: 89.02 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.7207, allocations: 3.938 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.633e-05/0.7208, allocations: 11.98 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.7208, allocations: 3.984 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.7208, allocations: 4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.494e-05/0.7209, allocations: 83.28 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7209, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002269/0.7211, allocations: 12 kB / 1.022 GB, free: 13.09 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: 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.0001945/0.7213, allocations: 111.2 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002706/0.7216, allocations: 43.95 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7216, allocations: 0 / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.7218, allocations: 31.91 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.7221, allocations: 13.77 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/0.7225, allocations: 113.6 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.7228, allocations: 0.6768 MB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.222e-05/0.7229, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.7229, allocations: 15.44 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.7229, allocations: 0 / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of Templates: time 0.003612/0.7265, allocations: 0.7701 MB / 1.024 GB, free: 11.26 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches