Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.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.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.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 7.0.3-maint.7.0.x/package.mo): time 1.187/1.187, allocations: 249.4 MB / 256.7 MB, free: 7.035 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.0009297/0.0009297, allocations: 181.3 kB / 316 MB, free: 3.551 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.074/1.074, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0007904/0.0007904, allocations: 86.27 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.702e-06/6.723e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1561, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4622/0.6184, allocations: 132.2 MB / 1.014 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001656/0.6186, allocations: 76.25 kB / 1.014 GB, free: 6.672 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002419/0.621, allocations: 0.6201 MB / 1.014 GB, free: 6.152 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.6211, allocations: 0 / 1.014 GB, free: 6.152 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003791/0.6215, allocations: 349.9 kB / 1.015 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.6215, allocations: 8.031 kB / 1.015 GB, free: 5.762 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.6215, allocations: 4 kB / 1.015 GB, free: 5.758 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.6217, allocations: 163 kB / 1.015 GB, free: 5.559 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.6217, allocations: 4 kB / 1.015 GB, free: 5.555 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.6217, allocations: 7.938 kB / 1.015 GB, free: 5.547 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.712e-05/0.6218, allocations: 16.88 kB / 1.015 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.856e-05/0.6219, allocations: 40.75 kB / 1.015 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.6219, allocations: 0 / 1.015 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.6219, allocations: 7.922 kB / 1.015 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.6219, allocations: 0 / 1.015 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004083/0.6223, allocations: 263.9 kB / 1.015 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.6226, allocations: 45.38 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.12e-05/0.6226, allocations: 12.86 kB / 1.015 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.6227, allocations: 89.19 kB / 1.015 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.6228, allocations: 30.56 kB / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.6228, allocations: 0 / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001763/0.623, allocations: 52.66 kB / 1.015 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.623, allocations: 51.41 kB / 1.015 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.036e-05/0.6231, allocations: 96.47 kB / 1.016 GB, free: 4.789 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.6231, allocations: 25.7 kB / 1.016 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.073e-05/0.6231, allocations: 84.14 kB / 1.016 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.6231, allocations: 11.89 kB / 1.016 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.6231, allocations: 0 / 1.016 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.6232, allocations: 313.7 kB / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.907e-05/0.6233, allocations: 10.94 kB / 1.016 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.526e-05/0.6233, allocations: 4 kB / 1.016 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.036e-05/0.6233, allocations: 11.84 kB / 1.016 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6233, allocations: 7.984 kB / 1.016 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.565e-05/0.6234, allocations: 43.89 kB / 1.016 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.6235, allocations: 4 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.6235, allocations: 7.984 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.6235, allocations: 0.75 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.358e-05/0.6236, allocations: 12 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.6236, allocations: 3.984 kB / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.645e-05/0.6237, allocations: 11.94 kB / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.6237, allocations: 7.906 kB / 1.016 GB, free: 4.23 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 (fac.y,fac.u) * 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.85e-05/0.6238, allocations: 101 kB / 1.016 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.6238, allocations: 4 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.6239, allocations: 60.36 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.6239, allocations: 3.938 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.624, allocations: 3.906 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.624, allocations: 0 / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.6241, allocations: 145.9 kB / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.6241, allocations: 4 kB / 1.016 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.601e-05/0.6242, allocations: 11.98 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.6242, allocations: 4 kB / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.6242, allocations: 0 / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.6242, allocations: 0 / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.6242, allocations: 0 / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001332/0.6244, allocations: 153 kB / 1.017 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.6244, allocations: 85.02 kB / 1.017 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.6244, allocations: 3.984 kB / 1.017 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.615e-05/0.6245, allocations: 8 kB / 1.017 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.6246, allocations: 3.984 kB / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.6246, allocations: 4 kB / 1.017 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.222e-05/0.6246, allocations: 82.09 kB / 1.017 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002165/0.6249, allocations: 15.94 kB / 1.017 GB, free: 3.488 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 (fac.y,fac.u) * 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.000133/0.625, allocations: 107.2 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.746e-05/0.6251, allocations: 23.38 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.6251, allocations: 0 / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.171e-05/0.6251, allocations: 19.58 kB / 1.017 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.6253, allocations: 0 / 1.017 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002192/0.6255, allocations: 72.34 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.6258, allocations: 0.6954 MB / 1.018 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of SimCode: time 2.01e-07/0.6258, allocations: 0 / 1.018 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of Templates: time 0.002341/0.6281, allocations: 0.6587 MB / 1.018 GB, free: 1.891 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_Factorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches