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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00121/0.00121, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001166/0.001166, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.192/1.192, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.203/2.203, allocations: 442.5 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 74.56 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2549, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001499/0.2564, allocations: 0.5977 MB / 1.027 GB, free: 1.449 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002146/0.2567, allocations: 51.8 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.599e-05/0.2567, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.2567, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.748e-06/0.2567, allocations: 4 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000197/0.2569, allocations: 11.92 kB / 1.027 GB, free: 1.383 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 3.946e-05/0.257, allocations: 4 kB / 1.027 GB, free: 1.379 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.182e-05/0.257, allocations: 4 kB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.177e-05/0.257, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 1.828e-05/0.2571, allocations: 3.984 kB / 1.027 GB, free: 1.371 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.738e-06/0.2571, allocations: 0 / 1.027 GB, free: 1.371 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.413e-05/0.2571, allocations: 15.98 kB / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.764e-06/0.2572, allocations: 0 / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.772e-05/0.2572, allocations: 7.938 kB / 1.027 GB, free: 1.348 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.173e-05/0.2572, allocations: 12 kB / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2573, allocations: 0 / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2573, allocations: 0 / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.2573, allocations: 0 / 1.027 GB, free: 1.336 MB / 0.795 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.000251/0.2575, allocations: 311.6 kB / 1.028 GB, free: 0.9805 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.2576, allocations: 8.031 kB / 1.028 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.2576, allocations: 4.938 kB / 1.028 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.706e-05/0.2577, allocations: 164.4 kB / 1.028 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.2577, allocations: 4.312 kB / 1.028 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.2577, allocations: 384 / 1.028 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.544e-05/0.2578, allocations: 38.25 kB / 1.028 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.2578, allocations: 192 / 1.028 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.2578, allocations: 3.938 kB / 1.028 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2578, allocations: 0 / 1.028 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.83e-05/0.2579, allocations: 4 kB / 1.028 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001211/0.258, allocations: 153.7 kB / 1.028 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 4.467e-05/0.258, allocations: 32.94 kB / 1.028 GB, free: 488 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.45e-05/0.2581, allocations: 4.859 kB / 1.028 GB, free: 480 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.2582, allocations: 85.16 kB / 1.028 GB, free: 376 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.2582, allocations: 34.56 kB / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.2582, allocations: 0 / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0001129/0.2583, allocations: 37.64 kB / 1.028 GB, free: 288 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.2584, allocations: 59.53 kB / 1.028 GB, free: 216 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.951e-05/0.2584, allocations: 97.84 kB / 1.028 GB, free: 108 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.2584, allocations: 25.7 kB / 1.028 GB, free: 76 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.225e-05/0.2585, allocations: 88.02 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.2585, allocations: 0 / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.2585, allocations: 13.72 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.462e-05/0.2586, allocations: 314.8 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.179e-05/0.2586, allocations: 4 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.192e-06/0.2587, allocations: 8 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.796e-05/0.2587, allocations: 12.84 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.2587, allocations: 0 / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.614e-05/0.2587, allocations: 41.61 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2588, allocations: 8 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2588, allocations: 0 / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2588, allocations: 3.938 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.921e-05/0.2588, allocations: 4 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.2589, allocations: 7.922 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.226e-05/0.2589, allocations: 4.094 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-06/0.2589, allocations: 0 / 1.029 GB, free: 15.55 MB / 0.8106 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 6.534e-05/0.259, allocations: 113.8 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.259, allocations: 0 / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.233e-05/0.2591, allocations: 48.75 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2591, allocations: 0 / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2591, allocations: 0 / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.2591, allocations: 0 / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.208e-05/0.2592, allocations: 157.7 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2592, allocations: 0 / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.008e-05/0.2592, allocations: 7.984 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.2592, allocations: 0 / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.2592, allocations: 7.938 kB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2592, allocations: 0 / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2592, allocations: 3.938 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.579e-05/0.2593, allocations: 61.12 kB / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.2593, allocations: 81.14 kB / 1.029 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.2593, allocations: 3.938 kB / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.518e-06/0.2594, allocations: 0 / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.667e-05/0.2594, allocations: 7.984 kB / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.2594, allocations: 0 / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.498e-05/0.2594, allocations: 75.28 kB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2594, allocations: 3.938 kB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001691/0.2596, allocations: 4 kB / 1.029 GB, free: 14.88 MB / 0.8106 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.0001542/0.2598, allocations: 111.2 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.65e-05/0.2598, allocations: 11.94 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2598, allocations: 0 / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.347e-05/0.2599, allocations: 4 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.26, allocations: 7.938 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001845/0.2602, allocations: 81.06 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.2604, allocations: 0.6729 MB / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.155e-05/0.2604, allocations: 0 / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.4e-05/0.2604, allocations: 15.56 kB / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of SimCode: time 2.01e-07/0.2604, allocations: 0 / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of Templates: time 0.002056/0.2625, allocations: 323.4 kB / 1.031 GB, free: 13.6 MB / 0.8106 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 -s cvode -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