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.00115/0.00115, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.001151/0.001151, allocations: 191 kB / 17.29 MB, free: 5.516 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.197/1.197, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.25/2.25, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 72.28 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2461, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00168/0.2479, allocations: 0.5924 MB / 1.027 GB, free: 1.461 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000285/0.2482, allocations: 63.7 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.875e-05/0.2482, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.497e-05/0.2482, allocations: 4 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.629e-06/0.2482, allocations: 0 / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002882/0.2485, allocations: 19.92 kB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.219e-05/0.2486, allocations: 31.97 kB / 1.027 GB, free: 1.344 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.2487, allocations: 3.984 kB / 1.027 GB, free: 1.34 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.77e-05/0.2487, allocations: 4 kB / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 2.812e-05/0.2487, allocations: 15.98 kB / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.2487, allocations: 0 / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.009e-05/0.2488, allocations: 19.98 kB / 1.027 GB, free: 1.301 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.958e-05/0.2489, allocations: 19.92 kB / 1.027 GB, free: 1.281 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.394e-05/0.2489, allocations: 11.92 kB / 1.027 GB, free: 1.27 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.475e-05/0.249, allocations: 35.89 kB / 1.028 GB, free: 1.234 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.249, allocations: 0 / 1.028 GB, free: 1.234 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.372e-06/0.249, allocations: 0 / 1.028 GB, free: 1.234 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.249, allocations: 0 / 1.028 GB, free: 1.234 MB / 0.795 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.00033/0.2494, allocations: 335.6 kB / 1.028 GB, free: 0.8555 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2494, allocations: 12.03 kB / 1.028 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.2494, allocations: 0.9375 kB / 1.028 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.633e-05/0.2495, allocations: 170.7 kB / 1.028 GB, free: 0.6406 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.2496, allocations: 4.375 kB / 1.028 GB, free: 0.6367 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.2496, allocations: 8.375 kB / 1.028 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.2497, allocations: 66.22 kB / 1.028 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.2497, allocations: 192 / 1.028 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.2497, allocations: 3.938 kB / 1.028 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2498, allocations: 4 kB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.2499, allocations: 99.81 kB / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001346/0.25, allocations: 173.6 kB / 1.028 GB, free: 240 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.2501, allocations: 78.42 kB / 1.028 GB, free: 152 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.024e-05/0.2502, allocations: 36.78 kB / 1.028 GB, free: 112 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000294/0.2505, allocations: 405.5 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.2505, allocations: 30.56 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.2505, allocations: 0 / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002132/0.2507, allocations: 121.8 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.2508, allocations: 55.41 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.467e-05/0.2508, allocations: 101.8 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.2508, allocations: 25.7 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.201e-05/0.2509, allocations: 84.14 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.2509, allocations: 23.73 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.698e-05/0.2509, allocations: 33.7 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.686e-05/0.251, allocations: 314.8 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.232e-05/0.2511, allocations: 15.98 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.307e-05/0.2511, allocations: 27.98 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.168e-05/0.2512, allocations: 56.83 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2512, allocations: 4 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000118/0.2513, allocations: 93.45 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2514, allocations: 12 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2514, allocations: 3.938 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.2514, allocations: 0 / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.226e-05/0.2515, allocations: 19.98 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2515, allocations: 0 / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.915e-05/0.2515, allocations: 4 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.2515, allocations: 4 kB / 1.03 GB, free: 14.54 MB / 0.8106 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.0001046/0.2516, allocations: 125.8 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.2517, allocations: 7.906 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.2519, allocations: 134.1 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.2519, allocations: 0 / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2519, allocations: 0 / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.2519, allocations: 7.969 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.252, allocations: 173.6 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.252, allocations: 0 / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.044e-05/0.2521, allocations: 15.98 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2521, allocations: 7.938 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.2521, allocations: 4 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2521, allocations: 4 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2521, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.2523, allocations: 129 kB / 1.03 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.2523, allocations: 81.05 kB / 1.03 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.2524, allocations: 0 / 1.03 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.648e-05/0.2524, allocations: 8 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.516e-05/0.2524, allocations: 7.984 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.2524, allocations: 3.938 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.396e-05/0.2525, allocations: 79.28 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2525, allocations: 4 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001851/0.2526, allocations: 16 kB / 1.031 GB, free: 13.64 MB / 0.8106 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.000183/0.2528, allocations: 115.2 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001248/0.253, allocations: 59.91 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.253, allocations: 4 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.463e-05/0.253, allocations: 39.91 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.2532, allocations: 9.375 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002273/0.2534, allocations: 144.8 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.2536, allocations: 0.686 MB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.685e-05/0.2537, allocations: 39.78 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.2537, allocations: 23.42 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.2537, allocations: 0 / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of Templates: time 0.00235/0.2561, allocations: 0.6062 MB / 1.032 GB, free: 11.86 MB / 0.8106 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 -s cvode -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