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.001785/0.001785, allocations: 106.1 kB / 16.41 MB, free: 6.508 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.002017/0.002017, allocations: 187 kB / 17.34 MB, free: 5.742 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.485/1.485, 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 9.1.3-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 67.89 kB / 0.9516 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8228/0.8244, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001701/0.8261, allocations: 0.5768 MB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002666/0.8264, allocations: 62.12 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.649e-05/0.8264, allocations: 0 / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.198e-05/0.8265, allocations: 0 / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.8265, allocations: 0 / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.8267, allocations: 10.55 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.924e-05/0.8268, allocations: 2.828 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.34e-05/0.8268, allocations: 1.719 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.448e-05/0.8268, allocations: 1.062 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.419e-05/0.8269, allocations: 6.766 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.8269, allocations: 0 / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.958e-05/0.827, allocations: 10.02 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.698e-06/0.827, allocations: 9.062 kB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.019e-05/0.827, allocations: 1 kB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.439e-05/0.8271, allocations: 13.75 kB / 1.089 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.8271, allocations: 1.031 kB / 1.089 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.8271, allocations: 3.938 kB / 1.089 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.8271, allocations: 0 / 1.089 GB, free: 5.07 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002447/0.8274, allocations: 311.7 kB / 1.09 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.8274, allocations: 9.688 kB / 1.09 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.906e-05/0.8275, allocations: 5.594 kB / 1.09 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.703e-05/0.8275, allocations: 166.5 kB / 1.09 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.8276, allocations: 4.312 kB / 1.09 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.8276, allocations: 1.469 kB / 1.09 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.047e-05/0.8277, allocations: 30.92 kB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.8277, allocations: 1.5 kB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.8277, allocations: 4.5 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.8277, allocations: 0 / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.278e-05/0.8278, allocations: 4.922 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000101/0.8279, allocations: 153.1 kB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.785e-05/0.8279, allocations: 28.75 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.7e-05/0.8279, allocations: 12 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.8281, allocations: 81.61 kB / 1.09 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.8281, allocations: 32.38 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.8281, allocations: 0 / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001286/0.8282, allocations: 48.17 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.974e-05/0.8283, allocations: 57.33 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.958e-05/0.8283, allocations: 89.86 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.861e-06/0.8283, allocations: 26.77 kB / 1.09 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.053e-05/0.8283, allocations: 80.66 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.8283, allocations: 5.078 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.8284, allocations: 18.38 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.257e-05/0.8284, allocations: 311.6 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.127e-05/0.8284, allocations: 1.906 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.045e-06/0.8285, allocations: 6.453 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.873e-05/0.8285, allocations: 14.62 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8285, allocations: 1.156 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.307e-05/0.8286, allocations: 43.94 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.8286, allocations: 5.469 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.8286, allocations: 0 / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.8286, allocations: 8.641 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.097e-05/0.8287, allocations: 4.453 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.8287, allocations: 0 / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.467e-05/0.8287, allocations: 4.844 kB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-06/0.8287, allocations: 1 kB / 1.091 GB, free: 3.387 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 (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.504e-05/0.8287, allocations: 112.8 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.983e-06/0.8288, allocations: 0 / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.066e-05/0.8288, allocations: 46.94 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.8289, allocations: 1.734 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.8289, allocations: 0 / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.8289, allocations: 9.141 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.397e-05/0.8289, allocations: 153.9 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.8289, allocations: 0 / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.229e-05/0.829, allocations: 4 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.829, allocations: 4.594 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-06/0.829, allocations: 8.844 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.829, allocations: 0 / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.829, allocations: 1.609 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.064e-05/0.8291, allocations: 60.48 kB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.396e-05/0.8291, allocations: 82.88 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.8291, allocations: 5.641 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.046e-05/0.8291, allocations: 0 / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.168e-05/0.8291, allocations: 7.266 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.8291, allocations: 1.094 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.153e-05/0.8292, allocations: 75.28 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8292, allocations: 0 / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002053/0.8294, allocations: 3.5 kB / 1.091 GB, free: 2.77 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,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.0001374/0.8295, allocations: 111.2 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.097e-05/0.8296, allocations: 7.594 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.8296, allocations: 1.219 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.236e-05/0.8296, allocations: 8.547 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.8298, allocations: 3.297 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001777/0.83, allocations: 109 kB / 1.092 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.213e-05/0.8301, allocations: 0.6725 MB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.646e-05/0.8301, allocations: 13.2 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.8301, allocations: 4 kB / 1.092 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of Templates: time 0.001836/0.8319, allocations: 454.1 kB / 1.093 GB, free: 1.809 MB / 0.8575 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/jenkins1/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