Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.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_9_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_9_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.00145/0.00145, allocations: 115 kB / 16.37 MB, free: 6.016 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.001503/0.001503, allocations: 193.2 kB / 17.31 MB, free: 5.609 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.216/2.216, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 71.05 kB / 0.814 GB, free: 32.51 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2679, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001749/0.2697, allocations: 0.582 MB / 0.9517 GB, free: 7.488 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002585/0.27, allocations: 71.72 kB / 0.9518 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.767e-05/0.27, allocations: 0 / 0.9518 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.32e-05/0.27, allocations: 0 / 0.9518 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.559e-06/0.27, allocations: 0 / 0.9518 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.2703, allocations: 15.92 kB / 0.9518 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.648e-05/0.2704, allocations: 31.97 kB / 0.9518 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.924e-05/0.2704, allocations: 4 kB / 0.9518 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.823e-05/0.2705, allocations: 11.98 kB / 0.9518 GB, free: 7.355 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 2.828e-05/0.2705, allocations: 15.98 kB / 0.9518 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.2705, allocations: 3.938 kB / 0.9518 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.919e-05/0.2706, allocations: 15.98 kB / 0.9519 GB, free: 7.32 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.802e-05/0.2706, allocations: 15.92 kB / 0.9519 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.2707, allocations: 15.92 kB / 0.9519 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.542e-05/0.2708, allocations: 35.89 kB / 0.9519 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2708, allocations: 0 / 0.9519 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.814e-06/0.2708, allocations: 0 / 0.9519 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.2708, allocations: 4 kB / 0.9519 GB, free: 7.25 MB / 0.7325 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.000358/0.2712, allocations: 332.7 kB / 0.9523 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.2712, allocations: 12.03 kB / 0.9523 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.52e-05/0.2713, allocations: 0.9375 kB / 0.9523 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.913e-05/0.2714, allocations: 176.3 kB / 0.9524 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.2714, allocations: 4.375 kB / 0.9524 GB, free: 6.648 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.2714, allocations: 8.312 kB / 0.9524 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.2716, allocations: 58.23 kB / 0.9525 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2716, allocations: 192 / 0.9525 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.2716, allocations: 11.94 kB / 0.9525 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2716, allocations: 0 / 0.9525 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.2718, allocations: 107.8 kB / 0.9526 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001856/0.272, allocations: 173.6 kB / 0.9528 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.2721, allocations: 70.48 kB / 0.9528 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.654e-05/0.2721, allocations: 32.84 kB / 0.9529 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003129/0.2725, allocations: 405.5 kB / 0.9533 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.2725, allocations: 34.56 kB / 0.9533 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.2725, allocations: 0 / 0.9533 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0002286/0.2727, allocations: 117.8 kB / 0.9534 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.2728, allocations: 55.41 kB / 0.9535 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.756e-05/0.2728, allocations: 97.77 kB / 0.9536 GB, free: 5.305 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.2728, allocations: 25.7 kB / 0.9536 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.38e-05/0.2729, allocations: 80.14 kB / 0.9537 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.2729, allocations: 19.75 kB / 0.9537 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.273, allocations: 37.7 kB / 0.9537 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.509e-05/0.2731, allocations: 322.8 kB / 0.954 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.801e-05/0.2731, allocations: 19.98 kB / 0.954 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.667e-05/0.2731, allocations: 24.36 kB / 0.9541 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.834e-05/0.2732, allocations: 52.84 kB / 0.9541 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2732, allocations: 0 / 0.9541 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001372/0.2734, allocations: 101.5 kB / 0.9542 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.2734, allocations: 8 kB / 0.9542 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2734, allocations: 7.875 kB / 0.9542 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.2734, allocations: 0 / 0.9542 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.2735, allocations: 31.92 kB / 0.9543 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2736, allocations: 0 / 0.9543 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.761e-05/0.2736, allocations: 0 / 0.9543 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.2736, allocations: 4 kB / 0.9543 GB, free: 4.551 MB / 0.7325 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 9.536e-05/0.2737, allocations: 121.8 kB / 0.9544 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.185e-05/0.2737, allocations: 3.906 kB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002103/0.2739, allocations: 137.3 kB / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2739, allocations: 4 kB / 0.9545 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2739, allocations: 0 / 0.9545 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2739, allocations: 0 / 0.9545 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.2741, allocations: 173.6 kB / 0.9547 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2741, allocations: 4 kB / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.444e-05/0.2742, allocations: 15.98 kB / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2742, allocations: 7.938 kB / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.2742, allocations: 0 / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2742, allocations: 0 / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2742, allocations: 0 / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/0.2744, allocations: 132.9 kB / 0.9548 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.605e-05/0.2744, allocations: 81.05 kB / 0.9549 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.2744, allocations: 4 kB / 0.9549 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.49e-05/0.2744, allocations: 0 / 0.9549 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.2745, allocations: 11.98 kB / 0.9549 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.2745, allocations: 0 / 0.9549 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.077e-05/0.2745, allocations: 81.39 kB / 0.955 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2745, allocations: 0 / 0.955 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001928/0.2747, allocations: 16 kB / 0.955 GB, free: 3.668 MB / 0.7325 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.0001617/0.2749, allocations: 119.2 kB / 0.9551 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001335/0.275, allocations: 56.45 kB / 0.9552 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.275, allocations: 0 / 0.9552 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.236e-05/0.2751, allocations: 35.98 kB / 0.9552 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.2753, allocations: 6.156 kB / 0.9552 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002474/0.2755, allocations: 160.8 kB / 0.9554 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.2757, allocations: 0.6844 MB / 0.956 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.203e-05/0.2758, allocations: 35.94 kB / 0.9561 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.289e-05/0.2758, allocations: 15.44 kB / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.2759, allocations: 0 / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of Templates: time 0.002582/0.2784, allocations: 0.6134 MB / 0.9567 GB, free: 1.891 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches