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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 111.2 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 225.6 MB / 249.4 MB, free: 3.145 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.614/2.614, allocations: 443.5 MB / 0.7304 GB, free: 13.94 MB / 0.5762 GB " [Timeout remaining time 177] 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=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 59.91 kB / 1.059 GB, free: 444 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3333, allocations: 160.7 MB / 1.216 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002866/0.3362, allocations: 1.528 MB / 1.218 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003922/0.3366, allocations: 132.5 kB / 1.218 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.551e-05/0.3366, allocations: 0 / 1.218 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.787e-05/0.3366, allocations: 0 / 1.218 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.443e-05/0.3367, allocations: 7.922 kB / 1.218 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.3369, allocations: 23.92 kB / 1.218 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.042e-05/0.337, allocations: 27.92 kB / 1.218 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.327e-05/0.3371, allocations: 11.98 kB / 1.218 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.73e-05/0.3371, allocations: 12 kB / 1.218 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.579e-05/0.3372, allocations: 23.84 kB / 1.218 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.3372, allocations: 0 / 1.218 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.623e-05/0.3372, allocations: 15.98 kB / 1.218 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.3373, allocations: 4 kB / 1.218 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.984e-05/0.3373, allocations: 15.94 kB / 1.218 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.3374, allocations: 43.75 kB / 1.218 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3374, allocations: 0 / 1.218 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3374, allocations: 4 kB / 1.218 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3374, allocations: 0 / 1.218 GB, free: 13.54 MB / 0.9669 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.0005707/0.338, allocations: 351.3 kB / 1.218 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.338, allocations: 8.031 kB / 1.218 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.338, allocations: 8.891 kB / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.3382, allocations: 168.4 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.3382, allocations: 384 / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.3382, allocations: 384 / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.3384, allocations: 58.23 kB / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3384, allocations: 4.125 kB / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.3384, allocations: 11.92 kB / 1.218 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3384, allocations: 4 kB / 1.219 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.3386, allocations: 39.95 kB / 1.219 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003866/0.339, allocations: 257 kB / 1.219 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.3393, allocations: 66.47 kB / 1.219 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.824e-05/0.3394, allocations: 24.84 kB / 1.219 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.3395, allocations: 89.09 kB / 1.219 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.3396, allocations: 30.56 kB / 1.219 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3396, allocations: 0 / 1.219 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0003921/0.34, allocations: 93.59 kB / 1.219 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.34, allocations: 51.41 kB / 1.219 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.698e-05/0.3401, allocations: 101.8 kB / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.3401, allocations: 25.7 kB / 1.219 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.939e-05/0.3402, allocations: 88.14 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.375e-05/0.3402, allocations: 3.953 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.3402, allocations: 17.7 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3404, allocations: 314.8 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.086e-05/0.3405, allocations: 23.92 kB / 1.22 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.259e-05/0.3406, allocations: 23.97 kB / 1.22 GB, free: 11.47 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.3407, allocations: 44.81 kB / 1.22 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3407, allocations: 3.938 kB / 1.22 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000214/0.3409, allocations: 73.66 kB / 1.22 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.341, allocations: 8 kB / 1.22 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.341, allocations: 0 / 1.22 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.341, allocations: 0 / 1.22 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.09e-05/0.3411, allocations: 15.92 kB / 1.22 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.3411, allocations: 3.938 kB / 1.22 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.928e-05/0.3411, allocations: 11.94 kB / 1.22 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-06/0.3411, allocations: 4 kB / 1.22 GB, free: 11.3 MB / 0.9669 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.000106/0.3412, allocations: 109.8 kB / 1.22 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.3413, allocations: 7.938 kB / 1.22 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.3415, allocations: 89.59 kB / 1.22 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3415, allocations: 0 / 1.22 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.3416, allocations: 0 / 1.22 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3416, allocations: 0 / 1.22 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.3417, allocations: 169.6 kB / 1.22 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3418, allocations: 3.984 kB / 1.22 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.892e-05/0.3418, allocations: 15.98 kB / 1.22 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3418, allocations: 4 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.3418, allocations: 0 / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3418, allocations: 3.938 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3418, allocations: 0 / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.3421, allocations: 175.4 kB / 1.22 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.3422, allocations: 81.06 kB / 1.22 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.3422, allocations: 4 kB / 1.22 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.399e-05/0.3423, allocations: 7.984 kB / 1.22 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.3423, allocations: 8 kB / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.3423, allocations: 0 / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.244e-05/0.3424, allocations: 83.27 kB / 1.221 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.3424, allocations: 0 / 1.221 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002287/0.3426, allocations: 8 kB / 1.221 GB, free: 10.45 MB / 0.9669 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.000154/0.3427, allocations: 99.25 kB / 1.221 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00024/0.343, allocations: 51.89 kB / 1.221 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.343, allocations: 0 / 1.221 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.3431, allocations: 27.97 kB / 1.221 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.3434, allocations: 9.812 kB / 1.221 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003092/0.3437, allocations: 117.4 kB / 1.221 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.344, allocations: 0.6807 MB / 1.222 GB, free: 9.402 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.329e-05/0.344, allocations: 7.938 kB / 1.222 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.344, allocations: 15.42 kB / 1.222 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of SimCode: time 3.3e-07/0.344, allocations: 0 / 1.222 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of Templates: time 0.00337/0.3474, allocations: 0.7197 MB / 1.222 GB, free: 8.668 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (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) [Timeout 400] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.996230214834213]