Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_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_9_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.001147/0.001147, allocations: 106.7 kB / 16.41 MB, free: 6.508 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.001092/0.001092, allocations: 187 kB / 17.34 MB, free: 5.742 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 67.88 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8391/0.8406, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001558/0.8422, allocations: 0.584 MB / 1.089 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002484/0.8425, allocations: 49.88 kB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.747e-05/0.8425, allocations: 0 / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.171e-05/0.8425, allocations: 0 / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.273e-06/0.8425, allocations: 3.938 kB / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.8427, allocations: 11.12 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.982e-05/0.8428, allocations: 3.047 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.599e-05/0.8428, allocations: 1.688 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.525e-05/0.8429, allocations: 5.781 kB / 1.089 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.262e-05/0.8429, allocations: 5.844 kB / 1.089 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.317e-06/0.8429, allocations: 0 / 1.089 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.424e-05/0.843, allocations: 10.78 kB / 1.089 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.151e-05/0.843, allocations: 4.5 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.843, allocations: 1.312 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.024e-05/0.8431, allocations: 9.578 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.8431, allocations: 4.656 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8431, allocations: 0.9688 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.8431, allocations: 3.938 kB / 1.089 GB, free: 5.09 MB / 0.8575 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.0002223/0.8434, allocations: 317.2 kB / 1.09 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.8434, allocations: 9.469 kB / 1.09 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.893e-05/0.8434, allocations: 2.094 kB / 1.09 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.78e-05/0.8435, allocations: 165.7 kB / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.8435, allocations: 1.438 kB / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.8435, allocations: 384 / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.787e-05/0.8436, allocations: 36.31 kB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.8436, allocations: 192 / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.8436, allocations: 3.938 kB / 1.09 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.8436, allocations: 1.188 kB / 1.09 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.532e-05/0.8437, allocations: 8.531 kB / 1.09 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.121e-05/0.8438, allocations: 149.9 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.923e-05/0.8438, allocations: 28.31 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.587e-05/0.8438, allocations: 12.31 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.844, allocations: 81.3 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/0.844, allocations: 31.69 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.844, allocations: 0 / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001281/0.8441, allocations: 45.39 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.362e-05/0.8441, allocations: 52.53 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.732e-05/0.8442, allocations: 90.52 kB / 1.09 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.252e-06/0.8442, allocations: 25.7 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.114e-05/0.8442, allocations: 93.41 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.8442, allocations: 4.703 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.8442, allocations: 14.16 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.8443, allocations: 311.5 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.8443, allocations: 2.328 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.814e-06/0.8443, allocations: 3.031 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.953e-05/0.8444, allocations: 14.14 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.8444, allocations: 4.062 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.03e-05/0.8444, allocations: 44.45 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.8444, allocations: 5.562 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.8444, allocations: 0 / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.8445, allocations: 6.172 kB / 1.091 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.03e-05/0.8445, allocations: 6.516 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.8445, allocations: 0.8125 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.8445, allocations: 0.7031 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-06/0.8445, allocations: 1.094 kB / 1.091 GB, free: 3.41 MB / 0.8575 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 4.383e-05/0.8446, allocations: 112.6 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.665e-06/0.8446, allocations: 4.641 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.496e-05/0.8447, allocations: 47.03 kB / 1.091 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.8447, allocations: 1.062 kB / 1.091 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.8447, allocations: 3.938 kB / 1.091 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.8447, allocations: 1.75 kB / 1.091 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.092e-05/0.8448, allocations: 149.9 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8448, allocations: 0 / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.226e-05/0.8448, allocations: 7.344 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.8448, allocations: 4.734 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.8448, allocations: 9.281 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.8448, allocations: 3.938 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.8448, allocations: 0.7031 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.088e-05/0.8449, allocations: 65.42 kB / 1.091 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.512e-05/0.8449, allocations: 77.77 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.8449, allocations: 5.719 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.026e-05/0.8449, allocations: 0 / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.981e-05/0.845, allocations: 7.5 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.845, allocations: 1.125 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.112e-05/0.845, allocations: 75.8 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.845, allocations: 0 / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001882/0.8452, allocations: 4.312 kB / 1.091 GB, free: 2.789 MB / 0.8575 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.0001374/0.8453, allocations: 102.8 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.668e-05/0.8454, allocations: 15.67 kB / 1.092 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.8454, allocations: 4.062 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.151e-05/0.8454, allocations: 5.016 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.8456, allocations: 7.688 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001782/0.8458, allocations: 109.3 kB / 1.092 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.857e-05/0.8459, allocations: 0.672 MB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.8459, allocations: 10.86 kB / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.8459, allocations: 0 / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of Templates: time 0.001895/0.8478, allocations: 456 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches