Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.442/1.442, allocations: 249.5 MB / 257 MB, free: 6.891 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.001109/0.001109, allocations: 176.9 kB / 316.3 MB, free: 3.219 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.856/1.856, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0008122/0.000812, allocations: 86.59 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.222e-05/2.224e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2514, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8777/1.129, allocations: 131.2 MB / 1.013 GB, free: 6.52 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/1.13, allocations: 76.75 kB / 1.013 GB, free: 6.473 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001201/1.131, allocations: 0.5255 MB / 1.014 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.373e-06/1.131, allocations: 0 / 1.014 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.213e-06/1.131, allocations: 0 / 1.014 GB, free: 5.988 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002913/1.131, allocations: 315.3 kB / 1.014 GB, free: 5.641 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/1.131, allocations: 8.031 kB / 1.014 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/1.131, allocations: 0 / 1.014 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/1.131, allocations: 163 kB / 1.014 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/1.131, allocations: 4 kB / 1.014 GB, free: 5.43 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/1.131, allocations: 4 kB / 1.014 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.604e-05/1.131, allocations: 7.938 kB / 1.014 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.282e-05/1.132, allocations: 29.69 kB / 1.014 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/1.132, allocations: 0 / 1.014 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/1.132, allocations: 0 / 1.014 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/1.132, allocations: 0 / 1.014 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001582/1.132, allocations: 134.5 kB / 1.015 GB, free: 5.219 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.767e-05/1.132, allocations: 18.61 kB / 1.015 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.631e-05/1.132, allocations: 16.3 kB / 1.015 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001665/1.132, allocations: 85.03 kB / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/1.132, allocations: 34.56 kB / 1.015 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 3.337e-06/1.132, allocations: 0 / 1.015 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.000207/1.132, allocations: 33.64 kB / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/1.132, allocations: 54.72 kB / 1.015 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.218e-05/1.132, allocations: 88.98 kB / 1.015 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/1.132, allocations: 33.73 kB / 1.015 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/1.132, allocations: 80.89 kB / 1.015 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/1.132, allocations: 0 / 1.015 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/1.132, allocations: 0 / 1.015 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001538/1.133, allocations: 310.8 kB / 1.015 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.357e-06/1.133, allocations: 0 / 1.015 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.204e-06/1.133, allocations: 7.5 kB / 1.015 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.658e-05/1.133, allocations: 4 kB / 1.015 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/1.133, allocations: 0 / 1.015 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.755e-05/1.133, allocations: 53.58 kB / 1.015 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/1.133, allocations: 4 kB / 1.015 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/1.133, allocations: 0 / 1.015 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/1.133, allocations: 0 / 1.015 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.981e-05/1.133, allocations: 4 kB / 1.015 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/1.133, allocations: 0.875 kB / 1.015 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/1.133, allocations: 7.891 kB / 1.015 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/1.133, allocations: 0 / 1.015 GB, free: 4.32 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,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 8.571e-05/1.133, allocations: 111.1 kB / 1.015 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.766e-06/1.133, allocations: 3.953 kB / 1.015 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/1.133, allocations: 44.89 kB / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/1.133, allocations: 4 kB / 1.016 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/1.133, allocations: 4 kB / 1.016 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/1.133, allocations: 0 / 1.016 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/1.133, allocations: 130.2 kB / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/1.133, allocations: 0 / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.504e-05/1.133, allocations: 7.938 kB / 1.016 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/1.133, allocations: 0 / 1.016 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/1.133, allocations: 4.031 kB / 1.016 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/1.133, allocations: 3.953 kB / 1.016 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.133, allocations: 4 kB / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/1.134, allocations: 63.69 kB / 1.016 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/1.134, allocations: 77.11 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/1.134, allocations: 0 / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.093e-05/1.134, allocations: 0 / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/1.134, allocations: 11.94 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/1.134, allocations: 4.031 kB / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.696e-05/1.134, allocations: 75.28 kB / 1.016 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.5e-07/1.134, allocations: 0 / 1.016 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001953/1.134, allocations: 8 kB / 1.016 GB, free: 3.695 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,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.0002453/1.134, allocations: 103.2 kB / 1.016 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.877e-05/1.134, allocations: 7.938 kB / 1.016 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/1.134, allocations: 0 / 1.016 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.74e-05/1.134, allocations: 15.36 kB / 1.016 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001097/1.134, allocations: 4.703 kB / 1.016 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001978/1.135, allocations: 51.89 kB / 1.016 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/1.135, allocations: 0.6768 MB / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.338e-05/1.135, allocations: 0 / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.332e-05/1.135, allocations: 7.438 kB / 1.017 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of SimCode: time 2.51e-07/1.135, allocations: 0 / 1.017 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of Templates: time 0.002075/1.137, allocations: 309 kB / 1.017 GB, free: 2.488 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches