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.001901/0.001901, allocations: 107.9 kB / 16.45 MB, free: 6.453 MB / 14.72 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.002312/0.002312, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 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 1.52/1.52, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.18/3.18, allocations: 0.4899 GB / 0.7915 GB, free: 33.21 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 74.7 kB / 1.149 GB, free: 26.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3218, allocations: 176.1 MB / 1.321 GB, free: 2.809 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002791/0.3246, allocations: 1.534 MB / 1.323 GB, free: 1.262 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003624/0.3249, allocations: 131.6 kB / 1.323 GB, free: 1.133 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.873e-05/0.325, allocations: 4 kB / 1.323 GB, free: 1.129 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.097e-05/0.325, allocations: 0 / 1.323 GB, free: 1.129 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.831e-05/0.3251, allocations: 3.938 kB / 1.323 GB, free: 1.125 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.3253, allocations: 23.91 kB / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.076e-05/0.3254, allocations: 27.98 kB / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.3255, allocations: 15.92 kB / 1.323 GB, free: 1.059 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.175e-05/0.3255, allocations: 11.94 kB / 1.323 GB, free: 1.047 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.709e-05/0.3256, allocations: 23.91 kB / 1.323 GB, free: 1.023 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.3256, allocations: 0 / 1.323 GB, free: 1.023 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.238e-05/0.3257, allocations: 15.98 kB / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.3257, allocations: 4 kB / 1.323 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.589e-05/0.3257, allocations: 11.94 kB / 1.323 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.3258, allocations: 39.81 kB / 1.323 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.3258, allocations: 0 / 1.323 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3258, allocations: 0 / 1.323 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.989e-06/0.3258, allocations: 4 kB / 1.323 GB, free: 0.9492 MB / 1.014 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.000529/0.3264, allocations: 343.4 kB / 1.323 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3264, allocations: 15.98 kB / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.931e-05/0.3264, allocations: 0.9375 kB / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.3266, allocations: 172.3 kB / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.3266, allocations: 384 / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.3266, allocations: 384 / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.3268, allocations: 66.17 kB / 1.324 GB, free: 276 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3268, allocations: 192 / 1.324 GB, free: 276 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.3269, allocations: 3.938 kB / 1.324 GB, free: 272 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3269, allocations: 0 / 1.324 GB, free: 272 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.3271, allocations: 43.95 kB / 1.324 GB, free: 228 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004032/0.3275, allocations: 261 kB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00036/0.3278, allocations: 70.41 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.3279, allocations: 28.84 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001233/0.3281, allocations: 77.11 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.3281, allocations: 38.55 kB / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3281, allocations: 0 / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004129/0.3285, allocations: 89.64 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.3285, allocations: 51.41 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.622e-05/0.3286, allocations: 105.8 kB / 1.324 GB, free: 15.4 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.3286, allocations: 25.7 kB / 1.324 GB, free: 15.37 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.326e-05/0.3287, allocations: 88.14 kB / 1.324 GB, free: 15.28 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.3287, allocations: 7.891 kB / 1.324 GB, free: 15.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.3288, allocations: 25.64 kB / 1.325 GB, free: 15.24 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3289, allocations: 314.8 kB / 1.325 GB, free: 14.92 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.329, allocations: 19.98 kB / 1.325 GB, free: 14.9 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.721e-05/0.3291, allocations: 16.34 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.3293, allocations: 52.89 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3293, allocations: 3.938 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002405/0.3295, allocations: 77.66 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3295, allocations: 4 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.3295, allocations: 0 / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3296, allocations: 0 / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/0.3297, allocations: 15.92 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.3297, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.129e-05/0.3297, allocations: 7.984 kB / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.3297, allocations: 0 / 1.325 GB, free: 14.72 MB / 1.029 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.88e-05/0.3298, allocations: 125.7 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.3298, allocations: 3.953 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002796/0.3301, allocations: 81.14 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3301, allocations: 0 / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.3301, allocations: 0 / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.3301, allocations: 0 / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.3303, allocations: 165.6 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3303, allocations: 0 / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.718e-05/0.3304, allocations: 19.98 kB / 1.325 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.3304, allocations: 3.938 kB / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.3304, allocations: 3.938 kB / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3304, allocations: 0 / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3304, allocations: 0 / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.3307, allocations: 171.4 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.3307, allocations: 77.11 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.3308, allocations: 4 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.276e-05/0.3308, allocations: 11.98 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.435e-05/0.3309, allocations: 8 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.3309, allocations: 0 / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.491e-05/0.331, allocations: 83.27 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.331, allocations: 0 / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002273/0.3312, allocations: 8 kB / 1.326 GB, free: 13.87 MB / 1.029 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.0001457/0.3313, allocations: 107.2 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002462/0.3316, allocations: 44.17 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3316, allocations: 0 / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.3317, allocations: 27.97 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.3319, allocations: 10.53 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002895/0.3322, allocations: 121.5 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.3325, allocations: 0.6807 MB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.029e-05/0.3325, allocations: 7.953 kB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.3326, allocations: 11.42 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.3326, allocations: 0 / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of Templates: time 0.003152/0.3357, allocations: 0.7168 MB / 1.327 GB, free: 12.09 MB / 1.029 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: 8.742725638207048]