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.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: 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.001449/0.001449, allocations: 105 kB / 16.41 MB, free: 6.465 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.001645/0.001645, allocations: 187 kB / 17.34 MB, free: 5.719 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.689/2.689, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 67.84 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9068/0.9083, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002281/0.9106, allocations: 0.5871 MB / 1.209 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003697/0.911, allocations: 59.78 kB / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.748e-05/0.9111, allocations: 0 / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.778e-05/0.9111, allocations: 3.984 kB / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.784e-06/0.9112, allocations: 3.938 kB / 1.209 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.9115, allocations: 15.98 kB / 1.209 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.9117, allocations: 27.97 kB / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.875e-05/0.9117, allocations: 4 kB / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.622e-05/0.9118, allocations: 19.92 kB / 1.209 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.864e-05/0.9118, allocations: 11.98 kB / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.9119, allocations: 0 / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.912, allocations: 15.98 kB / 1.209 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.491e-05/0.912, allocations: 11.98 kB / 1.209 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.365e-05/0.9121, allocations: 15.92 kB / 1.209 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.9122, allocations: 35.89 kB / 1.209 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.9122, allocations: 0 / 1.209 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.094e-06/0.9122, allocations: 0 / 1.209 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.9123, allocations: 0 / 1.209 GB, free: 12.84 MB / 0.9356 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.0004391/0.9127, allocations: 339.5 kB / 1.21 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.9128, allocations: 15.97 kB / 1.21 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.9128, allocations: 12.84 kB / 1.21 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.9129, allocations: 168.2 kB / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.913, allocations: 384 / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.913, allocations: 4.375 kB / 1.21 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.9132, allocations: 58.23 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.9132, allocations: 4.172 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.9132, allocations: 11.92 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.9132, allocations: 8 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.9134, allocations: 99.81 kB / 1.21 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002103/0.9136, allocations: 177.6 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.9138, allocations: 70.55 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.105e-05/0.9138, allocations: 24.84 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004149/0.9142, allocations: 405.8 kB / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.9143, allocations: 42.5 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.9143, allocations: 0 / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0002673/0.9146, allocations: 117.4 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.9146, allocations: 55.41 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.902e-05/0.9147, allocations: 89.86 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.9147, allocations: 25.7 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.885e-05/0.9147, allocations: 88.14 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.9148, allocations: 25.52 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.052e-05/0.9148, allocations: 29.7 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.915, allocations: 322.8 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.012e-05/0.915, allocations: 23.92 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.985e-05/0.9151, allocations: 24.36 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.9152, allocations: 56.83 kB / 1.211 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.9152, allocations: 0 / 1.211 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001471/0.9153, allocations: 93.61 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.9154, allocations: 9.656 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9154, allocations: 3.938 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.9154, allocations: 0 / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.9155, allocations: 23.98 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.9155, allocations: 0 / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.781e-05/0.9156, allocations: 7.844 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.9156, allocations: 4 kB / 1.212 GB, free: 10.13 MB / 0.9356 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.0001753/0.9157, allocations: 129.8 kB / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.9158, allocations: 4 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002319/0.916, allocations: 117.5 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.916, allocations: 0 / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.916, allocations: 4 kB / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.916, allocations: 0 / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.9162, allocations: 181.5 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.9162, allocations: 0 / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.286e-05/0.9163, allocations: 23.92 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.9163, allocations: 3.938 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.9163, allocations: 3.938 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.9163, allocations: 0 / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.9163, allocations: 4 kB / 1.212 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.9165, allocations: 125 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.9166, allocations: 84.95 kB / 1.212 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.9166, allocations: 8 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.425e-05/0.9166, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.9167, allocations: 7.984 kB / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.9167, allocations: 8 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.323e-05/0.9167, allocations: 75.28 kB / 1.212 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9167, allocations: 0 / 1.212 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002163/0.9169, allocations: 8 kB / 1.212 GB, free: 9.25 MB / 0.9356 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.0002205/0.9172, allocations: 130.7 kB / 1.212 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001594/0.9173, allocations: 60.45 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.9173, allocations: 0 / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.274e-05/0.9174, allocations: 35.92 kB / 1.213 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.9176, allocations: 8.422 kB / 1.213 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003568/0.9179, allocations: 174.5 kB / 1.213 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.9183, allocations: 0.6807 MB / 1.213 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.888e-05/0.9183, allocations: 23.42 kB / 1.213 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.9183, allocations: 0 / 1.213 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of Templates: time 0.002916/0.9213, allocations: 0.9518 MB / 1.214 GB, free: 7.129 MB / 0.9356 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/jenkins1/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