Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_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.001509/0.001509, allocations: 105 kB / 16.41 MB, free: 6.465 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.00153/0.00153, allocations: 187 kB / 17.34 MB, free: 5.719 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.614/2.614, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.91 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9094/0.9109, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003067/0.914, allocations: 1.504 MB / 1.21 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004468/0.9145, allocations: 131.6 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.88e-05/0.9146, allocations: 0 / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.636e-05/0.9146, allocations: 3.984 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.472e-05/0.9147, allocations: 3.938 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.915, allocations: 23.92 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.293e-05/0.9151, allocations: 23.98 kB / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.9152, allocations: 11.98 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.076e-05/0.9153, allocations: 7.984 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.164e-05/0.9153, allocations: 23.86 kB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.9154, allocations: 11.94 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.606e-05/0.9154, allocations: 11.98 kB / 1.21 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.845e-05/0.9154, allocations: 7.938 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.283e-05/0.9155, allocations: 15.94 kB / 1.21 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.9156, allocations: 35.88 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.9156, allocations: 0 / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.773e-06/0.9157, allocations: 0 / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.9157, allocations: 0 / 1.21 GB, free: 11.77 MB / 0.9356 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.0005122/0.9162, allocations: 343.3 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.9162, allocations: 16.03 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.9163, allocations: 0.9375 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.9164, allocations: 164.4 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.9164, allocations: 8.375 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.9165, allocations: 384 / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.9167, allocations: 58.23 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.9167, allocations: 4.172 kB / 1.211 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.9167, allocations: 11.88 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.9167, allocations: 0 / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.9169, allocations: 43.95 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003987/0.9173, allocations: 260.9 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.9177, allocations: 62.47 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.9178, allocations: 32.84 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001693/0.918, allocations: 81.11 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.918, allocations: 34.55 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.403e-06/0.918, allocations: 0 / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004148/0.9184, allocations: 89.64 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.9185, allocations: 51.41 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.646e-05/0.9186, allocations: 105.8 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.9186, allocations: 25.7 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.536e-05/0.9187, allocations: 84.14 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.9187, allocations: 13.72 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.9187, allocations: 17.7 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.9189, allocations: 310.8 kB / 1.212 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.919, allocations: 23.92 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.087e-05/0.9191, allocations: 31.91 kB / 1.212 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.9193, allocations: 44.81 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.9193, allocations: 3.938 kB / 1.212 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000232/0.9195, allocations: 73.56 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.9195, allocations: 4 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.9195, allocations: 0 / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.9196, allocations: 4 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.911e-05/0.9197, allocations: 15.92 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.9197, allocations: 3.984 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.324e-05/0.9197, allocations: 15.92 kB / 1.212 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.9198, allocations: 0 / 1.212 GB, free: 9.535 MB / 0.9356 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 8.581e-05/0.9199, allocations: 113.8 kB / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.9199, allocations: 0 / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002793/0.9202, allocations: 85.66 kB / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.9202, allocations: 0 / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.9202, allocations: 0 / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.9202, allocations: 4.031 kB / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.9204, allocations: 169.6 kB / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.9204, allocations: 0 / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.164e-05/0.9205, allocations: 11.98 kB / 1.213 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.9205, allocations: 0 / 1.213 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.9205, allocations: 0 / 1.213 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.9205, allocations: 4 kB / 1.213 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.9205, allocations: 7.938 kB / 1.213 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.9208, allocations: 171.4 kB / 1.213 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.9209, allocations: 84.95 kB / 1.213 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.9209, allocations: 8 kB / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.859e-05/0.921, allocations: 3.984 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.921, allocations: 8 kB / 1.213 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-06/0.921, allocations: 0 / 1.213 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.835e-05/0.9211, allocations: 87.27 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.11e-07/0.9211, allocations: 0 / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000241/0.9214, allocations: 8 kB / 1.213 GB, free: 8.68 MB / 0.9356 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.0001642/0.9215, allocations: 103.2 kB / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002545/0.9218, allocations: 47.89 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.9218, allocations: 4 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.9219, allocations: 27.97 kB / 1.213 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.9222, allocations: 3.938 kB / 1.213 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003418/0.9226, allocations: 143.1 kB / 1.213 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.9229, allocations: 0.6807 MB / 1.214 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.923, allocations: 7.438 kB / 1.214 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.923, allocations: 0 / 1.214 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of Templates: time 0.002418/0.9254, allocations: 0.74 MB / 1.215 GB, free: 6.859 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches