Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 173.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8722/0.8722, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.678/1.678, allocations: 377.8 MB / 0.6228 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 0.9822 GB, free: 2.059 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.766e-05/1.922e-05, allocations: 5.234 kB / 0.9822 GB, free: 2.055 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001741/0.00176, allocations: 1.539 MB / 0.9837 GB, free: 0.5039 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002778/0.002038, allocations: 123.6 kB / 0.9838 GB, free: 392 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.25e-05/0.00207, allocations: 4 kB / 0.9838 GB, free: 388 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.622e-05/0.002096, allocations: 3.938 kB / 0.9838 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 3.804e-05/0.002134, allocations: 3.938 kB / 0.9838 GB, free: 380 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.002349, allocations: 27.84 kB / 0.9839 GB, free: 352 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.009e-05/0.002409, allocations: 27.92 kB / 0.9839 GB, free: 324 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.146e-05/0.002501, allocations: 11.98 kB / 0.9839 GB, free: 312 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 4.666e-05/0.002547, allocations: 15.98 kB / 0.9839 GB, free: 296 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.808e-05/0.002585, allocations: 11.98 kB / 0.9839 GB, free: 284 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.002599, allocations: 4 kB / 0.9839 GB, free: 280 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.92e-05/0.002659, allocations: 11.98 kB / 0.9839 GB, free: 268 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.002672, allocations: 11.94 kB / 0.984 GB, free: 256 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.002689, allocations: 3.984 kB / 0.984 GB, free: 252 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001062/0.002796, allocations: 39.94 kB / 0.984 GB, free: 212 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.002798, allocations: 0 / 0.984 GB, free: 212 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.102e-06/0.002799, allocations: 4 kB / 0.984 GB, free: 208 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.226e-06/0.002802, allocations: 7.875 kB / 0.984 GB, free: 200 kB / 0.9323 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.0003467/0.003149, allocations: 270.2 kB / 0.9843 GB, free: 15.9 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.003183, allocations: 8.031 kB / 0.9843 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.859e-05/0.003211, allocations: 8.891 kB / 0.9843 GB, free: 15.88 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.353e-05/0.003285, allocations: 109.8 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.003303, allocations: 384 / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.003312, allocations: 384 / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.003442, allocations: 62.22 kB / 0.9844 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.003448, allocations: 4.188 kB / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.003456, allocations: 384 / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.00346, allocations: 384 / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.777e-05/0.003558, allocations: 43.89 kB / 0.9845 GB, free: 15.64 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.003846, allocations: 208.5 kB / 0.9847 GB, free: 15.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.004054, allocations: 58.53 kB / 0.9847 GB, free: 15.34 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.145e-05/0.004105, allocations: 28.91 kB / 0.9848 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.411e-05/0.004179, allocations: 7.984 kB / 0.9848 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.004196, allocations: 30.56 kB / 0.9848 GB, free: 15.26 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.004197, allocations: 0 / 0.9848 GB, free: 15.26 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0002328/0.00443, allocations: 101.5 kB / 0.9849 GB, free: 15.15 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.004459, allocations: 59.39 kB / 0.985 GB, free: 15.08 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.207e-05/0.004511, allocations: 97.86 kB / 0.9851 GB, free: 14.98 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.619e-06/0.00452, allocations: 25.7 kB / 0.9851 GB, free: 14.95 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.564e-05/0.004556, allocations: 88.14 kB / 0.9852 GB, free: 14.86 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.00457, allocations: 3.953 kB / 0.9852 GB, free: 14.85 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.489e-05/0.004595, allocations: 21.7 kB / 0.9852 GB, free: 14.82 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.004669, allocations: 314.8 kB / 0.9855 GB, free: 14.51 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.384e-05/0.004713, allocations: 19.97 kB / 0.9855 GB, free: 14.49 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.688e-05/0.00475, allocations: 15.98 kB / 0.9855 GB, free: 14.47 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.711e-05/0.004837, allocations: 52.75 kB / 0.9856 GB, free: 14.42 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.004839, allocations: 0 / 0.9856 GB, free: 14.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00012/0.004959, allocations: 73.66 kB / 0.9856 GB, free: 14.34 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.004972, allocations: 11.94 kB / 0.9857 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.004977, allocations: 0 / 0.9857 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.004987, allocations: 3.938 kB / 0.9857 GB, free: 14.32 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.662e-05/0.005034, allocations: 11.98 kB / 0.9857 GB, free: 14.31 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.005038, allocations: 0 / 0.9857 GB, free: 14.31 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.571e-05/0.005064, allocations: 11.94 kB / 0.9857 GB, free: 14.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.005068, allocations: 0 / 0.9857 GB, free: 14.3 MB / 0.948 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.591e-05/0.005124, allocations: 117.8 kB / 0.9858 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.045e-05/0.005135, allocations: 0 / 0.9858 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.005282, allocations: 85.2 kB / 0.9859 GB, free: 14.09 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.005285, allocations: 4 kB / 0.9859 GB, free: 14.08 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.00529, allocations: 7.938 kB / 0.9859 GB, free: 14.07 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.005293, allocations: 0 / 0.9859 GB, free: 14.07 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.619e-05/0.005379, allocations: 109.3 kB / 0.986 GB, free: 13.94 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.00538, allocations: 0 / 0.986 GB, free: 13.94 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.938e-05/0.005409, allocations: 15.98 kB / 0.986 GB, free: 13.92 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.005411, allocations: 0 / 0.986 GB, free: 13.92 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.005419, allocations: 4 kB / 0.986 GB, free: 13.92 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.005421, allocations: 3.938 kB / 0.986 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.005421, allocations: 0 / 0.986 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000134/0.005555, allocations: 172 kB / 0.9862 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.741e-06/0.005561, allocations: 3.953 kB / 0.9862 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.307e-06/0.00557, allocations: 0 / 0.9862 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.901e-05/0.005609, allocations: 19.92 kB / 0.9862 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.005652, allocations: 7.984 kB / 0.9862 GB, free: 13.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.005654, allocations: 0 / 0.9862 GB, free: 13.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.856e-05/0.005683, allocations: 87.31 kB / 0.9863 GB, free: 13.61 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.005683, allocations: 0 / 0.9863 GB, free: 13.61 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000157/0.00584, allocations: 8 kB / 0.9863 GB, free: 13.61 MB / 0.948 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.0001134/0.005953, allocations: 107.2 kB / 0.9864 GB, free: 13.49 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000131/0.006084, allocations: 43.95 kB / 0.9864 GB, free: 13.45 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.006085, allocations: 4 kB / 0.9865 GB, free: 13.45 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.417e-05/0.00613, allocations: 23.92 kB / 0.9865 GB, free: 13.42 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.006301, allocations: 4 kB / 0.9865 GB, free: 13.42 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002368/0.006538, allocations: 134.6 kB / 0.9866 GB, free: 13.25 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.076e-05/0.006579, allocations: 63.3 kB / 0.9867 GB, free: 13.17 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.006603, allocations: 20.48 kB / 0.9867 GB, free: 13.15 MB / 0.948 GB Notification: Performance of SimCode: time 4.51e-07/0.006604, allocations: 0 / 0.9867 GB, free: 13.15 MB / 0.948 GB Notification: Performance of Templates: time 0.001623/0.008227, allocations: 0.7383 MB / 0.9874 GB, free: 12.41 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 6.607219676487148]