Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_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.00854/0.008541, allocations: 101.6 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.002218/0.002218, allocations: 195.9 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.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.361/2.361, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 64.11 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2805, allocations: 140.4 MB / 1.087 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002831/0.2834, allocations: 1.509 MB / 1.089 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0004128/0.2838, allocations: 124.5 kB / 1.089 GB, free: 396 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.73e-05/0.2839, allocations: 4 kB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.186e-05/0.2839, allocations: 0 / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.683e-05/0.284, allocations: 3.938 kB / 1.089 GB, free: 388 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.2843, allocations: 19.92 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.086e-05/0.2844, allocations: 23.98 kB / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.2845, allocations: 15.97 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.285e-05/0.2846, allocations: 19.94 kB / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.42e-05/0.2846, allocations: 15.92 kB / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.2846, allocations: 0 / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.044e-05/0.2847, allocations: 23.92 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.474e-05/0.2847, allocations: 4 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.778e-05/0.2848, allocations: 15.92 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.2849, allocations: 31.89 kB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2849, allocations: 0 / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.014e-06/0.2849, allocations: 4 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.2849, allocations: 0 / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005139/0.2855, allocations: 346.3 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.2855, allocations: 8.031 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.404e-05/0.2856, allocations: 30.75 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.206e-05/0.2856, allocations: 8.922 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.2857, allocations: 160.4 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.2857, allocations: 4.375 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.2858, allocations: 4.375 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.286, allocations: 54.17 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.286, allocations: 7.938 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.286, allocations: 11.98 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.286, allocations: 3.938 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.2862, allocations: 35.97 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003727/0.2866, allocations: 269.7 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.2869, allocations: 66.53 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.287, allocations: 20.84 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001188/0.2872, allocations: 93.02 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.974e-05/0.2872, allocations: 30.56 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.223e-06/0.2872, allocations: 0 / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003706/0.2876, allocations: 93.64 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.2876, allocations: 59.39 kB / 1.09 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.38e-05/0.2877, allocations: 97.86 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.2877, allocations: 25.7 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.475e-05/0.2878, allocations: 84.08 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.2878, allocations: 7.906 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.2878, allocations: 25.64 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.512e-05/0.2879, allocations: 314.8 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.484e-05/0.288, allocations: 19.97 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.157e-05/0.2881, allocations: 19.98 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.2883, allocations: 49.22 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2883, allocations: 0 / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002191/0.2885, allocations: 73.7 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2886, allocations: 8 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2886, allocations: 3.984 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.2886, allocations: 0 / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.404e-05/0.2887, allocations: 15.92 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2887, allocations: 3.984 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.973e-05/0.2887, allocations: 11.89 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-06/0.2888, allocations: 0 / 1.091 GB, free: 13.93 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.959e-05/0.2888, allocations: 121.8 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.2889, allocations: 0 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002559/0.2891, allocations: 77.14 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.2892, allocations: 4 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2892, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2892, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.2893, allocations: 165.6 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2893, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.793e-05/0.2894, allocations: 15.98 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.2894, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.2895, allocations: 7.938 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2895, allocations: 3.938 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2895, allocations: 0 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.2897, allocations: 171.4 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.4e-05/0.2898, allocations: 88.95 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.2898, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.101e-05/0.2899, allocations: 11.98 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.29, allocations: 4 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.29, allocations: 3.984 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.003e-05/0.29, allocations: 83.28 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.29, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002304/0.2902, allocations: 8 kB / 1.092 GB, free: 13.07 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000542/0.2908, allocations: 0.7085 MB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002367/0.291, allocations: 43.95 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2911, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.2912, allocations: 35.91 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.2914, allocations: 4.469 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.2919, allocations: 144.7 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.2921, allocations: 0.6768 MB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3e-05/0.2921, allocations: 4 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.721e-05/0.2922, allocations: 15.42 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of SimCode: time 3.01e-07/0.2922, allocations: 4 kB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01693/0.3091, allocations: 1.592 MB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.627, allocations: 3.938 kB / 1.095 GB, free: 9.828 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,fac.y Variables in the result:fac.u,fac.y,rea2Int.u,rea2Int.y,time,x.duration,x.height,x.offset,x.startTime,x.y