Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_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.005521/0.005521, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001401/0.001401, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.643/2.643, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 75.88 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3115, allocations: 151.6 MB / 1.166 GB, free: 7.273 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001851/0.3134, allocations: 0.5767 MB / 1.167 GB, free: 6.695 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003041/0.3137, allocations: 55.78 kB / 1.167 GB, free: 6.641 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.081e-05/0.3137, allocations: 0 / 1.167 GB, free: 6.641 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.301e-05/0.3137, allocations: 0 / 1.167 GB, free: 6.641 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.3138, allocations: 0 / 1.167 GB, free: 6.641 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.3141, allocations: 15.92 kB / 1.167 GB, free: 6.625 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 4.848e-05/0.3141, allocations: 4 kB / 1.167 GB, free: 6.621 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.291e-05/0.3142, allocations: 0 / 1.167 GB, free: 6.621 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.672e-05/0.3142, allocations: 4 kB / 1.167 GB, free: 6.617 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 2.504e-05/0.3142, allocations: 7.922 kB / 1.167 GB, free: 6.609 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.3143, allocations: 0 / 1.167 GB, free: 6.609 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.317e-05/0.3143, allocations: 12 kB / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.3144, allocations: 0 / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.374e-05/0.3144, allocations: 7.984 kB / 1.167 GB, free: 6.59 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 9.59e-05/0.3145, allocations: 7.984 kB / 1.167 GB, free: 6.582 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3145, allocations: 4 kB / 1.167 GB, free: 6.578 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3145, allocations: 3.938 kB / 1.167 GB, free: 6.574 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.3145, allocations: 0 / 1.167 GB, free: 6.574 MB / 0.92 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.000349/0.3149, allocations: 315.8 kB / 1.167 GB, free: 6.215 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3149, allocations: 8.031 kB / 1.167 GB, free: 6.207 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.554e-05/0.315, allocations: 34.75 kB / 1.167 GB, free: 6.164 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.315, allocations: 12.89 kB / 1.167 GB, free: 6.152 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.3151, allocations: 160.4 kB / 1.167 GB, free: 5.957 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.3152, allocations: 4.312 kB / 1.167 GB, free: 5.953 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.605e-06/0.3152, allocations: 384 / 1.167 GB, free: 5.953 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.3153, allocations: 38.19 kB / 1.167 GB, free: 5.91 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.3153, allocations: 7.922 kB / 1.167 GB, free: 5.902 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-06/0.3153, allocations: 0 / 1.167 GB, free: 5.902 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3153, allocations: 0 / 1.167 GB, free: 5.902 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.656e-05/0.3154, allocations: 4 kB / 1.167 GB, free: 5.898 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001677/0.3155, allocations: 149.7 kB / 1.168 GB, free: 5.703 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.975e-05/0.3156, allocations: 30.94 kB / 1.168 GB, free: 5.664 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.378e-05/0.3156, allocations: 4.859 kB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001992/0.3158, allocations: 81.17 kB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.3159, allocations: 34.5 kB / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/0.3159, allocations: 0 / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0001602/0.3161, allocations: 53.62 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.3161, allocations: 51.41 kB / 1.168 GB, free: 5.395 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.281e-05/0.3162, allocations: 89.86 kB / 1.168 GB, free: 5.297 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.3162, allocations: 25.7 kB / 1.168 GB, free: 5.266 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.693e-05/0.3162, allocations: 80.14 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.3162, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.3163, allocations: 21.7 kB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3164, allocations: 314.8 kB / 1.168 GB, free: 4.84 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.623e-05/0.3164, allocations: 8.125 kB / 1.168 GB, free: 4.832 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.627e-06/0.3165, allocations: 0 / 1.168 GB, free: 4.832 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.882e-05/0.3165, allocations: 16.8 kB / 1.168 GB, free: 4.812 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3165, allocations: 0 / 1.168 GB, free: 4.812 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.149e-05/0.3166, allocations: 37.69 kB / 1.168 GB, free: 4.77 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3166, allocations: 8 kB / 1.168 GB, free: 4.762 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.3166, allocations: 3.938 kB / 1.168 GB, free: 4.758 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3166, allocations: 0 / 1.168 GB, free: 4.758 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.834e-05/0.3167, allocations: 4.094 kB / 1.168 GB, free: 4.754 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3167, allocations: 4 kB / 1.168 GB, free: 4.75 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.441e-05/0.3167, allocations: 0 / 1.168 GB, free: 4.75 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.3167, allocations: 4 kB / 1.168 GB, free: 4.746 MB / 0.92 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 6.867e-05/0.3168, allocations: 113.8 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.3168, allocations: 7.938 kB / 1.169 GB, free: 4.617 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.3169, allocations: 52.64 kB / 1.169 GB, free: 4.559 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3169, allocations: 3.938 kB / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.317, allocations: 0 / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.317, allocations: 4.031 kB / 1.169 GB, free: 4.551 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.13e-05/0.3171, allocations: 145.7 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.3171, allocations: 4 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.354e-05/0.3171, allocations: 0 / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3171, allocations: 0 / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.3171, allocations: 7.938 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3171, allocations: 0 / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3171, allocations: 0 / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.9e-05/0.3172, allocations: 69.06 kB / 1.169 GB, free: 4.262 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.3173, allocations: 77.11 kB / 1.169 GB, free: 4.168 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.3173, allocations: 7.922 kB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.159e-05/0.3173, allocations: 0 / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.363e-05/0.3173, allocations: 8 kB / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-06/0.3173, allocations: 0 / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.162e-05/0.3174, allocations: 75.28 kB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3174, allocations: 0 / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002191/0.3176, allocations: 4 kB / 1.169 GB, free: 4.074 MB / 0.92 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.0004055/0.318, allocations: 0.6124 MB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 8.105e-05/0.3181, allocations: 15.98 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3181, allocations: 0 / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.644e-05/0.3181, allocations: 4 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.3183, allocations: 4.156 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003088/0.3186, allocations: 114.6 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.3189, allocations: 0.669 MB / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 1.658e-05/0.3189, allocations: 0 / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.395e-05/0.319, allocations: 11.44 kB / 1.17 GB, free: 2.547 MB / 0.92 GB Notification: Performance of SimCode: time 3.8e-07/0.319, allocations: 0 / 1.17 GB, free: 2.547 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01948/0.3384, allocations: 1.079 MB / 1.171 GB, free: 1.559 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.754/8.093, allocations: 3.953 kB / 1.171 GB, free: 1.555 MB / 0.92 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches