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 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.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.001203/0.001203, allocations: 116.7 kB / 16.37 MB, free: 6.012 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.001149/0.001149, allocations: 191.1 kB / 17.3 MB, free: 5.613 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: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.196/2.196, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.83 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2466, allocations: 153 MB / 1.027 GB, free: 2.098 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002711/0.2493, allocations: 1.534 MB / 1.028 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003713/0.2497, allocations: 148.3 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.719e-05/0.2498, allocations: 0 / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.095e-05/0.2498, allocations: 0 / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.782e-05/0.2499, allocations: 3.938 kB / 1.028 GB, free: 412 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.2502, allocations: 35.91 kB / 1.028 GB, free: 376 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.755e-05/0.2503, allocations: 35.86 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.2504, allocations: 19.97 kB / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.897e-05/0.2504, allocations: 12 kB / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.65e-05/0.2505, allocations: 15.92 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.2505, allocations: 7.938 kB / 1.028 GB, free: 284 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.312e-05/0.2506, allocations: 19.98 kB / 1.029 GB, free: 264 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.769e-05/0.2506, allocations: 11.97 kB / 1.029 GB, free: 252 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.325e-05/0.2506, allocations: 11.94 kB / 1.029 GB, free: 240 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.2508, allocations: 47.81 kB / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2508, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.864e-06/0.2508, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2508, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 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.0004957/0.2513, allocations: 355.4 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2513, allocations: 8.031 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.278e-05/0.2514, allocations: 4.938 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.2515, allocations: 180.2 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.2515, allocations: 384 / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.2516, allocations: 4.375 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.2517, allocations: 58.23 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.2517, allocations: 192 / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.2518, allocations: 11.94 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2518, allocations: 0 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.2519, allocations: 43.95 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003344/0.2523, allocations: 280.7 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.2526, allocations: 62.53 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.218e-05/0.2527, allocations: 24.91 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002395/0.2529, allocations: 397.5 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.253, allocations: 34.55 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.253, allocations: 0 / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003396/0.2533, allocations: 101.5 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/0.2534, allocations: 55.41 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.836e-05/0.2534, allocations: 109.8 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.2535, allocations: 29.7 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.393e-05/0.2535, allocations: 88.12 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.2535, allocations: 3.906 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/0.2536, allocations: 21.66 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.2537, allocations: 322.7 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.469e-05/0.2538, allocations: 23.97 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.376e-05/0.2539, allocations: 19.98 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.254, allocations: 48.75 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.254, allocations: 0 / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002018/0.2542, allocations: 73.98 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.2543, allocations: 8 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2543, allocations: 3.984 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.2543, allocations: 4 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.733e-05/0.2544, allocations: 11.98 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.2544, allocations: 4 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.532e-05/0.2544, allocations: 11.89 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.2545, allocations: 0 / 1.031 GB, free: 13.51 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: 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 7.741e-05/0.2545, allocations: 113.7 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.2546, allocations: 8 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.2548, allocations: 85.48 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.2548, allocations: 7.984 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2549, allocations: 0 / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2549, allocations: 0 / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.255, allocations: 173.7 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.255, allocations: 0 / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.023e-05/0.2551, allocations: 11.98 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2551, allocations: 4 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.2551, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.2551, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2552, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002311/0.2554, allocations: 179.3 kB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.2554, allocations: 81.11 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.2554, allocations: 0 / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.889e-05/0.2555, allocations: 8 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.102e-05/0.2556, allocations: 7.984 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.2556, allocations: 4 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.396e-05/0.2556, allocations: 87.27 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2556, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000211/0.2559, allocations: 8 kB / 1.032 GB, free: 12.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: 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.0001256/0.256, allocations: 111.2 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000206/0.2562, allocations: 47.95 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2562, allocations: 0 / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.08e-05/0.2563, allocations: 31.91 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.2566, allocations: 11.81 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002587/0.2568, allocations: 117.5 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.257, allocations: 0.6885 MB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.657e-05/0.2571, allocations: 4 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.2571, allocations: 11.44 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.2571, allocations: 0 / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of Templates: time 0.002617/0.2597, allocations: 0.7779 MB / 1.033 GB, free: 10.79 MB / 0.8106 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=480 -s cvode -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