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.007457/0.007457, allocations: 99.14 kB / 15.73 MB, free: 6.062 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.001786/0.001786, allocations: 188.5 kB / 16.67 MB, free: 5.969 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.17 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.258/2.258, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 71.89 kB / 0.9509 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9221/0.9235, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001544/0.9251, allocations: 0.5754 MB / 1.089 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002833/0.9254, allocations: 53.69 kB / 1.089 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.918e-05/0.9254, allocations: 0 / 1.089 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.399e-05/0.9254, allocations: 0 / 1.089 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.993e-06/0.9255, allocations: 0 / 1.089 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.9257, allocations: 14.22 kB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.126e-05/0.9258, allocations: 3.703 kB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.058e-05/0.9258, allocations: 1.844 kB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.68e-05/0.9258, allocations: 1.031 kB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.456e-05/0.9259, allocations: 9.547 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.878e-06/0.9259, allocations: 0 / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.23e-05/0.926, allocations: 11.2 kB / 1.089 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.093e-05/0.926, allocations: 7.922 kB / 1.089 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.169e-05/0.926, allocations: 5.125 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.98e-05/0.9261, allocations: 6.719 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.9261, allocations: 1.125 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.904e-06/0.9261, allocations: 0 / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.9261, allocations: 0 / 1.089 GB, free: 5.102 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.0002458/0.9264, allocations: 318.8 kB / 1.089 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.9264, allocations: 9.312 kB / 1.089 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.9265, allocations: 2.5 kB / 1.089 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.931e-05/0.9265, allocations: 161 kB / 1.089 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.9265, allocations: 2.062 kB / 1.089 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.9266, allocations: 1.375 kB / 1.089 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.496e-05/0.9267, allocations: 35.09 kB / 1.089 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.9267, allocations: 4.172 kB / 1.089 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.9267, allocations: 5.062 kB / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.9267, allocations: 0 / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.637e-05/0.9267, allocations: 8.516 kB / 1.089 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001071/0.9268, allocations: 150.9 kB / 1.089 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.304e-05/0.9269, allocations: 28.33 kB / 1.089 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.871e-05/0.9269, allocations: 8.281 kB / 1.089 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/0.9271, allocations: 81.55 kB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.9271, allocations: 39.59 kB / 1.089 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.9271, allocations: 4 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001335/0.9272, allocations: 45.39 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.9273, allocations: 53.2 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.049e-05/0.9273, allocations: 90.61 kB / 1.09 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.871e-06/0.9273, allocations: 25.7 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.979e-06/0.9273, allocations: 80.14 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.9273, allocations: 5.297 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.579e-05/0.9274, allocations: 17.95 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.659e-05/0.9274, allocations: 316.4 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.231e-05/0.9274, allocations: 2.641 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.414e-06/0.9274, allocations: 2.219 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.898e-05/0.9275, allocations: 17.91 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.9275, allocations: 0.5625 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.882e-05/0.9275, allocations: 35.86 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.9276, allocations: 6.109 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.9276, allocations: 0 / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.9276, allocations: 9.188 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.05e-05/0.9276, allocations: 3.516 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.9276, allocations: 0.7031 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.215e-05/0.9277, allocations: 4.906 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.9277, allocations: 5 kB / 1.09 GB, free: 3.414 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.434e-05/0.9277, allocations: 111.5 kB / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.714e-06/0.9277, allocations: 1.344 kB / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.893e-05/0.9278, allocations: 50.61 kB / 1.09 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.9278, allocations: 5.094 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.9278, allocations: 0.7969 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.9278, allocations: 1.094 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.996e-05/0.9279, allocations: 148.8 kB / 1.09 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.9279, allocations: 1.125 kB / 1.09 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.096e-05/0.9279, allocations: 3.375 kB / 1.09 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.9279, allocations: 1.344 kB / 1.09 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.9279, allocations: 4.547 kB / 1.09 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.9279, allocations: 5 kB / 1.09 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.9279, allocations: 0 / 1.09 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.948e-05/0.928, allocations: 68.8 kB / 1.091 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.452e-05/0.928, allocations: 78.53 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.092e-05/0.928, allocations: 5.438 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.9281, allocations: 4.688 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.042e-05/0.9281, allocations: 2.609 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.9281, allocations: 4.75 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.366e-05/0.9281, allocations: 75.89 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8e-08/0.9281, allocations: 5.125 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001881/0.9283, allocations: 3.281 kB / 1.091 GB, free: 2.793 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.0001295/0.9284, allocations: 102.5 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.106e-05/0.9285, allocations: 11.92 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.9285, allocations: 0.8438 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.709e-05/0.9286, allocations: 12.14 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.9287, allocations: 2.984 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001542/0.9289, allocations: 83.55 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.888e-05/0.9289, allocations: 0.6725 MB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.229e-05/0.929, allocations: 1.094 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.929, allocations: 9.172 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.929, allocations: 0.7188 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of Templates: time 0.002068/0.9311, allocations: 330.9 kB / 1.092 GB, free: 1.816 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/jenkins/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