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.001154/0.001154, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001221/0.001221, allocations: 192.4 kB / 16.25 MB, free: 6.633 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.554/2.554, allocations: 437 MB / 0.71 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001383, allocations: 71.89 kB / 0.8687 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6975/0.6989, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002736/0.7016, allocations: 1.577 MB / 1.018 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004471/0.7021, allocations: 120.5 kB / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.519e-05/0.7022, allocations: 4 kB / 1.018 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.38e-05/0.7022, allocations: 3.984 kB / 1.018 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.13e-05/0.7023, allocations: 3.938 kB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.7026, allocations: 19.98 kB / 1.018 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.7028, allocations: 27.88 kB / 1.018 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.7029, allocations: 15.98 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.202e-05/0.703, allocations: 15.92 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.376e-05/0.703, allocations: 11.98 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.7031, allocations: 8 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.541e-05/0.7032, allocations: 11.98 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.71e-05/0.7032, allocations: 7.938 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.148e-05/0.7032, allocations: 11.92 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.7034, allocations: 31.89 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.7034, allocations: 4 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.803e-06/0.7034, allocations: 0 / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.645e-06/0.7034, allocations: 0 / 1.019 GB, free: 0.8281 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.0005601/0.704, allocations: 345.4 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.704, allocations: 16.02 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.927e-05/0.7041, allocations: 4.844 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.7042, allocations: 172.3 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.7043, allocations: 4.312 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.7043, allocations: 4.375 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.7045, allocations: 58.23 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.7045, allocations: 4.172 kB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.7046, allocations: 3.938 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.7046, allocations: 4 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.7048, allocations: 39.95 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004101/0.7052, allocations: 257 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003338/0.7055, allocations: 62.41 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.7056, allocations: 32.91 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.7058, allocations: 89.09 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.7058, allocations: 30.56 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.7058, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003887/0.7062, allocations: 89.58 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.7062, allocations: 63.39 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.105e-05/0.7063, allocations: 101.8 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.7063, allocations: 25.7 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.257e-05/0.7064, allocations: 84.14 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.7064, allocations: 11.89 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.7065, allocations: 9.719 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.7066, allocations: 322.8 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.029e-05/0.7067, allocations: 19.97 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.907e-05/0.7068, allocations: 19.98 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.707, allocations: 48.81 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.707, allocations: 3.938 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000207/0.7072, allocations: 73.59 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.7072, allocations: 7.938 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.7072, allocations: 8 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.7072, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.195e-05/0.7073, allocations: 11.98 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.7073, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.922e-05/0.7074, allocations: 8.5 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.7074, allocations: 0 / 1.021 GB, free: 14.59 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 8.369e-05/0.7075, allocations: 110.3 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.7075, allocations: 4 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.7078, allocations: 93.06 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.7078, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.7078, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.7078, allocations: 4 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.708, allocations: 169.5 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.708, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.546e-05/0.7081, allocations: 11.98 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.7081, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.679e-06/0.7081, allocations: 8 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.7081, allocations: 4 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7081, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.7084, allocations: 175.4 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.7085, allocations: 81.05 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.7085, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.634e-05/0.7086, allocations: 11.98 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/0.7086, allocations: 11.98 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.7087, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.342e-05/0.7087, allocations: 83.22 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7087, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002384/0.709, allocations: 8 kB / 1.021 GB, free: 13.73 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.0002021/0.7092, allocations: 107.2 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002763/0.7095, allocations: 51.94 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.7095, allocations: 0 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.916e-05/0.7096, allocations: 23.98 kB / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.7099, allocations: 5.5 kB / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.7103, allocations: 121.5 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.7107, allocations: 0.6768 MB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.501e-05/0.7108, allocations: 7.984 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.172e-05/0.7108, allocations: 11.44 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of SimCode: time 1.9e-07/0.7108, allocations: 0 / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of Templates: time 0.00319/0.714, allocations: 0.6356 MB / 1.023 GB, free: 12.04 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=480 -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