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.001015/0.001015, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007627/0.007627, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.448/1.448, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.481/2.481, allocations: 390.9 MB / 0.6663 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004126/0.0004128, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8703/0.8707, allocations: 142.4 MB / 0.9551 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.000696/0.8715, allocations: 319.8 kB / 0.9554 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002934/0.8718, allocations: 44.39 kB / 0.9554 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.242e-05/0.8718, allocations: 0 / 0.9554 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.123e-05/0.8718, allocations: 0 / 0.9554 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.871e-06/0.8718, allocations: 0 / 0.9554 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.872, allocations: 20.03 kB / 0.9554 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.448e-05/0.8721, allocations: 1.125 kB / 0.9554 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.305e-05/0.8721, allocations: 2.312 kB / 0.9554 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.355e-05/0.8721, allocations: 0 / 0.9554 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.46e-05/0.8722, allocations: 9 kB / 0.9554 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.398e-06/0.8722, allocations: 5.094 kB / 0.9554 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.599e-05/0.8723, allocations: 8.391 kB / 0.9554 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.766e-06/0.8723, allocations: 0 / 0.9554 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.8723, allocations: 30.75 kB / 0.9555 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.265e-05/0.8724, allocations: 12.47 kB / 0.9555 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.8724, allocations: 0 / 0.9555 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.883e-06/0.8724, allocations: 0 / 0.9555 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.8724, allocations: 3.938 kB / 0.9555 GB, free: 7.5 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.0002103/0.8726, allocations: 311.2 kB / 0.9558 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.8727, allocations: 8.812 kB / 0.9558 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.384e-05/0.8727, allocations: 6.094 kB / 0.9558 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.991e-05/0.8728, allocations: 164.3 kB / 0.956 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.8728, allocations: 1.688 kB / 0.956 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.8728, allocations: 4.375 kB / 0.956 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.485e-05/0.8729, allocations: 33.75 kB / 0.956 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.8729, allocations: 4.125 kB / 0.956 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.8729, allocations: 5.125 kB / 0.956 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.8729, allocations: 0 / 0.956 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.172e-05/0.873, allocations: 3.438 kB / 0.956 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001116/0.8731, allocations: 155.9 kB / 0.9562 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.738e-05/0.8731, allocations: 19.27 kB / 0.9562 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.8732, allocations: 10.95 kB / 0.9562 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001593/0.8733, allocations: 80.52 kB / 0.9563 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.8734, allocations: 35.61 kB / 0.9563 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.884e-06/0.8734, allocations: 0 / 0.9563 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001382/0.8735, allocations: 49.77 kB / 0.9563 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.481e-05/0.8735, allocations: 56.56 kB / 0.9564 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.083e-05/0.8736, allocations: 89.86 kB / 0.9565 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.532e-06/0.8736, allocations: 26.86 kB / 0.9565 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.067e-05/0.8736, allocations: 80.14 kB / 0.9566 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.8736, allocations: 5.047 kB / 0.9566 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.017e-05/0.8736, allocations: 10.69 kB / 0.9566 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.8737, allocations: 312 kB / 0.9569 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.8737, allocations: 5.188 kB / 0.9569 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.8737, allocations: 6.125 kB / 0.9569 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.864e-05/0.8738, allocations: 14.27 kB / 0.9569 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.8738, allocations: 0 / 0.9569 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.283e-05/0.8738, allocations: 41.38 kB / 0.957 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.8738, allocations: 5.625 kB / 0.957 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.8738, allocations: 0 / 0.957 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.8739, allocations: 9.016 kB / 0.957 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.552e-05/0.8739, allocations: 2.5 kB / 0.957 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.874, allocations: 4.906 kB / 0.957 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.554e-05/0.874, allocations: 0 / 0.957 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.874, allocations: 1.375 kB / 0.957 GB, free: 5.801 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 4.351e-05/0.874, allocations: 107 kB / 0.9571 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-06/0.8741, allocations: 5.016 kB / 0.9571 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.538e-05/0.8741, allocations: 57.45 kB / 0.9571 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.8741, allocations: 1.219 kB / 0.9571 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.8742, allocations: 3.938 kB / 0.9571 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.8742, allocations: 9.078 kB / 0.9572 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.897e-05/0.8742, allocations: 146.8 kB / 0.9573 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.8742, allocations: 1.031 kB / 0.9573 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.091e-05/0.8743, allocations: 2.281 kB / 0.9573 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.8743, allocations: 0.9688 kB / 0.9573 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.8743, allocations: 5.031 kB / 0.9573 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.8743, allocations: 0 / 0.9573 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.8743, allocations: 3.984 kB / 0.9573 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.501e-05/0.8744, allocations: 69.95 kB / 0.9574 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.8744, allocations: 78.05 kB / 0.9575 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.8744, allocations: 8.922 kB / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.8744, allocations: 0 / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.71e-05/0.8745, allocations: 2.375 kB / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.8745, allocations: 0 / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.231e-05/0.8745, allocations: 76.53 kB / 0.9575 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8745, allocations: 0 / 0.9575 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002114/0.8747, allocations: 3.406 kB / 0.9575 GB, free: 5.164 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.0001438/0.8748, allocations: 105.6 kB / 0.9576 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.876e-05/0.8749, allocations: 14.17 kB / 0.9577 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.8749, allocations: 0 / 0.9577 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.494e-05/0.875, allocations: 8.406 kB / 0.9577 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.8751, allocations: 1.031 kB / 0.9577 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001745/0.8753, allocations: 87.34 kB / 0.9577 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.857e-05/0.8754, allocations: 0.6752 MB / 0.9584 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.356e-05/0.8754, allocations: 2 kB / 0.9584 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.278e-05/0.8754, allocations: 8.406 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8754, allocations: 0.8438 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of Templates: time 0.002463/0.8779, allocations: 299.2 kB / 0.9587 GB, free: 4.102 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