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.001186/0.001186, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.212/2.212, allocations: 390.2 MB / 0.6646 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6624/0.6637, allocations: 140.4 MB / 0.9496 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001713/0.6654, allocations: 0.5936 MB / 0.9502 GB, free: 8.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002336/0.6657, allocations: 48.39 kB / 0.9502 GB, free: 8.887 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.462e-05/0.6657, allocations: 0 / 0.9502 GB, free: 8.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.6657, allocations: 0 / 0.9502 GB, free: 8.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.208e-06/0.6657, allocations: 0 / 0.9502 GB, free: 8.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001815/0.6659, allocations: 11.89 kB / 0.9502 GB, free: 8.879 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.948e-05/0.666, allocations: 10.83 kB / 0.9502 GB, free: 8.871 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.513e-05/0.666, allocations: 1.344 kB / 0.9502 GB, free: 8.871 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.323e-05/0.666, allocations: 1.375 kB / 0.9502 GB, free: 8.871 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.043e-05/0.6661, allocations: 5.219 kB / 0.9502 GB, free: 8.867 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.386e-06/0.6661, allocations: 0 / 0.9502 GB, free: 8.867 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.104e-05/0.6661, allocations: 9.031 kB / 0.9502 GB, free: 8.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.145e-06/0.6661, allocations: 0 / 0.9502 GB, free: 8.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.787e-05/0.6662, allocations: 5.047 kB / 0.9502 GB, free: 8.859 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.888e-05/0.6662, allocations: 12.27 kB / 0.9503 GB, free: 8.852 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.6662, allocations: 0 / 0.9503 GB, free: 8.852 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6663, allocations: 4 kB / 0.9503 GB, free: 8.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.6663, allocations: 3.938 kB / 0.9503 GB, free: 8.844 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.000209/0.6665, allocations: 316 kB / 0.9506 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.6665, allocations: 9.531 kB / 0.9506 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.6666, allocations: 2.156 kB / 0.9506 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.628e-05/0.6666, allocations: 164.3 kB / 0.9507 GB, free: 8.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.6666, allocations: 1.844 kB / 0.9507 GB, free: 8.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-06/0.6666, allocations: 384 / 0.9507 GB, free: 8.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.954e-05/0.6667, allocations: 42.84 kB / 0.9508 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.6667, allocations: 192 / 0.9508 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.6668, allocations: 3.938 kB / 0.9508 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.6668, allocations: 0 / 0.9508 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.015e-05/0.6668, allocations: 7.094 kB / 0.9508 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.637e-05/0.6669, allocations: 148.4 kB / 0.9509 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.896e-05/0.6669, allocations: 27.05 kB / 0.951 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.49e-05/0.6669, allocations: 6.828 kB / 0.951 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.6671, allocations: 84.33 kB / 0.951 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.6671, allocations: 35.67 kB / 0.9511 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.6671, allocations: 0 / 0.9511 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001156/0.6672, allocations: 50.58 kB / 0.9511 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.232e-05/0.6672, allocations: 51.41 kB / 0.9512 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.242e-05/0.6673, allocations: 91.61 kB / 0.9513 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.581e-06/0.6673, allocations: 25.7 kB / 0.9513 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.047e-06/0.6673, allocations: 88.27 kB / 0.9514 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.6673, allocations: 1.25 kB / 0.9514 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.253e-05/0.6673, allocations: 16.33 kB / 0.9514 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.756e-05/0.6674, allocations: 310.8 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.153e-05/0.6674, allocations: 2.812 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.005e-06/0.6674, allocations: 5.344 kB / 0.9517 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.586e-05/0.6674, allocations: 10.77 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.6674, allocations: 0 / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.656e-05/0.6675, allocations: 49.97 kB / 0.9517 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.6675, allocations: 6.969 kB / 0.9518 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.6675, allocations: 0 / 0.9518 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.6675, allocations: 3.938 kB / 0.9518 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.045e-05/0.6676, allocations: 7.625 kB / 0.9518 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.6676, allocations: 0 / 0.9518 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.198e-05/0.6676, allocations: 1.125 kB / 0.9518 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-06/0.6676, allocations: 0 / 0.9518 GB, free: 7.141 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 3.9e-05/0.6677, allocations: 112.3 kB / 0.9519 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-06/0.6677, allocations: 4.031 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.978e-05/0.6678, allocations: 49.92 kB / 0.9519 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.6678, allocations: 5.266 kB / 0.9519 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.6678, allocations: 0 / 0.9519 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.6678, allocations: 0 / 0.9519 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.5e-05/0.6678, allocations: 152.3 kB / 0.9521 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.6678, allocations: 0 / 0.9521 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.921e-05/0.6679, allocations: 3.719 kB / 0.9521 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.6679, allocations: 0 / 0.9521 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-06/0.6679, allocations: 7.922 kB / 0.9521 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.6679, allocations: 5.219 kB / 0.9521 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.6679, allocations: 0 / 0.9521 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.188e-05/0.6679, allocations: 62.39 kB / 0.9522 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.206e-05/0.668, allocations: 81.09 kB / 0.9522 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.666e-06/0.668, allocations: 9.125 kB / 0.9522 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.948e-06/0.668, allocations: 0 / 0.9522 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.017e-05/0.668, allocations: 5.328 kB / 0.9522 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.668, allocations: 5.344 kB / 0.9522 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.001e-05/0.668, allocations: 75.28 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.668, allocations: 1.188 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002061/0.6682, allocations: 3.656 kB / 0.9523 GB, free: 6.504 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.0001139/0.6684, allocations: 108.2 kB / 0.9524 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.621e-05/0.6684, allocations: 11.56 kB / 0.9524 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.6684, allocations: 0 / 0.9524 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.321e-05/0.6685, allocations: 8 kB / 0.9524 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.6686, allocations: 5.25 kB / 0.9525 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001376/0.6687, allocations: 84.09 kB / 0.9525 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.217e-05/0.6688, allocations: 0.6758 MB / 0.9532 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.08e-05/0.6688, allocations: 1.281 kB / 0.9532 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.21e-05/0.6688, allocations: 8.594 kB / 0.9532 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6688, allocations: 3.938 kB / 0.9532 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of Templates: time 0.001827/0.6707, allocations: 325.6 kB / 0.9535 GB, free: 5.418 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