Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006505/0.006505, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.00134/0.00134, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.317/2.317, allocations: 390.2 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 0.9509 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.063/1.064, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002715/1.067, allocations: 1.514 MB / 1.089 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00038/1.067, allocations: 124.6 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.165e-05/1.067, allocations: 0 / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.606e-05/1.067, allocations: 0.5625 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.257e-05/1.067, allocations: 5.062 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002152/1.067, allocations: 27.8 kB / 1.09 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.262e-05/1.068, allocations: 36.67 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/1.068, allocations: 9.609 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.477e-05/1.068, allocations: 18.55 kB / 1.09 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.853e-05/1.068, allocations: 16.78 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.477e-05/1.068, allocations: 3.156 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.932e-05/1.068, allocations: 12.45 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.434e-05/1.068, allocations: 2.734 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.623e-05/1.068, allocations: 11.92 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001268/1.068, allocations: 34.45 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/1.068, allocations: 1.734 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.324e-06/1.068, allocations: 0 / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.929e-06/1.068, allocations: 0 / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004245/1.068, allocations: 353.6 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/1.069, allocations: 8.562 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/1.069, allocations: 6.906 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.038e-05/1.069, allocations: 163.7 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/1.069, allocations: 1.5 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/1.069, allocations: 3.328 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/1.069, allocations: 61.41 kB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/1.069, allocations: 1.25 kB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/1.069, allocations: 7.938 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/1.069, allocations: 1.656 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002027/1.069, allocations: 37.64 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003517/1.07, allocations: 263.7 kB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/1.07, allocations: 65.56 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/1.07, allocations: 25.42 kB / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/1.07, allocations: 82.91 kB / 1.091 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/1.07, allocations: 35.22 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/1.07, allocations: 1.375 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004273/1.071, allocations: 96 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/1.071, allocations: 51.92 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.853e-05/1.071, allocations: 101.4 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/1.071, allocations: 27.02 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.355e-05/1.071, allocations: 94.36 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/1.071, allocations: 13.25 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/1.071, allocations: 13.94 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.489e-05/1.071, allocations: 317.9 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.88e-05/1.071, allocations: 19.72 kB / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.719e-05/1.071, allocations: 20.25 kB / 1.091 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/1.071, allocations: 50.47 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/1.071, allocations: 3.938 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002101/1.071, allocations: 68.98 kB / 1.092 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.072, allocations: 13.73 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/1.072, allocations: 0 / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/1.072, allocations: 1.75 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.342e-05/1.072, allocations: 19.14 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/1.072, allocations: 0 / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.636e-05/1.072, allocations: 6.594 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/1.072, allocations: 5.734 kB / 1.092 GB, free: 2.434 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.399e-05/1.072, allocations: 112.1 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/1.072, allocations: 6.172 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/1.072, allocations: 82.34 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/1.072, allocations: 1.094 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/1.072, allocations: 0 / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/1.072, allocations: 0.6094 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/1.072, allocations: 163.8 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/1.072, allocations: 1.125 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.331e-05/1.072, allocations: 13.59 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/1.072, allocations: 5.656 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/1.072, allocations: 1.094 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.072, allocations: 0.6562 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.072, allocations: 1.062 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/1.073, allocations: 177.5 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.938e-05/1.073, allocations: 78.08 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/1.073, allocations: 1.891 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.394e-05/1.073, allocations: 9.969 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.08e-05/1.073, allocations: 5.031 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/1.073, allocations: 6.047 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.329e-05/1.073, allocations: 83.94 kB / 1.092 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.073, allocations: 0 / 1.092 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002179/1.073, allocations: 6.75 kB / 1.092 GB, free: 1.734 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001376/1.073, allocations: 100.6 kB / 1.092 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002565/1.073, allocations: 55.11 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/1.073, allocations: 0 / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/1.074, allocations: 24.5 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/1.074, allocations: 10.33 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002685/1.074, allocations: 109.9 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001131/1.074, allocations: 0.682 MB / 1.093 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.236e-05/1.074, allocations: 7.141 kB / 1.093 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.839e-05/1.074, allocations: 10.67 kB / 1.093 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of SimCode: time 2.01e-07/1.074, allocations: 8.594 kB / 1.093 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of Templates: time 0.003231/1.078, allocations: 0.7001 MB / 1.094 GB, free: 0.7148 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches