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.00102/0.00102, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009992/0.0009992, allocations: 197.6 kB / 16.54 MB, free: 6.684 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.241/1.241, allocations: 222.9 MB / 240.2 MB, free: 4.367 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.386/2.386, allocations: 437 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 63.84 kB / 0.8694 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5797/0.581, allocations: 151.6 MB / 1.017 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001837/0.5829, allocations: 0.5842 MB / 1.018 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002425/0.5831, allocations: 51.78 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.706e-05/0.5832, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.5832, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.93e-06/0.5832, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.5834, allocations: 8 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.807e-05/0.5835, allocations: 11.94 kB / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.498e-05/0.5835, allocations: 7.922 kB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.684e-05/0.5835, allocations: 3.984 kB / 1.018 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.988e-05/0.5836, allocations: 8 kB / 1.018 GB, free: 1.75 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 8.607e-06/0.5836, allocations: 0 / 1.018 GB, free: 1.75 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.905e-05/0.5837, allocations: 8 kB / 1.018 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.5837, allocations: 0 / 1.018 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.5837, allocations: 0 / 1.018 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.007e-05/0.5838, allocations: 11.92 kB / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.5838, allocations: 0 / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.323e-06/0.5838, allocations: 0 / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.5838, allocations: 0 / 1.018 GB, free: 1.73 MB / 0.7637 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.0002942/0.5841, allocations: 323.6 kB / 1.018 GB, free: 1.363 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.5841, allocations: 12.03 kB / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.015e-05/0.5842, allocations: 30.75 kB / 1.018 GB, free: 1.312 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.166e-05/0.5842, allocations: 4.844 kB / 1.018 GB, free: 1.309 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.146e-05/0.5843, allocations: 164.4 kB / 1.019 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.5843, allocations: 4.375 kB / 1.019 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-06/0.5843, allocations: 384 / 1.019 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.78e-05/0.5844, allocations: 38.25 kB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.5844, allocations: 3.938 kB / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.5845, allocations: 0 / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.5845, allocations: 7.938 kB / 1.019 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.89e-05/0.5845, allocations: 4 kB / 1.019 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001371/0.5846, allocations: 153.6 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 4.728e-05/0.5847, allocations: 22.59 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.678e-05/0.5847, allocations: 8.922 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000146/0.5849, allocations: 81.11 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.5849, allocations: 38.56 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.5849, allocations: 0 / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0001225/0.585, allocations: 45.56 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.5851, allocations: 51.41 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.595e-05/0.5851, allocations: 97.86 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.5851, allocations: 25.7 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.3e-05/0.5852, allocations: 80.14 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.297e-05/0.5852, allocations: 0 / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-05/0.5852, allocations: 17.7 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.5853, allocations: 315 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.2e-05/0.5853, allocations: 4 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.012e-05/0.5854, allocations: 4 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.267e-05/0.5854, allocations: 16.73 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.5854, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.994e-05/0.5855, allocations: 41.69 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.5855, allocations: 4 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.5855, allocations: 8.031 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.5855, allocations: 4 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.749e-05/0.5856, allocations: 0 / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.5856, allocations: 4 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.345e-05/0.5856, allocations: 2.25 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-06/0.5856, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.7794 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 5.733e-05/0.5857, allocations: 109.8 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.592e-06/0.5857, allocations: 0 / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.719e-05/0.5858, allocations: 52.61 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.5858, allocations: 4.031 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.5858, allocations: 7.984 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.5858, allocations: 3.984 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.342e-05/0.5859, allocations: 145.7 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.5859, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.161e-05/0.5859, allocations: 4 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.5859, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.5859, allocations: 3.938 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.5859, allocations: 3.984 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.5859, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.141e-05/0.586, allocations: 69.08 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.88e-05/0.586, allocations: 77.11 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.5861, allocations: 7.922 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.184e-05/0.5861, allocations: 7.938 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.5861, allocations: 4 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.5861, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.758e-05/0.5862, allocations: 75.28 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5862, allocations: 4.031 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001853/0.5863, allocations: 4 kB / 1.02 GB, free: 15.22 MB / 0.7794 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.0003416/0.5867, allocations: 0.6046 MB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.867e-05/0.5868, allocations: 15.86 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.5868, allocations: 8.094 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.406e-05/0.5868, allocations: 4 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.5869, allocations: 5.375 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002563/0.5872, allocations: 106.7 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.5874, allocations: 0.6729 MB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.106e-05/0.5874, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.345e-05/0.5874, allocations: 15.44 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.5875, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.6088, allocations: 1.045 MB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.014/7.623, allocations: 6.891 kB / 1.023 GB, free: 12.71 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 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.mat","/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