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.00683/0.006829, allocations: 96.89 kB / 15.73 MB, free: 6 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.001152/0.001153, allocations: 188.6 kB / 16.67 MB, free: 5.93 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.75/2.75, allocations: 437 MB / 0.7105 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 67.91 kB / 1.019 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3348, allocations: 151.6 MB / 1.167 GB, free: 6.984 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002649/0.3375, allocations: 1.503 MB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003588/0.3379, allocations: 132.5 kB / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.516e-05/0.338, allocations: 0 / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.849e-05/0.338, allocations: 0 / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.022e-05/0.3381, allocations: 3.938 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.3383, allocations: 23.91 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.764e-05/0.3384, allocations: 31.86 kB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3385, allocations: 11.98 kB / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.868e-05/0.3386, allocations: 8 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.1e-05/0.3386, allocations: 15.92 kB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.574e-05/0.3386, allocations: 11.98 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.264e-05/0.3387, allocations: 15.98 kB / 1.168 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.3387, allocations: 4 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.073e-05/0.3388, allocations: 19.92 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.3389, allocations: 35.83 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3389, allocations: 0 / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3389, allocations: 0 / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.3389, allocations: 0 / 1.168 GB, free: 5.148 MB / 0.92 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.0004424/0.3394, allocations: 351.3 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.3394, allocations: 12.03 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.3394, allocations: 8.891 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.996e-05/0.3396, allocations: 164.3 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.3396, allocations: 384 / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.3396, allocations: 4.375 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.3398, allocations: 66.16 kB / 1.169 GB, free: 4.461 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.3398, allocations: 192 / 1.169 GB, free: 4.461 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.3398, allocations: 3.938 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.3398, allocations: 4 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002132/0.34, allocations: 43.95 kB / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004472/0.3405, allocations: 257 kB / 1.169 GB, free: 4.109 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.3408, allocations: 66.41 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.395e-05/0.3409, allocations: 24.91 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.341, allocations: 85.09 kB / 1.169 GB, free: 3.906 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.3411, allocations: 30.56 kB / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3411, allocations: 4 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003686/0.3415, allocations: 93.58 kB / 1.17 GB, free: 3.766 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.3415, allocations: 59.39 kB / 1.17 GB, free: 3.695 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.517e-05/0.3416, allocations: 97.86 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.3416, allocations: 25.7 kB / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.185e-05/0.3416, allocations: 88.08 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.3417, allocations: 11.94 kB / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.3417, allocations: 17.72 kB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.3418, allocations: 310.8 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.989e-05/0.3419, allocations: 23.97 kB / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.526e-05/0.342, allocations: 15.98 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.3422, allocations: 48.81 kB / 1.17 GB, free: 3.031 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3422, allocations: 3.938 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002078/0.3424, allocations: 69.66 kB / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3424, allocations: 8 kB / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3424, allocations: 0 / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.3424, allocations: 4 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.487e-05/0.3425, allocations: 15.92 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3425, allocations: 3.938 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.578e-05/0.3426, allocations: 11.94 kB / 1.17 GB, free: 2.91 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3426, allocations: 0 / 1.17 GB, free: 2.91 MB / 0.92 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 7.329e-05/0.3427, allocations: 117.8 kB / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.3427, allocations: 0 / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.343, allocations: 81.14 kB / 1.171 GB, free: 2.699 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.343, allocations: 4 kB / 1.171 GB, free: 2.695 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.343, allocations: 0 / 1.171 GB, free: 2.695 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.343, allocations: 3.938 kB / 1.171 GB, free: 2.691 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.3432, allocations: 165.6 kB / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3432, allocations: 4 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.125e-05/0.3432, allocations: 11.92 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.3433, allocations: 4 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.3433, allocations: 0 / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3433, allocations: 4 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3433, allocations: 0 / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.3435, allocations: 172 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.3436, allocations: 85 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.3436, allocations: 4 kB / 1.171 GB, free: 2.168 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.031e-05/0.3437, allocations: 7.984 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.3438, allocations: 16.03 kB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.3438, allocations: 3.984 kB / 1.171 GB, free: 2.141 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.41e-05/0.3438, allocations: 79.28 kB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3438, allocations: 0 / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002251/0.344, allocations: 8 kB / 1.171 GB, free: 2.055 MB / 0.92 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.0001959/0.3442, allocations: 103.2 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002257/0.3445, allocations: 51.88 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3445, allocations: 0 / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.383e-05/0.3446, allocations: 23.98 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.3449, allocations: 7.938 kB / 1.171 GB, free: 1.859 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003125/0.3452, allocations: 109.4 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.3455, allocations: 0.6768 MB / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001409/0.3457, allocations: 11.92 kB / 1.172 GB, free: 1.012 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.366e-05/0.3457, allocations: 11.44 kB / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of SimCode: time 2.41e-07/0.3457, allocations: 3.938 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of Templates: time 0.003198/0.3489, allocations: 0.7229 MB / 1.173 GB, free: 288 kB / 0.92 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