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.005222/0.005222, allocations: 100.2 kB / 15.73 MB, free: 6.027 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.001199/0.001199, allocations: 187.2 kB / 16.67 MB, free: 5.965 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.213/1.213, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.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.093/2.093, allocations: 390.2 MB / 0.6648 GB, free: 80 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001088, allocations: 68.27 kB / 0.9509 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2553, allocations: 140.4 MB / 1.088 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001525/0.2568, allocations: 0.5826 MB / 1.089 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002426/0.2571, allocations: 47.86 kB / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.603e-05/0.2571, allocations: 3.938 kB / 1.089 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.154e-05/0.2571, allocations: 3.938 kB / 1.089 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.04e-06/0.2571, allocations: 0 / 1.089 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.2573, allocations: 15.98 kB / 1.089 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.243e-05/0.2574, allocations: 3.984 kB / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.2574, allocations: 0 / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.351e-05/0.2575, allocations: 4 kB / 1.089 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 1.813e-05/0.2575, allocations: 0 / 1.089 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.255e-06/0.2575, allocations: 0 / 1.089 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.2576, allocations: 12 kB / 1.089 GB, free: 0.7422 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.005e-06/0.2576, allocations: 0 / 1.089 GB, free: 0.7422 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.888e-05/0.2576, allocations: 7.984 kB / 1.089 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.289e-05/0.2577, allocations: 15.92 kB / 1.089 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2577, allocations: 0 / 1.089 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2577, allocations: 0 / 1.089 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.2577, allocations: 0 / 1.089 GB, free: 0.7188 MB / 0.8419 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.0002757/0.258, allocations: 319.5 kB / 1.089 GB, free: 364 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.258, allocations: 11.97 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.411e-05/0.258, allocations: 0.9375 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.936e-05/0.2581, allocations: 172.4 kB / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.2581, allocations: 384 / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-06/0.2582, allocations: 384 / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.442e-05/0.2582, allocations: 34.25 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.3e-06/0.2583, allocations: 192 / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.2583, allocations: 3.938 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.2583, allocations: 0 / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.958e-05/0.2583, allocations: 4 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.2585, allocations: 149.7 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.614e-05/0.2585, allocations: 30.55 kB / 1.089 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.754e-05/0.2585, allocations: 9.203 kB / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.2587, allocations: 81.17 kB / 1.089 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.2587, allocations: 34.55 kB / 1.089 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.2587, allocations: 0 / 1.089 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001151/0.2588, allocations: 41.64 kB / 1.089 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.2589, allocations: 63.47 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.274e-05/0.2589, allocations: 89.86 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.2589, allocations: 25.7 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.009e-05/0.259, allocations: 80.14 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.259, allocations: 0 / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.259, allocations: 21.7 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.718e-05/0.2591, allocations: 314.8 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-06/0.2591, allocations: 0 / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.638e-06/0.2591, allocations: 8 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.65e-05/0.2592, allocations: 16.86 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2592, allocations: 0 / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.379e-05/0.2592, allocations: 45.53 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.2592, allocations: 8 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2593, allocations: 0 / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.2593, allocations: 3.938 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.815e-05/0.2593, allocations: 4 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.2593, allocations: 0 / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.244e-05/0.2593, allocations: 8.031 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-06/0.2594, allocations: 0 / 1.09 GB, free: 14.93 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 5.677e-05/0.2594, allocations: 113.8 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-06/0.2594, allocations: 4 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.2596, allocations: 40.77 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2596, allocations: 7.984 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2596, allocations: 0 / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.2596, allocations: 0 / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.342e-05/0.2597, allocations: 145.7 kB / 1.09 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.191e-05/0.2597, allocations: 8 kB / 1.09 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.979e-05/0.2597, allocations: 7.938 kB / 1.09 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.2597, allocations: 3.984 kB / 1.09 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.2597, allocations: 7.922 kB / 1.09 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.2597, allocations: 4 kB / 1.09 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2597, allocations: 0 / 1.09 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.259e-05/0.2598, allocations: 57.14 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.811e-05/0.2598, allocations: 85.12 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.317e-06/0.2599, allocations: 3.938 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-06/0.2599, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.849e-05/0.2599, allocations: 8 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.2599, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.998e-05/0.26, allocations: 75.28 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.26, allocations: 0 / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001789/0.2602, allocations: 4 kB / 1.091 GB, free: 14.26 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.0001246/0.2603, allocations: 115.1 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 6.32e-05/0.2604, allocations: 8 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.2604, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.2604, allocations: 8 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.2605, allocations: 4 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001735/0.2607, allocations: 81.06 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.2609, allocations: 0.6729 MB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.017e-05/0.2609, allocations: 0 / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.581e-05/0.261, allocations: 19.56 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.261, allocations: 0 / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of Templates: time 0.001838/0.2628, allocations: 329.9 kB / 1.092 GB, free: 12.97 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