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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_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.007009/0.007009, allocations: 100.2 kB / 15.73 MB, free: 6.012 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.001781/0.001781, allocations: 197.2 kB / 16.68 MB, free: 5.934 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 15.11 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.017/2.017, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 67.91 kB / 0.9504 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6442/0.6453, allocations: 140.4 MB / 1.088 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001366/0.6467, allocations: 0.5727 MB / 1.088 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002188/0.6469, allocations: 60.12 kB / 1.088 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.414e-05/0.6469, allocations: 1.125 kB / 1.088 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.363e-05/0.6469, allocations: 3.938 kB / 1.088 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.95e-06/0.647, allocations: 0 / 1.088 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.6471, allocations: 14.11 kB / 1.088 GB, free: 4.879 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 3.729e-05/0.6472, allocations: 7.344 kB / 1.088 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.6472, allocations: 2.547 kB / 1.088 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.298e-05/0.6472, allocations: 1.125 kB / 1.088 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 1.831e-05/0.6473, allocations: 5 kB / 1.088 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.6473, allocations: 0 / 1.088 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.859e-05/0.6473, allocations: 7.5 kB / 1.088 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.804e-06/0.6474, allocations: 9.188 kB / 1.088 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.507e-05/0.6474, allocations: 4 kB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 6.802e-05/0.6474, allocations: 10.44 kB / 1.088 GB, free: 4.855 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.6475, allocations: 0 / 1.088 GB, free: 4.855 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.743e-06/0.6475, allocations: 1.891 kB / 1.088 GB, free: 4.855 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.6475, allocations: 0 / 1.088 GB, free: 4.855 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.0001831/0.6477, allocations: 314.7 kB / 1.088 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.6477, allocations: 14.02 kB / 1.088 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.971e-05/0.6477, allocations: 30.75 kB / 1.089 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.083e-05/0.6477, allocations: 6.156 kB / 1.089 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.757e-05/0.6478, allocations: 161.6 kB / 1.089 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-06/0.6478, allocations: 6.188 kB / 1.089 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.6478, allocations: 384 / 1.089 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.095e-05/0.6479, allocations: 35.06 kB / 1.089 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.6479, allocations: 5.859 kB / 1.089 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.6479, allocations: 0 / 1.089 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.6479, allocations: 3.938 kB / 1.089 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.036e-05/0.648, allocations: 8.609 kB / 1.089 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.102e-05/0.648, allocations: 149.8 kB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.789e-05/0.6481, allocations: 28.97 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.362e-05/0.6481, allocations: 7.156 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.6482, allocations: 81.64 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.401e-05/0.6482, allocations: 32.95 kB / 1.089 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.6483, allocations: 0 / 1.089 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.00011/0.6484, allocations: 52.25 kB / 1.089 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.051e-05/0.6484, allocations: 52.31 kB / 1.089 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.457e-05/0.6484, allocations: 90.66 kB / 1.089 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.52e-06/0.6484, allocations: 26.95 kB / 1.089 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.953e-06/0.6484, allocations: 80.14 kB / 1.089 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.298e-05/0.6485, allocations: 5.891 kB / 1.089 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.171e-05/0.6485, allocations: 20.97 kB / 1.089 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.086e-05/0.6485, allocations: 311.4 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.046e-05/0.6485, allocations: 7.219 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.883e-06/0.6485, allocations: 1.812 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.513e-05/0.6486, allocations: 15.44 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.6486, allocations: 0 / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.711e-05/0.6486, allocations: 43.03 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.6486, allocations: 6.922 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.6487, allocations: 3.938 kB / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.477e-06/0.6487, allocations: 0 / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.611e-05/0.6487, allocations: 4.078 kB / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.6487, allocations: 5.984 kB / 1.09 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.213e-05/0.6487, allocations: 2.25 kB / 1.09 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-06/0.6487, allocations: 0.9375 kB / 1.09 GB, free: 3.125 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 3.43e-05/0.6488, allocations: 110.2 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-06/0.6488, allocations: 1.469 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.447e-05/0.6489, allocations: 46.88 kB / 1.09 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.6489, allocations: 1.031 kB / 1.09 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.6489, allocations: 0.6562 kB / 1.09 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.6489, allocations: 9.031 kB / 1.09 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.664e-05/0.6489, allocations: 144.8 kB / 1.09 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.6489, allocations: 1.75 kB / 1.09 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.042e-05/0.649, allocations: 7.781 kB / 1.09 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.649, allocations: 0 / 1.09 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.649, allocations: 6.062 kB / 1.09 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.649, allocations: 0 / 1.09 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.649, allocations: 4 kB / 1.09 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.403e-05/0.6491, allocations: 68.83 kB / 1.09 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.151e-05/0.6491, allocations: 78.45 kB / 1.09 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.707e-06/0.6491, allocations: 5.703 kB / 1.09 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-06/0.6491, allocations: 0 / 1.09 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.433e-05/0.6491, allocations: 3.375 kB / 1.09 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.6491, allocations: 1.75 kB / 1.09 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.856e-06/0.6491, allocations: 75.28 kB / 1.09 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6491, allocations: 0 / 1.09 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001716/0.6493, allocations: 4 kB / 1.09 GB, free: 2.516 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.0002159/0.6495, allocations: 0.6089 MB / 1.091 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 6.126e-05/0.6496, allocations: 11.86 kB / 1.091 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.6496, allocations: 0 / 1.091 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.6496, allocations: 8.781 kB / 1.091 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001141/0.6498, allocations: 10.02 kB / 1.091 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002743/0.65, allocations: 119.7 kB / 1.091 GB, free: 17.75 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.6503, allocations: 0.6759 MB / 1.092 GB, free: 17.05 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.219e-05/0.6503, allocations: 2.906 kB / 1.092 GB, free: 17.05 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.508e-05/0.6503, allocations: 8.531 kB / 1.092 GB, free: 17.05 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.6503, allocations: 0 / 1.092 GB, free: 17.05 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2459/0.8962, allocations: 1.066 MB / 1.093 GB, free: 16.68 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.99, allocations: 8.812 kB / 1.093 GB, free: 16.68 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > 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