Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Factorial.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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 200.6 kB / 16.79 MB, free: 6.809 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.392/1.392, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.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.312/2.312, allocations: 390.2 MB / 0.6649 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001353, allocations: 68.03 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.632/0.6334, allocations: 140.4 MB / 0.9496 GB, free: 9.555 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002295/0.6357, allocations: 1.572 MB / 0.9511 GB, free: 8.316 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003288/0.636, allocations: 117.6 kB / 0.9512 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.598e-05/0.6361, allocations: 1.375 kB / 0.9512 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.196e-05/0.6361, allocations: 7.938 kB / 0.9512 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.638e-05/0.6362, allocations: 0 / 0.9512 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/0.6363, allocations: 21.45 kB / 0.9513 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.53e-05/0.6364, allocations: 27.73 kB / 0.9513 GB, free: 8.188 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.742e-05/0.6365, allocations: 12.11 kB / 0.9513 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.792e-05/0.6365, allocations: 8.266 kB / 0.9513 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.23e-05/0.6366, allocations: 17.3 kB / 0.9513 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.6366, allocations: 1.531 kB / 0.9513 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.235e-05/0.6367, allocations: 17.64 kB / 0.9513 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.232e-05/0.6367, allocations: 5.344 kB / 0.9513 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.324e-05/0.6367, allocations: 10.31 kB / 0.9513 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.307e-05/0.6368, allocations: 29.75 kB / 0.9514 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.6368, allocations: 1.281 kB / 0.9514 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6368, allocations: 0 / 0.9514 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.6368, allocations: 0 / 0.9514 GB, free: 8.117 MB / 0.7169 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.000371/0.6372, allocations: 341.3 kB / 0.9517 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.6372, allocations: 9.969 kB / 0.9517 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.6373, allocations: 2.312 kB / 0.9517 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.636e-05/0.6373, allocations: 181.4 kB / 0.9519 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.6374, allocations: 1.688 kB / 0.9519 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.6374, allocations: 3.031 kB / 0.9519 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/0.6375, allocations: 56 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.6376, allocations: 1.188 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.6376, allocations: 7.938 kB / 0.952 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.6376, allocations: 1.312 kB / 0.952 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.6378, allocations: 41.11 kB / 0.952 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002993/0.6381, allocations: 263.3 kB / 0.9522 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.6384, allocations: 57.27 kB / 0.9523 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.6386, allocations: 34.16 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.6387, allocations: 88.3 kB / 0.9524 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.6387, allocations: 35.69 kB / 0.9525 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.6387, allocations: 0 / 0.9525 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003793/0.6391, allocations: 98.56 kB / 0.9525 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.6391, allocations: 51.41 kB / 0.9526 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.118e-05/0.6392, allocations: 106.8 kB / 0.9527 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.664e-06/0.6392, allocations: 25.7 kB / 0.9527 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.477e-05/0.6392, allocations: 86.52 kB / 0.9528 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.6392, allocations: 9.25 kB / 0.9528 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.6393, allocations: 12.41 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.304e-05/0.6393, allocations: 319.7 kB / 0.9531 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-05/0.6394, allocations: 15.23 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.713e-05/0.6395, allocations: 26.67 kB / 0.9532 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.6397, allocations: 50.14 kB / 0.9532 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.6397, allocations: 5.188 kB / 0.9532 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001987/0.6399, allocations: 75.8 kB / 0.9533 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.6399, allocations: 5.188 kB / 0.9533 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.6399, allocations: 0 / 0.9533 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.6399, allocations: 0 / 0.9533 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.037e-05/0.64, allocations: 16.67 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.64, allocations: 0 / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.54e-05/0.6401, allocations: 7.75 kB / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.6401, allocations: 0.9062 kB / 0.9533 GB, free: 6.137 MB / 0.7169 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.019e-05/0.6402, allocations: 116.8 kB / 0.9534 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.6402, allocations: 1.344 kB / 0.9534 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002415/0.6404, allocations: 90.48 kB / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.6404, allocations: 0 / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.6404, allocations: 0 / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.6405, allocations: 1.188 kB / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.6406, allocations: 164.2 kB / 0.9537 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.6406, allocations: 0 / 0.9537 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.405e-05/0.6407, allocations: 11.39 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.6407, allocations: 0 / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.6407, allocations: 1.094 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.6407, allocations: 0.9375 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.6407, allocations: 4 kB / 0.9537 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.6409, allocations: 171.3 kB / 0.9539 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.679e-05/0.641, allocations: 86.78 kB / 0.9539 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.641, allocations: 0 / 0.9539 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.189e-05/0.6411, allocations: 3.5 kB / 0.9539 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.6411, allocations: 10.83 kB / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.6411, allocations: 9.281 kB / 0.954 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.143e-05/0.6411, allocations: 85.94 kB / 0.954 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6411, allocations: 0 / 0.954 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002261/0.6414, allocations: 15.67 kB / 0.9541 GB, free: 5.371 MB / 0.7169 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,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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 (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.000118/0.6415, allocations: 107.5 kB / 0.9542 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002218/0.6417, allocations: 44.73 kB / 0.9542 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.6417, allocations: 4 kB / 0.9542 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.6418, allocations: 26.06 kB / 0.9542 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.6421, allocations: 8.234 kB / 0.9542 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002531/0.6424, allocations: 144.1 kB / 0.9544 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.966e-05/0.6425, allocations: 0.6821 MB / 0.955 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.6425, allocations: 9.719 kB / 0.9551 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.6425, allocations: 4 kB / 0.9551 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of Templates: time 0.002016/0.6445, allocations: 0.7213 MB / 0.9558 GB, free: 4.012 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches