Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.188/1.188, allocations: 249.4 MB / 256.7 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009602/0.0009602, allocations: 181.2 kB / 316 MB, free: 3.578 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.065/1.065, allocations: 205.1 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008357/0.0008357, allocations: 101.7 kB / 0.671 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.334e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1564, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4505/0.607, allocations: 132.3 MB / 1.014 GB, free: 6.668 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.6073, allocations: 74.59 kB / 1.014 GB, free: 6.625 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002703/0.61, allocations: 0.7498 MB / 1.015 GB, free: 5.996 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.61, allocations: 0 / 1.015 GB, free: 5.996 MB / 0.6355 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.0003552/0.6104, allocations: 353.5 kB / 1.015 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.6104, allocations: 8.031 kB / 1.015 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.6104, allocations: 7.906 kB / 1.015 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.6106, allocations: 167.1 kB / 1.015 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.6106, allocations: 0 / 1.015 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.6106, allocations: 0 / 1.015 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.461e-05/0.6107, allocations: 18.62 kB / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.18e-05/0.6108, allocations: 51.94 kB / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.6108, allocations: 0 / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.6108, allocations: 7.906 kB / 1.015 GB, free: 5.32 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.6108, allocations: 0 / 1.015 GB, free: 5.32 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003365/0.6112, allocations: 252.3 kB / 1.015 GB, free: 5.051 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.6114, allocations: 44.75 kB / 1.015 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.116e-05/0.6114, allocations: 21.42 kB / 1.015 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002543/0.6117, allocations: 401.6 kB / 1.016 GB, free: 4.5 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.6117, allocations: 30.56 kB / 1.016 GB, free: 4.461 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.6117, allocations: 0 / 1.016 GB, free: 4.461 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001838/0.6119, allocations: 57.08 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.612, allocations: 51.41 kB / 1.016 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.66e-05/0.612, allocations: 99.98 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.612, allocations: 29.7 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.6121, allocations: 84.14 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.6121, allocations: 7.031 kB / 1.016 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.6121, allocations: 0 / 1.016 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.525e-05/0.6122, allocations: 314.8 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.134e-05/0.6122, allocations: 10.86 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.556e-05/0.6123, allocations: 7.625 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.558e-05/0.6123, allocations: 11.38 kB / 1.017 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6123, allocations: 3.906 kB / 1.017 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.725e-05/0.6124, allocations: 45 kB / 1.017 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.6124, allocations: 12 kB / 1.017 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.6124, allocations: 0 / 1.017 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.826e-06/0.6125, allocations: 0 / 1.017 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.234e-05/0.6125, allocations: 15.98 kB / 1.017 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.6126, allocations: 4 kB / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.851e-05/0.6126, allocations: 15.92 kB / 1.017 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.6127, allocations: 7.906 kB / 1.017 GB, free: 3.66 MB / 0.6355 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,falFac.k) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.699e-05/0.6127, allocations: 104.1 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.6127, allocations: 0 / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.6129, allocations: 64.73 kB / 1.017 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.6129, allocations: 3.906 kB / 1.017 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.6129, allocations: 0 / 1.017 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.6129, allocations: 0 / 1.017 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.613, allocations: 145.6 kB / 1.017 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.613, allocations: 4 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-05/0.6131, allocations: 11.98 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.6131, allocations: 4 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.6132, allocations: 0 / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.6132, allocations: 0 / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.6132, allocations: 0 / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001318/0.6133, allocations: 153.4 kB / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.103e-05/0.6133, allocations: 81.02 kB / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.6134, allocations: 0 / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.6135, allocations: 11.98 kB / 1.017 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.6135, allocations: 11.92 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.6135, allocations: 0 / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.166e-05/0.6136, allocations: 86.59 kB / 1.017 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002086/0.6138, allocations: 15.94 kB / 1.017 GB, free: 2.918 MB / 0.6355 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 (falFac.y,falFac.k) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001419/0.6139, allocations: 115.2 kB / 1.017 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.355e-05/0.614, allocations: 18.97 kB / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.614, allocations: 0 / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.705e-05/0.6141, allocations: 15.69 kB / 1.017 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001578/0.6142, allocations: 17.94 kB / 1.017 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002071/0.6144, allocations: 71.66 kB / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.6147, allocations: 0.699 MB / 1.018 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of SimCode: time 2.21e-07/0.6147, allocations: 0 / 1.018 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of Templates: time 0.002345/0.6171, allocations: 0.6874 MB / 1.019 GB, free: 1.273 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_FallingFactorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches