Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 107.4 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 193.9 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 225.6 MB / 249.9 MB, free: 3.23 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.627/2.627, allocations: 443.5 MB / 0.731 GB, free: 13.98 MB / 0.5763 GB [Timeout remaining time 87] 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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=525,variableFilter="time|fac",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=525,variableFilter="time|fac",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.003126/0.003126, allocations: 71.88 kB / 1.06 GB, free: 0.5273 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4228, allocations: 160.7 MB / 1.217 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001839/0.4246, allocations: 0.5831 MB / 1.217 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000265/0.4249, allocations: 51.89 kB / 1.217 GB, free: 14.87 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.668e-05/0.4249, allocations: 0 / 1.217 GB, free: 14.87 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.4249, allocations: 7.938 kB / 1.217 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.062e-06/0.4249, allocations: 0 / 1.217 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.4251, allocations: 4 kB / 1.217 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.171e-05/0.4252, allocations: 7.984 kB / 1.217 GB, free: 14.85 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.4252, allocations: 8 kB / 1.217 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.985e-05/0.4252, allocations: 3.984 kB / 1.217 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 1.886e-05/0.4253, allocations: 3.938 kB / 1.217 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.986e-06/0.4253, allocations: 0 / 1.217 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.681e-05/0.4253, allocations: 11.98 kB / 1.217 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.385e-06/0.4253, allocations: 0 / 1.217 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.686e-05/0.4254, allocations: 4 kB / 1.217 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 8.642e-05/0.4255, allocations: 11.92 kB / 1.217 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4255, allocations: 4 kB / 1.217 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4255, allocations: 0 / 1.217 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.4255, allocations: 0 / 1.217 GB, free: 14.8 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003401/0.4258, allocations: 319.5 kB / 1.218 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.4258, allocations: 11.97 kB / 1.218 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.4259, allocations: 12.88 kB / 1.218 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.426, allocations: 164.3 kB / 1.218 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.426, allocations: 384 / 1.218 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.426, allocations: 384 / 1.218 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.4261, allocations: 38.25 kB / 1.218 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.4261, allocations: 192 / 1.218 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.4261, allocations: 3.938 kB / 1.218 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.4261, allocations: 4 kB / 1.218 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.219e-05/0.4262, allocations: 4 kB / 1.218 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.4263, allocations: 149.7 kB / 1.218 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.836e-05/0.4264, allocations: 26.55 kB / 1.218 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.817e-05/0.4264, allocations: 4.859 kB / 1.218 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.4266, allocations: 85.16 kB / 1.218 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.4266, allocations: 38.56 kB / 1.218 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.4266, allocations: 0 / 1.218 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001428/0.4268, allocations: 37.64 kB / 1.218 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.4268, allocations: 59.34 kB / 1.218 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.584e-05/0.4269, allocations: 93.84 kB / 1.218 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.4269, allocations: 29.7 kB / 1.218 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.4269, allocations: 80.14 kB / 1.218 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.4269, allocations: 0 / 1.218 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.427, allocations: 17.84 kB / 1.218 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4271, allocations: 310.8 kB / 1.219 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.117e-05/0.4271, allocations: 0 / 1.219 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.483e-05/0.4271, allocations: 12 kB / 1.219 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.322e-05/0.4272, allocations: 12.84 kB / 1.219 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.4272, allocations: 0 / 1.219 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.386e-05/0.4272, allocations: 37.7 kB / 1.219 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.4272, allocations: 8 kB / 1.219 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.4272, allocations: 4.094 kB / 1.219 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.4273, allocations: 7.875 kB / 1.219 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.435e-05/0.4273, allocations: 4 kB / 1.219 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.4273, allocations: 3.984 kB / 1.219 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.253e-05/0.4273, allocations: 0 / 1.219 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-06/0.4273, allocations: 0 / 1.219 GB, free: 13.01 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 (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 7.521e-05/0.4274, allocations: 109.8 kB / 1.219 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.4274, allocations: 11.89 kB / 1.219 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.796e-05/0.4275, allocations: 48.75 kB / 1.219 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.4275, allocations: 4 kB / 1.219 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4275, allocations: 0 / 1.219 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4275, allocations: 0 / 1.219 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.4276, allocations: 145.7 kB / 1.219 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4276, allocations: 0 / 1.219 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.65e-05/0.4277, allocations: 11.92 kB / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4277, allocations: 0 / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.4277, allocations: 3.938 kB / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.4277, allocations: 0 / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.4277, allocations: 4 kB / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.089e-05/0.4278, allocations: 65.16 kB / 1.219 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.854e-05/0.4278, allocations: 77.11 kB / 1.219 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.4278, allocations: 3.938 kB / 1.219 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.036e-05/0.4278, allocations: 0 / 1.219 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/0.4279, allocations: 4 kB / 1.219 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.4279, allocations: 0 / 1.219 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.982e-05/0.4279, allocations: 75.28 kB / 1.219 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.4279, allocations: 4.031 kB / 1.219 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001856/0.4281, allocations: 4 kB / 1.219 GB, free: 12.34 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,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 0.0001615/0.4282, allocations: 107.2 kB / 1.219 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.466e-05/0.4283, allocations: 15.94 kB / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.4283, allocations: 0 / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.169e-05/0.4283, allocations: 4 kB / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.4285, allocations: 3.281 kB / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002348/0.4287, allocations: 122.7 kB / 1.22 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.429, allocations: 0.6729 MB / 1.22 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.638e-05/0.429, allocations: 7.438 kB / 1.22 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of SimCode: time 3e-07/0.429, allocations: 0 / 1.22 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of Templates: time 0.002045/0.431, allocations: 468.3 kB / 1.221 GB, free: 10.89 MB / 0.9669 GB [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] [Timeout remaining time 300] "" Variables in the reference:time,fac Variables in the result:fac,time