Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.001108/0.001108, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001304/0.002412, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0008117/0.0008117, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009556/0.001767, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.013/1.013, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09151/1.105, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.36/2.36, allocations: 446.7 MB / 0.6745 GB, free: 6.238 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2425/2.602, allocations: 145.9 MB / 0.817 GB, free: 4.242 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.8184 GB, free: 2.867 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.156e-05/2.315e-05, allocations: 2.312 kB / 0.8184 GB, free: 2.863 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001782/0.001805, allocations: 0.6452 MB / 0.819 GB, free: 2.219 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0001208/0.001926, allocations: 51.75 kB / 0.819 GB, free: 2.168 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.101e-05/0.001937, allocations: 0 / 0.819 GB, free: 2.168 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 4.278e-06/0.001941, allocations: 4 kB / 0.819 GB, free: 2.164 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 1.342e-06/0.001942, allocations: 4 kB / 0.819 GB, free: 2.16 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001093/0.002052, allocations: 15.91 kB / 0.8191 GB, free: 2.145 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 4.986e-05/0.002102, allocations: 7.938 kB / 0.8191 GB, free: 2.137 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 3.907e-05/0.002141, allocations: 0 / 0.8191 GB, free: 2.137 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 4.026e-05/0.002181, allocations: 4 kB / 0.8191 GB, free: 2.133 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 2.471e-05/0.002206, allocations: 3.984 kB / 0.8191 GB, free: 2.129 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.002218, allocations: 0 / 0.8191 GB, free: 2.129 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.002322, allocations: 12 kB / 0.8191 GB, free: 2.117 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 8.025e-06/0.00233, allocations: 0 / 0.8191 GB, free: 2.117 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.164e-05/0.002341, allocations: 3.938 kB / 0.8191 GB, free: 2.113 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 9.193e-05/0.002433, allocations: 15.97 kB / 0.8191 GB, free: 2.098 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.587e-05/0.002449, allocations: 4 kB / 0.8191 GB, free: 2.094 MB / 0.7917 GB Notification: Performance of FrontEnd: time 8.22e-07/0.00245, allocations: 0 / 0.8191 GB, free: 2.094 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.919e-05/0.002469, allocations: 0 / 0.8191 GB, free: 2.094 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002988/0.002768, allocations: 216.7 kB / 0.8193 GB, free: 1.855 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.002804, allocations: 8.625 kB / 0.8193 GB, free: 1.848 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.00283, allocations: 0.9375 kB / 0.8193 GB, free: 1.848 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.263e-05/0.002903, allocations: 109.8 kB / 0.8194 GB, free: 1.715 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.002913, allocations: 384 / 0.8194 GB, free: 1.715 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-06/0.00292, allocations: 384 / 0.8194 GB, free: 1.715 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.257e-05/0.003003, allocations: 38.25 kB / 0.8195 GB, free: 1.672 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.00301, allocations: 192 / 0.8195 GB, free: 1.672 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-06/0.003018, allocations: 4.312 kB / 0.8195 GB, free: 1.668 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.003024, allocations: 384 / 0.8195 GB, free: 1.668 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.849e-05/0.003053, allocations: 7.938 kB / 0.8195 GB, free: 1.66 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.068e-05/0.003144, allocations: 57.05 kB / 0.8195 GB, free: 1.59 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 4.735e-05/0.003191, allocations: 18.61 kB / 0.8196 GB, free: 1.562 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.394e-05/0.003205, allocations: 4.859 kB / 0.8196 GB, free: 1.555 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.003338, allocations: 12.05 kB / 0.8196 GB, free: 1.543 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.003365, allocations: 34.56 kB / 0.8196 GB, free: 1.5 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.003366, allocations: 4 kB / 0.8196 GB, free: 1.496 MB / 0.7917 GB Notification: Performance of matching and sorting (n=2): time 0.0001009/0.003467, allocations: 33.64 kB / 0.8196 GB, free: 1.457 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.003506, allocations: 63.33 kB / 0.8197 GB, free: 1.383 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.946e-05/0.003546, allocations: 93.84 kB / 0.8198 GB, free: 1.281 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.003557, allocations: 25.7 kB / 0.8198 GB, free: 1.25 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.003581, allocations: 80.14 kB / 0.8199 GB, free: 1.168 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 1.885e-05/0.0036, allocations: 3.938 kB / 0.8199 GB, free: 1.164 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.742e-05/0.003628, allocations: 13.72 kB / 0.8199 GB, free: 1.145 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 9.662e-05/0.003724, allocations: 318.8 kB / 0.8202 GB, free: 0.8242 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.905e-06/0.003732, allocations: 4 kB / 0.8202 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-06/0.003738, allocations: 4.125 kB / 0.8202 GB, free: 0.8164 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.054e-05/0.003768, allocations: 16.78 kB / 0.8202 GB, free: 0.7969 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.00377, allocations: 0 / 0.8202 GB, free: 0.7969 MB / 0.7917 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.731e-05/0.003817, allocations: 33.7 kB / 0.8203 GB, free: 0.7578 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.003829, allocations: 4 kB / 0.8203 GB, free: 0.7539 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.003833, allocations: 0 / 0.8203 GB, free: 0.7539 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.003843, allocations: 3.984 kB / 0.8203 GB, free: 0.75 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.559e-05/0.003899, allocations: 4 kB / 0.8203 GB, free: 0.7461 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.045e-06/0.003902, allocations: 0 / 0.8203 GB, free: 0.7461 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.242e-05/0.003914, allocations: 8.094 kB / 0.8203 GB, free: 0.7383 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-06/0.003917, allocations: 0 / 0.8203 GB, free: 0.7383 MB / 0.7917 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001979/0.004115, allocations: 113.8 kB / 0.8204 GB, free: 0.6172 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-06/0.00412, allocations: 0 / 0.8204 GB, free: 0.6172 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.87e-05/0.004189, allocations: 48.78 kB / 0.8204 GB, free: 0.5664 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.004192, allocations: 4 kB / 0.8204 GB, free: 0.5625 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.004193, allocations: 0 / 0.8204 GB, free: 0.5625 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.004196, allocations: 0 / 0.8204 GB, free: 0.5625 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.612e-05/0.004272, allocations: 65.84 kB / 0.8205 GB, free: 492 kB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.004274, allocations: 0 / 0.8205 GB, free: 492 kB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.796e-05/0.004302, allocations: 12.02 kB / 0.8205 GB, free: 480 kB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-06/0.004308, allocations: 3.953 kB / 0.8205 GB, free: 476 kB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.004309, allocations: 0 / 0.8205 GB, free: 476 kB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-06/0.004313, allocations: 0 / 0.8205 GB, free: 476 kB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.004316, allocations: 4 kB / 0.8205 GB, free: 472 kB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.004317, allocations: 0 / 0.8205 GB, free: 472 kB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.489e-05/0.004381, allocations: 68.98 kB / 0.8206 GB, free: 384 kB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-06/0.004388, allocations: 0 / 0.8206 GB, free: 384 kB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-06/0.004394, allocations: 0 / 0.8206 GB, free: 384 kB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.828e-05/0.004413, allocations: 3.938 kB / 0.8206 GB, free: 380 kB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.004416, allocations: 4 kB / 0.8206 GB, free: 376 kB / 0.7917 GB Notification: Performance of sorting global known variables: time 4.979e-06/0.004421, allocations: 8.891 kB / 0.8206 GB, free: 364 kB / 0.7917 GB Notification: Performance of sort global known variables: time 7e-08/0.004421, allocations: 0 / 0.8206 GB, free: 364 kB / 0.7917 GB Notification: Performance of remove unused functions: time 9.634e-05/0.004517, allocations: 11.98 kB / 0.8206 GB, free: 352 kB / 0.7917 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 9.651e-05/0.004613, allocations: 76.42 kB / 0.8207 GB, free: 264 kB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 5.207e-05/0.004666, allocations: 12.86 kB / 0.8207 GB, free: 248 kB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.004668, allocations: 0 / 0.8207 GB, free: 248 kB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 1.204e-05/0.00468, allocations: 16.78 kB / 0.8207 GB, free: 228 kB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.706e-05/0.004727, allocations: 12 kB / 0.8207 GB, free: 216 kB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001596/0.004887, allocations: 91.59 kB / 0.8208 GB, free: 96 kB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.522e-05/0.004912, allocations: 55.34 kB / 0.8209 GB, free: 20 kB / 0.7917 GB Notification: Performance of simCode: alias equations: time 1.185e-05/0.004924, allocations: 4 kB / 0.8209 GB, free: 16 kB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/0.004962, allocations: 47.38 kB / 0.8209 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of SimCode: time 3.91e-07/0.004962, allocations: 0 / 0.8209 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of Templates: time 0.001754/0.006717, allocations: 375.3 kB / 0.8213 GB, free: 15.61 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.08551683370024]