Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008253/0.008253, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001939/0.00194, allocations: 188.6 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.902/2.902, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 71.89 kB / 1.054 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3301, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002786/0.333, allocations: 0.5874 MB / 1.208 GB, free: 9.527 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003633/0.3334, allocations: 55.78 kB / 1.208 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.878e-05/0.3334, allocations: 0 / 1.208 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.916e-05/0.3334, allocations: 0 / 1.208 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.593e-06/0.3335, allocations: 7.938 kB / 1.208 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.3338, allocations: 8 kB / 1.208 GB, free: 9.457 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.628e-05/0.3339, allocations: 4 kB / 1.208 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.356e-05/0.3339, allocations: 7.984 kB / 1.208 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.47e-05/0.334, allocations: 0 / 1.208 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.914e-05/0.334, allocations: 7.984 kB / 1.208 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.334, allocations: 0 / 1.208 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.3342, allocations: 11.94 kB / 1.208 GB, free: 9.426 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.3342, allocations: 0 / 1.208 GB, free: 9.426 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.896e-05/0.3343, allocations: 0 / 1.208 GB, free: 9.426 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.3344, allocations: 15.92 kB / 1.208 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3344, allocations: 4 kB / 1.208 GB, free: 9.406 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.126e-06/0.3345, allocations: 0 / 1.208 GB, free: 9.406 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.735e-06/0.3345, allocations: 0 / 1.208 GB, free: 9.406 MB / 0.9669 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.0005499/0.335, allocations: 315.6 kB / 1.208 GB, free: 9.047 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.49e-05/0.3351, allocations: 8.625 kB / 1.208 GB, free: 9.039 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.308e-05/0.3352, allocations: 30.75 kB / 1.208 GB, free: 9 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.3352, allocations: 0.9375 kB / 1.208 GB, free: 9 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.3354, allocations: 160.4 kB / 1.208 GB, free: 8.805 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.3354, allocations: 4.375 kB / 1.208 GB, free: 8.801 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.3355, allocations: 8.375 kB / 1.208 GB, free: 8.793 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.3356, allocations: 34.25 kB / 1.209 GB, free: 8.754 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3356, allocations: 3.938 kB / 1.209 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3357, allocations: 0 / 1.209 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.3357, allocations: 0 / 1.209 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.432e-05/0.3357, allocations: 7.938 kB / 1.209 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002668/0.336, allocations: 149.7 kB / 1.209 GB, free: 8.547 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.072e-05/0.3361, allocations: 22.61 kB / 1.209 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.52e-05/0.3361, allocations: 16.91 kB / 1.209 GB, free: 8.496 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000303/0.3364, allocations: 81.11 kB / 1.209 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.3365, allocations: 34.55 kB / 1.209 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.3365, allocations: 0 / 1.209 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002662/0.3368, allocations: 45.58 kB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.3368, allocations: 55.34 kB / 1.209 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.516e-05/0.3369, allocations: 89.98 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.337, allocations: 33.7 kB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/0.337, allocations: 80.14 kB / 1.209 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.747e-05/0.3371, allocations: 7.891 kB / 1.209 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/0.3371, allocations: 21.7 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002066/0.3374, allocations: 310.8 kB / 1.209 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.639e-05/0.3374, allocations: 3.938 kB / 1.209 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.489e-05/0.3374, allocations: 4 kB / 1.209 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.092e-05/0.3375, allocations: 16.92 kB / 1.209 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3375, allocations: 0 / 1.209 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.32e-05/0.3376, allocations: 41.62 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.3376, allocations: 4 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3376, allocations: 3.938 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.3377, allocations: 4 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.97e-05/0.3378, allocations: 0 / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3378, allocations: 0 / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.921e-05/0.3378, allocations: 4.281 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.3378, allocations: 0 / 1.21 GB, free: 7.582 MB / 0.9669 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 0.0001424/0.338, allocations: 117.9 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.148e-05/0.338, allocations: 0 / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.3381, allocations: 52.64 kB / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3382, allocations: 0 / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.3382, allocations: 7.984 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3382, allocations: 4 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.3384, allocations: 141.7 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3384, allocations: 0 / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.457e-05/0.3384, allocations: 8.031 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.3385, allocations: 0 / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.3385, allocations: 7.922 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3385, allocations: 0 / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3385, allocations: 0 / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.3386, allocations: 61.14 kB / 1.21 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.078e-05/0.3387, allocations: 81.09 kB / 1.21 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.3387, allocations: 3.938 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.35e-05/0.3388, allocations: 7.969 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.3388, allocations: 4 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.3388, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.995e-05/0.3389, allocations: 75.28 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6.71e-07/0.3389, allocations: 0 / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002674/0.3392, allocations: 8 kB / 1.21 GB, free: 6.914 MB / 0.9669 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.0007418/0.3399, allocations: 0.6161 MB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00013/0.3401, allocations: 11.92 kB / 1.211 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3401, allocations: 0 / 1.211 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.328e-05/0.3401, allocations: 8 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001727/0.3403, allocations: 4 kB / 1.211 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004543/0.3407, allocations: 118.6 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.3411, allocations: 0.6769 MB / 1.211 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.835e-05/0.3411, allocations: 0 / 1.211 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.688e-05/0.3412, allocations: 7.438 kB / 1.211 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of SimCode: time 3.51e-07/0.3412, allocations: 0 / 1.211 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.3627, allocations: 1.074 MB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.22/8.583, allocations: 11.94 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,fac Variables in the result:fac,n,time