Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_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.001661/0.001661, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001851/0.001851, allocations: 195.2 kB / 16.14 MB, free: 6.637 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.536/1.536, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.887/2.887, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.89 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.635/0.637, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003193/0.6402, allocations: 1.579 MB / 1.018 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004007/0.6406, allocations: 124.5 kB / 1.018 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.565e-05/0.6407, allocations: 0 / 1.018 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.521e-05/0.6407, allocations: 3.984 kB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.34e-05/0.6408, allocations: 0 / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.641, allocations: 27.91 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.981e-05/0.6411, allocations: 23.98 kB / 1.018 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.033e-05/0.6411, allocations: 11.94 kB / 1.018 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.199e-05/0.6412, allocations: 11.92 kB / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.628e-05/0.6412, allocations: 16 kB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.6413, allocations: 3.984 kB / 1.018 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.763e-05/0.6413, allocations: 15.98 kB / 1.018 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.245e-05/0.6414, allocations: 3.938 kB / 1.018 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.326e-05/0.6414, allocations: 15.92 kB / 1.018 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.6415, allocations: 27.91 kB / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.6415, allocations: 0 / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6415, allocations: 0 / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.6415, allocations: 0 / 1.018 GB, free: 0.9258 MB / 0.7637 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.0005547/0.6421, allocations: 349.5 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.6421, allocations: 8.031 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.455e-05/0.6422, allocations: 8.844 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.6423, allocations: 168.3 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.6424, allocations: 384 / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.6424, allocations: 8.375 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.6426, allocations: 54.22 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.6426, allocations: 192 / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.6426, allocations: 7.938 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.6426, allocations: 0 / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.6428, allocations: 47.89 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004372/0.6433, allocations: 257 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.6436, allocations: 66.53 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.6438, allocations: 24.84 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.6439, allocations: 89.03 kB / 1.019 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.644, allocations: 34.5 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.644, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003995/0.6444, allocations: 93.55 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.6444, allocations: 63.39 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.498e-05/0.6445, allocations: 102 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.6445, allocations: 25.7 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.6446, allocations: 80.14 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.6446, allocations: 11.89 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/0.6447, allocations: 17.72 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.6448, allocations: 314.8 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.6449, allocations: 23.97 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.363e-05/0.645, allocations: 23.92 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.6452, allocations: 44.81 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.6452, allocations: 7.938 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002279/0.6455, allocations: 69.66 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.6455, allocations: 8 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.6455, allocations: 4 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.6455, allocations: 0 / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.318e-05/0.6456, allocations: 11.98 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.6456, allocations: 0 / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.711e-05/0.6457, allocations: 7.984 kB / 1.02 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.6457, allocations: 0 / 1.02 GB, free: 14.69 MB / 0.7794 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 0.0001001/0.6458, allocations: 121.7 kB / 1.02 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.6458, allocations: 3.906 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002746/0.6461, allocations: 81.14 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.6461, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.6461, allocations: 4 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.6461, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.6463, allocations: 165.6 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6463, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.749e-05/0.6464, allocations: 11.98 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.6464, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.6464, allocations: 8 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.6465, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6465, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.6467, allocations: 175.4 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.6468, allocations: 81.05 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.6468, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.6469, allocations: 15.98 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.647, allocations: 7.984 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.647, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.346e-05/0.647, allocations: 79.7 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.6e-07/0.647, allocations: 3.938 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002374/0.6473, allocations: 16 kB / 1.021 GB, free: 13.83 MB / 0.7794 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.0001588/0.6475, allocations: 107.7 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.6477, allocations: 52.02 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.6477, allocations: 0 / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.6478, allocations: 23.98 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.6481, allocations: 7.938 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003111/0.6485, allocations: 115.5 kB / 1.021 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.6488, allocations: 0.6809 MB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.61e-05/0.6489, allocations: 8 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.076e-05/0.6489, allocations: 11.44 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6489, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of Templates: time 0.0033/0.6522, allocations: 0.6088 MB / 1.023 GB, free: 12.17 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches