Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_10_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.008009/0.008017, allocations: 97.3 kB / 15.73 MB, free: 6.043 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.002034/0.002034, allocations: 199.5 kB / 16.68 MB, free: 5.965 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.464/1.464, 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.814/2.814, allocations: 437 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 67.89 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.294, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00267/0.2967, allocations: 1.506 MB / 1.168 GB, free: 5.762 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003555/0.2971, allocations: 120.5 kB / 1.168 GB, free: 5.641 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.278e-05/0.2971, allocations: 7.938 kB / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.096e-05/0.2971, allocations: 7.922 kB / 1.168 GB, free: 5.625 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.472e-05/0.2972, allocations: 0 / 1.168 GB, free: 5.625 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.2974, allocations: 23.92 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.734e-05/0.2975, allocations: 35.84 kB / 1.168 GB, free: 5.566 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.529e-05/0.2976, allocations: 11.98 kB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.956e-05/0.2976, allocations: 8 kB / 1.168 GB, free: 5.547 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.161e-05/0.2977, allocations: 15.92 kB / 1.168 GB, free: 5.531 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.2977, allocations: 8 kB / 1.168 GB, free: 5.523 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.484e-05/0.2978, allocations: 11.98 kB / 1.168 GB, free: 5.512 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.311e-05/0.2978, allocations: 4 kB / 1.168 GB, free: 5.508 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.161e-05/0.2978, allocations: 19.92 kB / 1.168 GB, free: 5.488 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.298, allocations: 36.11 kB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.298, allocations: 0 / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.156e-06/0.298, allocations: 0 / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.298, allocations: 3.938 kB / 1.168 GB, free: 5.449 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004968/0.2985, allocations: 339.5 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.2985, allocations: 12.03 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.2986, allocations: 38.75 kB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.052e-05/0.2986, allocations: 8.875 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.2988, allocations: 168.3 kB / 1.168 GB, free: 4.797 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.2988, allocations: 4.375 kB / 1.168 GB, free: 4.793 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.2988, allocations: 384 / 1.168 GB, free: 4.793 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.299, allocations: 62.17 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.299, allocations: 3.938 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.2991, allocations: 0 / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.2991, allocations: 0 / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.2993, allocations: 43.95 kB / 1.169 GB, free: 4.68 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000392/0.2997, allocations: 268.9 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.3, allocations: 62.47 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.3001, allocations: 28.91 kB / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/0.3003, allocations: 85.09 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.3003, allocations: 30.56 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.3003, allocations: 0 / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004/0.3007, allocations: 89.59 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.3008, allocations: 55.34 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.69e-05/0.3009, allocations: 105.8 kB / 1.169 GB, free: 3.852 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3009, allocations: 29.7 kB / 1.169 GB, free: 3.816 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.248e-05/0.301, allocations: 84.14 kB / 1.169 GB, free: 3.73 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.301, allocations: 3.953 kB / 1.169 GB, free: 3.727 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.32e-05/0.301, allocations: 17.7 kB / 1.169 GB, free: 3.703 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3012, allocations: 314.8 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.842e-05/0.3013, allocations: 23.92 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.826e-05/0.3014, allocations: 23.97 kB / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.3016, allocations: 48.75 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3016, allocations: 0 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002303/0.3018, allocations: 78.06 kB / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.3018, allocations: 9.969 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-06/0.3018, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3019, allocations: 4 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.59e-05/0.3019, allocations: 11.98 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.302, allocations: 0 / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/0.302, allocations: 11.94 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.302, allocations: 4 kB / 1.17 GB, free: 3.168 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 (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 9.534e-05/0.3021, allocations: 117.8 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.3022, allocations: 4 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002696/0.3024, allocations: 81.14 kB / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3025, allocations: 0 / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3025, allocations: 4 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3025, allocations: 3.938 kB / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.3027, allocations: 169.5 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3027, allocations: 0 / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.888e-05/0.3028, allocations: 11.98 kB / 1.17 GB, free: 2.719 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3028, allocations: 0 / 1.17 GB, free: 2.719 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.3028, allocations: 4 kB / 1.17 GB, free: 2.715 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3029, allocations: 4 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3029, allocations: 0 / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.3032, allocations: 171.4 kB / 1.17 GB, free: 2.527 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.3032, allocations: 81.06 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.3032, allocations: 4 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.3033, allocations: 7.984 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/0.3034, allocations: 8 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.3034, allocations: 4 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.674e-05/0.3035, allocations: 79.27 kB / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of sort global known variables: time 3.868e-06/0.3035, allocations: 0 / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002339/0.3037, allocations: 11.94 kB / 1.171 GB, free: 2.316 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.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.0006561/0.3044, allocations: 0.7085 MB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002438/0.3047, allocations: 47.95 kB / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3047, allocations: 0 / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3048, allocations: 27.91 kB / 1.171 GB, free: 1.504 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.3051, allocations: 15.81 kB / 1.171 GB, free: 1.488 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004509/0.3055, allocations: 139.1 kB / 1.172 GB, free: 1.312 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.3059, allocations: 0.6807 MB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.234e-05/0.3059, allocations: 0 / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.306, allocations: 15.42 kB / 1.172 GB, free: 0.5898 MB / 0.92 GB Notification: Performance of SimCode: time 2.5e-07/0.306, allocations: 0 / 1.172 GB, free: 0.5898 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.3285, allocations: 1.583 MB / 1.174 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/8.266, allocations: 2.5 kB / 1.174 GB, free: 15.08 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_10_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches