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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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=5000,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=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 112.2 kB / 16.42 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 187.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB 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: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.644/2.644, allocations: 461.9 MB / 0.7355 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 63.91 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9501/0.9517, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00264/0.9544, allocations: 0.5923 MB / 1.209 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004265/0.9549, allocations: 47.86 kB / 1.209 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.9549, allocations: 0 / 1.209 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.763e-05/0.9549, allocations: 0 / 1.209 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.857e-06/0.955, allocations: 0 / 1.209 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003481/0.9554, allocations: 11.88 kB / 1.209 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.073e-05/0.9554, allocations: 3.984 kB / 1.209 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.635e-05/0.9555, allocations: 15.98 kB / 1.209 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.162e-05/0.9555, allocations: 3.938 kB / 1.209 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.654e-05/0.9556, allocations: 0 / 1.209 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.9556, allocations: 0 / 1.209 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.78e-05/0.9557, allocations: 12 kB / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.9557, allocations: 0 / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.151e-05/0.9558, allocations: 3.984 kB / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.9559, allocations: 7.984 kB / 1.209 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.9559, allocations: 0 / 1.209 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.855e-06/0.9559, allocations: 0 / 1.209 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.318e-05/0.9559, allocations: 0 / 1.209 GB, free: 12.99 MB / 0.9356 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.0005239/0.9565, allocations: 327.5 kB / 1.209 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.9565, allocations: 12.03 kB / 1.209 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.9566, allocations: 0.9375 kB / 1.209 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.9568, allocations: 160.4 kB / 1.21 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.9569, allocations: 384 / 1.21 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.9569, allocations: 384 / 1.21 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001395/0.957, allocations: 38.19 kB / 1.21 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.9571, allocations: 4.172 kB / 1.21 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.9571, allocations: 7.938 kB / 1.21 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.9571, allocations: 0 / 1.21 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.492e-05/0.9572, allocations: 8 kB / 1.21 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002256/0.9574, allocations: 149.7 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.132e-05/0.9575, allocations: 22.58 kB / 1.21 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.9575, allocations: 8.797 kB / 1.21 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002516/0.9577, allocations: 85.16 kB / 1.21 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.9578, allocations: 34.56 kB / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/0.9578, allocations: 0 / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002037/0.958, allocations: 45.64 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.9581, allocations: 51.41 kB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.928e-05/0.9581, allocations: 89.86 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.9582, allocations: 25.7 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.11e-05/0.9582, allocations: 80.14 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.873e-05/0.9583, allocations: 11.89 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.252e-05/0.9583, allocations: 17.84 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.9585, allocations: 310.8 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.932e-05/0.9585, allocations: 4 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.177e-05/0.9585, allocations: 3.938 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.129e-05/0.9586, allocations: 12.86 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.9586, allocations: 0 / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.161e-05/0.9587, allocations: 49.62 kB / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.9587, allocations: 8.094 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.9587, allocations: 0 / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.9587, allocations: 3.938 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.877e-05/0.9588, allocations: 4 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.9588, allocations: 0 / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.9588, allocations: 3.938 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.9589, allocations: 3.984 kB / 1.211 GB, free: 11.2 MB / 0.9356 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 8.293e-05/0.9589, allocations: 113.8 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-06/0.959, allocations: 0 / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.9591, allocations: 48.81 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.9591, allocations: 3.938 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.9591, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.252e-05/0.9592, allocations: 80.91 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.9592, allocations: 4 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.248e-05/0.9592, allocations: 0 / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.9592, allocations: 4 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.563e-05/0.9593, allocations: 120.9 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001485/0.9595, allocations: 214.8 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.918e-05/0.9595, allocations: 4 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.992e-05/0.9596, allocations: 75.28 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of Backend: time 4.51e-07/0.9596, allocations: 0 / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004467/0.9601, allocations: 92.27 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0004691/0.9606, allocations: 0.5331 MB / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of Templates: time 0.00261/0.9632, allocations: 360.6 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches