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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001703/0.001703, allocations: 110.8 kB / 16.42 MB, free: 6.496 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.00211/0.00211, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.463/1.463, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 472.7 MB / 0.746 GB, free: 396 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 63.91 kB / 1.07 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.11/1.112, allocations: 159.9 MB / 1.226 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002005/1.114, allocations: 0.5829 MB / 1.227 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003202/1.114, allocations: 55.8 kB / 1.227 GB, free: 13 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.144e-05/1.114, allocations: 0 / 1.227 GB, free: 13 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.479e-05/1.114, allocations: 0 / 1.227 GB, free: 13 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 1.16e-05/1.115, allocations: 0 / 1.227 GB, free: 13 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/1.115, allocations: 15.92 kB / 1.227 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 6.112e-05/1.115, allocations: 3.984 kB / 1.227 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.169e-05/1.115, allocations: 7.938 kB / 1.227 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 1.9e-05/1.115, allocations: 0 / 1.227 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 2.365e-05/1.115, allocations: 3.938 kB / 1.227 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/1.115, allocations: 0 / 1.227 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.517e-05/1.115, allocations: 11.98 kB / 1.227 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.082e-05/1.115, allocations: 8 kB / 1.227 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.109e-05/1.115, allocations: 0 / 1.227 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000101/1.115, allocations: 19.91 kB / 1.227 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/1.115, allocations: 0 / 1.227 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.863e-06/1.115, allocations: 0 / 1.227 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.054e-06/1.115, allocations: 0 / 1.227 GB, free: 12.93 MB / 0.9512 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.0003954/1.116, allocations: 311.5 kB / 1.227 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/1.116, allocations: 8.031 kB / 1.227 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/1.116, allocations: 4.938 kB / 1.227 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/1.116, allocations: 164.4 kB / 1.228 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/1.116, allocations: 4.375 kB / 1.228 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/1.116, allocations: 4.375 kB / 1.228 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/1.116, allocations: 30.27 kB / 1.228 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/1.116, allocations: 192 / 1.228 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/1.116, allocations: 3.938 kB / 1.228 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/1.116, allocations: 0 / 1.228 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.315e-05/1.116, allocations: 11.92 kB / 1.228 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/1.116, allocations: 146.7 kB / 1.228 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.38e-05/1.116, allocations: 26.61 kB / 1.228 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.534e-05/1.116, allocations: 12.84 kB / 1.228 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002131/1.117, allocations: 81.17 kB / 1.228 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/1.117, allocations: 30.56 kB / 1.228 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.593e-06/1.117, allocations: 0 / 1.228 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001862/1.117, allocations: 49.56 kB / 1.228 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/1.117, allocations: 59.53 kB / 1.228 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.794e-05/1.117, allocations: 89.86 kB / 1.228 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/1.117, allocations: 25.7 kB / 1.228 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.952e-05/1.117, allocations: 80.14 kB / 1.228 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/1.117, allocations: 0 / 1.228 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/1.117, allocations: 13.72 kB / 1.228 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001231/1.117, allocations: 314.8 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.695e-05/1.117, allocations: 3.984 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.148e-05/1.117, allocations: 8 kB / 1.228 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.757e-05/1.117, allocations: 12.8 kB / 1.229 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/1.117, allocations: 0 / 1.229 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.682e-05/1.118, allocations: 45.59 kB / 1.229 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.118, allocations: 8 kB / 1.229 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/1.118, allocations: 3.938 kB / 1.229 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/1.118, allocations: 7.922 kB / 1.229 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.669e-05/1.118, allocations: 4 kB / 1.229 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/1.118, allocations: 0 / 1.229 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.574e-05/1.118, allocations: 4.094 kB / 1.229 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/1.118, allocations: 0 / 1.229 GB, free: 11.14 MB / 0.9512 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.676e-05/1.118, allocations: 117.8 kB / 1.229 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-06/1.118, allocations: 0 / 1.229 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/1.118, allocations: 44.75 kB / 1.229 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/1.118, allocations: 3.938 kB / 1.229 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/1.118, allocations: 0 / 1.229 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/1.118, allocations: 77.11 kB / 1.229 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/1.118, allocations: 8 kB / 1.229 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.385e-05/1.118, allocations: 4.031 kB / 1.229 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/1.118, allocations: 7.984 kB / 1.229 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.299e-05/1.118, allocations: 105 kB / 1.229 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001528/1.118, allocations: 222.7 kB / 1.229 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.403e-05/1.118, allocations: 0 / 1.229 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.177e-05/1.118, allocations: 83.34 kB / 1.229 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of Backend: time 5.31e-07/1.118, allocations: 0 / 1.229 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004447/1.119, allocations: 86.39 kB / 1.229 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0005413/1.119, allocations: 0.5331 MB / 1.23 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of Templates: time 0.003142/1.123, allocations: 347 kB / 1.23 GB, free: 9.414 MB / 0.9512 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