Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [: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 10.0.0-master/package.mo): time 1.986/1.986, allocations: 390.4 MB / 397.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 185.2 kB / 490.8 MB, free: 1.918 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 221.4 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009312/0.0009313, allocations: 84.69 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.796e-06/8.806e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2399, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5783/0.8182, allocations: 148.5 MB / 1.357 GB, free: 17.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.8185, allocations: 74.75 kB / 1.357 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.0009214/0.8194, allocations: 215 kB / 1.357 GB, free: 17.14 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.8194, allocations: 1.344 kB / 1.357 GB, free: 17.14 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001932/0.8196, allocations: 315.2 kB / 1.357 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.8197, allocations: 8.219 kB / 1.357 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.082e-05/0.8197, allocations: 1.906 kB / 1.357 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.351e-05/0.8197, allocations: 160.6 kB / 1.357 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.8198, allocations: 2.219 kB / 1.357 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-06/0.8198, allocations: 3.906 kB / 1.357 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.229e-05/0.8198, allocations: 4.141 kB / 1.357 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.489e-05/0.8199, allocations: 34.28 kB / 1.357 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.8199, allocations: 2.562 kB / 1.357 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.802e-06/0.8199, allocations: 0 / 1.357 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.8199, allocations: 0 / 1.357 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.367e-05/0.82, allocations: 127.6 kB / 1.358 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.615e-05/0.82, allocations: 30.69 kB / 1.358 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.617e-05/0.8201, allocations: 11.5 kB / 1.358 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.8202, allocations: 82.23 kB / 1.358 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.04e-05/0.8202, allocations: 31.5 kB / 1.358 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.8202, allocations: 3.938 kB / 1.358 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001203/0.8203, allocations: 38.52 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.414e-05/0.8204, allocations: 51.41 kB / 1.358 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.913e-05/0.8204, allocations: 98.58 kB / 1.358 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.42e-06/0.8204, allocations: 25.7 kB / 1.358 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.108e-05/0.8204, allocations: 80.14 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.8204, allocations: 1.656 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.8205, allocations: 0 / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.8206, allocations: 319.3 kB / 1.358 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.265e-06/0.8206, allocations: 2.453 kB / 1.358 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.193e-06/0.8206, allocations: 2.25 kB / 1.358 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.322e-05/0.8206, allocations: 9.984 kB / 1.358 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.8206, allocations: 0 / 1.358 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.519e-05/0.8207, allocations: 35.67 kB / 1.358 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/0.8207, allocations: 8.016 kB / 1.358 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.8207, allocations: 0 / 1.358 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.197e-06/0.8207, allocations: 1.188 kB / 1.358 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.682e-05/0.8208, allocations: 5.016 kB / 1.358 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.8208, allocations: 2.656 kB / 1.358 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.261e-05/0.8208, allocations: 0 / 1.358 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-06/0.8208, allocations: 1.719 kB / 1.358 GB, free: 31.57 MB / 0.8386 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 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.074e-05/0.8209, allocations: 109.6 kB / 1.358 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-06/0.8209, allocations: 1.438 kB / 1.358 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.922e-05/0.821, allocations: 46.89 kB / 1.358 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.821, allocations: 5.359 kB / 1.358 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.821, allocations: 0 / 1.358 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.821, allocations: 0.7969 kB / 1.358 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.394e-05/0.8211, allocations: 133.3 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.8211, allocations: 6.5 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.284e-05/0.8211, allocations: 6.891 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.8211, allocations: 1.062 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.8211, allocations: 0.5625 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.8211, allocations: 1.156 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.8211, allocations: 0.7969 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.605e-05/0.8212, allocations: 68.22 kB / 1.359 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.244e-05/0.8212, allocations: 77.91 kB / 1.359 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-06/0.8212, allocations: 1.734 kB / 1.359 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.8212, allocations: 5.031 kB / 1.359 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.136e-05/0.8213, allocations: 1.625 kB / 1.359 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.8213, allocations: 1.625 kB / 1.359 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.455e-05/0.8213, allocations: 75.28 kB / 1.359 GB, free: 31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001963/0.8215, allocations: 9.266 kB / 1.359 GB, free: 31 MB / 0.8386 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 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001283/0.8216, allocations: 110.1 kB / 1.359 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 5.147e-05/0.8217, allocations: 7.734 kB / 1.359 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.8217, allocations: 4.062 kB / 1.359 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.21e-05/0.8217, allocations: 8.094 kB / 1.359 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.8e-05/0.8218, allocations: 5.828 kB / 1.359 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000119/0.8219, allocations: 49.83 kB / 1.359 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.8222, allocations: 0.684 MB / 1.36 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.8222, allocations: 0 / 1.36 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of Templates: time 0.001879/0.824, allocations: 332.8 kB / 1.36 GB, free: 30.09 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches