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.001342/0.001342, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001195/0.001195, allocations: 191.3 kB / 16.25 MB, free: 6.625 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.399/1.399, allocations: 222.9 MB / 239.9 MB, free: 4.57 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.482/2.482, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.91 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8592/0.8607, allocations: 140.4 MB / 0.9491 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001843/0.8625, allocations: 0.6418 MB / 0.9497 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002564/0.8628, allocations: 42.95 kB / 0.9498 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.273e-05/0.8628, allocations: 4 kB / 0.9498 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.34e-05/0.8629, allocations: 0 / 0.9498 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.67e-06/0.8629, allocations: 1.312 kB / 0.9498 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.8631, allocations: 16.17 kB / 0.9498 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.258e-05/0.8632, allocations: 5.359 kB / 0.9498 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.919e-05/0.8633, allocations: 1.406 kB / 0.9498 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.521e-05/0.8633, allocations: 1.375 kB / 0.9498 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.115e-05/0.8633, allocations: 5.375 kB / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.137e-06/0.8633, allocations: 0 / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.8634, allocations: 12.17 kB / 0.9498 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.097e-05/0.8634, allocations: 5.438 kB / 0.9498 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.953e-05/0.8634, allocations: 0 / 0.9498 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.471e-05/0.8635, allocations: 16.44 kB / 0.9498 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.8635, allocations: 0 / 0.9498 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8635, allocations: 0 / 0.9498 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.8636, allocations: 1.156 kB / 0.9498 GB, free: 8.52 MB / 0.7169 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.0002483/0.8638, allocations: 313.1 kB / 0.9501 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.8639, allocations: 9.969 kB / 0.9501 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.8639, allocations: 4.875 kB / 0.9502 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.55e-05/0.8639, allocations: 164.4 kB / 0.9503 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.864, allocations: 13.41 kB / 0.9503 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.864, allocations: 1.344 kB / 0.9503 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.8641, allocations: 37.11 kB / 0.9504 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.8641, allocations: 1.906 kB / 0.9504 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.8641, allocations: 3.938 kB / 0.9504 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.8641, allocations: 0 / 0.9504 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.499e-05/0.8642, allocations: 6.453 kB / 0.9504 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001136/0.8643, allocations: 148.1 kB / 0.9505 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.447e-05/0.8644, allocations: 23.89 kB / 0.9505 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.74e-05/0.8644, allocations: 7.672 kB / 0.9505 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.8645, allocations: 84.06 kB / 0.9506 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.8646, allocations: 38.5 kB / 0.9507 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.322e-06/0.8646, allocations: 1.062 kB / 0.9507 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001283/0.8647, allocations: 45.44 kB / 0.9507 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.081e-05/0.8647, allocations: 53.28 kB / 0.9508 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.148e-05/0.8648, allocations: 93.86 kB / 0.9508 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.314e-06/0.8648, allocations: 29.7 kB / 0.9509 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.548e-06/0.8648, allocations: 80.14 kB / 0.951 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.8648, allocations: 1.75 kB / 0.951 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.8648, allocations: 12.62 kB / 0.951 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.265e-05/0.8649, allocations: 310.8 kB / 0.9513 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.8649, allocations: 2.688 kB / 0.9513 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.297e-06/0.8649, allocations: 9.266 kB / 0.9513 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.204e-05/0.865, allocations: 18.45 kB / 0.9513 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.865, allocations: 0 / 0.9513 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.571e-05/0.865, allocations: 37.48 kB / 0.9513 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.8651, allocations: 5.312 kB / 0.9513 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.8651, allocations: 3.984 kB / 0.9513 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.8651, allocations: 9.047 kB / 0.9513 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.66e-05/0.8652, allocations: 2.594 kB / 0.9513 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.8652, allocations: 1.406 kB / 0.9513 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.8652, allocations: 4.031 kB / 0.9514 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.8652, allocations: 1.25 kB / 0.9514 GB, free: 6.809 MB / 0.7169 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.098e-05/0.8653, allocations: 107.1 kB / 0.9515 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.063e-06/0.8653, allocations: 3.938 kB / 0.9515 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.122e-05/0.8654, allocations: 54.97 kB / 0.9515 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.8654, allocations: 0 / 0.9515 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.8654, allocations: 0 / 0.9515 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.8654, allocations: 1.344 kB / 0.9515 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.898e-05/0.8654, allocations: 151.1 kB / 0.9517 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.8654, allocations: 4.031 kB / 0.9517 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.008e-05/0.8655, allocations: 4.656 kB / 0.9517 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.8655, allocations: 3.938 kB / 0.9517 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.8655, allocations: 3.938 kB / 0.9517 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.8655, allocations: 0 / 0.9517 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.8655, allocations: 5.312 kB / 0.9517 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.965e-05/0.8656, allocations: 69.44 kB / 0.9517 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.685e-05/0.8656, allocations: 82.64 kB / 0.9518 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.8656, allocations: 3.938 kB / 0.9518 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.044e-05/0.8656, allocations: 0 / 0.9518 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.8657, allocations: 2.688 kB / 0.9518 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.8657, allocations: 3.984 kB / 0.9518 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.6e-05/0.8657, allocations: 75.28 kB / 0.9519 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8657, allocations: 1.312 kB / 0.9519 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002047/0.8659, allocations: 4 kB / 0.9519 GB, free: 6.172 MB / 0.7169 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.0001544/0.8661, allocations: 103.9 kB / 0.952 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.147e-05/0.8662, allocations: 10.88 kB / 0.952 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.8662, allocations: 0 / 0.952 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.597e-05/0.8662, allocations: 12.05 kB / 0.952 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.8663, allocations: 2.75 kB / 0.952 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002023/0.8665, allocations: 82.34 kB / 0.9521 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.8667, allocations: 0.6793 MB / 0.9528 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.485e-05/0.8667, allocations: 1.5 kB / 0.9528 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.434e-05/0.8667, allocations: 12.81 kB / 0.9528 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8667, allocations: 0 / 0.9528 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of Templates: time 0.002368/0.8691, allocations: 317.1 kB / 0.9531 GB, free: 5.094 MB / 0.7169 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