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.006535/0.006535, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001641/0.001641, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.542/2.542, allocations: 437.1 MB / 0.7106 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 67.89 kB / 1.018 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2801, allocations: 151.6 MB / 1.166 GB, free: 7.219 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001567/0.2817, allocations: 0.5961 MB / 1.167 GB, free: 6.617 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0002337/0.282, allocations: 47.86 kB / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.408e-05/0.282, allocations: 0 / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.097e-05/0.282, allocations: 0 / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.282, allocations: 0 / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.2822, allocations: 11.92 kB / 1.167 GB, free: 6.559 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 3.897e-05/0.2823, allocations: 4 kB / 1.167 GB, free: 6.555 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.144e-05/0.2823, allocations: 4 kB / 1.167 GB, free: 6.551 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.237e-05/0.2823, allocations: 4 kB / 1.167 GB, free: 6.547 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 2.095e-05/0.2824, allocations: 7.922 kB / 1.167 GB, free: 6.539 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 8.436e-06/0.2824, allocations: 0 / 1.167 GB, free: 6.539 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.36e-05/0.2824, allocations: 11.98 kB / 1.167 GB, free: 6.527 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.206e-06/0.2825, allocations: 4 kB / 1.167 GB, free: 6.523 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 1.54e-05/0.2825, allocations: 0 / 1.167 GB, free: 6.523 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 7.271e-05/0.2826, allocations: 4 kB / 1.167 GB, free: 6.52 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.2826, allocations: 7.984 kB / 1.167 GB, free: 6.512 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2826, allocations: 0 / 1.167 GB, free: 6.512 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.2826, allocations: 0 / 1.167 GB, free: 6.512 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.0003151/0.2829, allocations: 315.8 kB / 1.167 GB, free: 6.152 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.2829, allocations: 12.03 kB / 1.167 GB, free: 6.141 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.283, allocations: 30.75 kB / 1.167 GB, free: 6.102 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.12e-05/0.283, allocations: 4.891 kB / 1.167 GB, free: 6.098 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.2831, allocations: 168.4 kB / 1.167 GB, free: 5.895 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.2832, allocations: 4.312 kB / 1.167 GB, free: 5.891 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.151e-06/0.2832, allocations: 4.312 kB / 1.167 GB, free: 5.887 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.582e-05/0.2833, allocations: 34.27 kB / 1.167 GB, free: 5.848 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.2833, allocations: 3.938 kB / 1.167 GB, free: 5.844 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.2833, allocations: 0 / 1.167 GB, free: 5.844 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2833, allocations: 4 kB / 1.167 GB, free: 5.84 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.043e-05/0.2833, allocations: 7.984 kB / 1.167 GB, free: 5.832 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001565/0.2835, allocations: 149.7 kB / 1.168 GB, free: 5.637 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.817e-05/0.2835, allocations: 22.89 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.143e-05/0.2836, allocations: 12.91 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.2837, allocations: 81.11 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.2838, allocations: 38.56 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.2838, allocations: 0 / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.000126/0.2839, allocations: 45.56 kB / 1.168 GB, free: 5.395 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.2839, allocations: 51.41 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.74e-05/0.284, allocations: 93.86 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.284, allocations: 25.7 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.991e-05/0.2841, allocations: 80.14 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.2841, allocations: 7.984 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.2841, allocations: 13.84 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.2843, allocations: 322.8 kB / 1.168 GB, free: 4.766 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.453e-05/0.2843, allocations: 7.984 kB / 1.168 GB, free: 4.758 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.053e-06/0.2843, allocations: 0 / 1.168 GB, free: 4.758 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.195e-05/0.2843, allocations: 12.86 kB / 1.168 GB, free: 4.742 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2843, allocations: 0 / 1.168 GB, free: 4.742 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.592e-05/0.2844, allocations: 37.7 kB / 1.168 GB, free: 4.699 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.2844, allocations: 5.875 kB / 1.168 GB, free: 4.695 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2844, allocations: 12.02 kB / 1.168 GB, free: 4.684 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.2844, allocations: 0 / 1.168 GB, free: 4.684 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.841e-05/0.2845, allocations: 4 kB / 1.168 GB, free: 4.68 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2845, allocations: 3.938 kB / 1.168 GB, free: 4.676 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.256e-05/0.2845, allocations: 0 / 1.168 GB, free: 4.676 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-06/0.2845, allocations: 0 / 1.168 GB, free: 4.676 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.833e-05/0.2846, allocations: 109.8 kB / 1.169 GB, free: 4.559 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.2846, allocations: 3.953 kB / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.548e-05/0.2847, allocations: 52.75 kB / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2847, allocations: 0 / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2847, allocations: 7.938 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.2847, allocations: 0 / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.2848, allocations: 153.7 kB / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.2848, allocations: 0 / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.145e-05/0.2849, allocations: 4 kB / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2849, allocations: 0 / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.842e-06/0.2849, allocations: 3.938 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2849, allocations: 0 / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.2849, allocations: 3.938 kB / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.289e-05/0.285, allocations: 65.16 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.032e-05/0.285, allocations: 77.11 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.285, allocations: 7.938 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.018e-05/0.285, allocations: 0 / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.952e-05/0.2851, allocations: 0 / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.2851, allocations: 3.984 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.115e-05/0.2851, allocations: 75.28 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2851, allocations: 8.031 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001823/0.2853, allocations: 4 kB / 1.169 GB, free: 4.004 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.0003996/0.2857, allocations: 0.6123 MB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 6.669e-05/0.2858, allocations: 12.03 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.2858, allocations: 0 / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.414e-05/0.2858, allocations: 4 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.2859, allocations: 15.92 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002666/0.2862, allocations: 110.5 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.2865, allocations: 0.6729 MB / 1.17 GB, free: 2.48 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 1.267e-05/0.2865, allocations: 4 kB / 1.17 GB, free: 2.477 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.202e-05/0.2865, allocations: 7.438 kB / 1.17 GB, free: 2.469 MB / 0.92 GB Notification: Performance of SimCode: time 2e-07/0.2865, allocations: 0 / 1.17 GB, free: 2.469 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8708/1.157, allocations: 1.068 MB / 1.171 GB, free: 1.488 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.97, allocations: 16.34 kB / 1.171 GB, free: 1.48 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 & /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=400 --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