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.00814/0.00814, allocations: 98.39 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.002232/0.002232, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.573/2.573, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 63.91 kB / 1.018 GB, free: 9.914 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.842/0.8435, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002678/0.8462, allocations: 1.515 MB / 1.168 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.000375/0.8466, allocations: 144.4 kB / 1.168 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.978e-05/0.8467, allocations: 0 / 1.168 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.442e-05/0.8467, allocations: 0 / 1.168 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.558e-05/0.8468, allocations: 7.922 kB / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.847, allocations: 19.92 kB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.195e-05/0.8471, allocations: 23.98 kB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.691e-05/0.8472, allocations: 8 kB / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.252e-05/0.8472, allocations: 15.97 kB / 1.168 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.127e-05/0.8473, allocations: 15.92 kB / 1.168 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.8473, allocations: 8 kB / 1.168 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.219e-05/0.8474, allocations: 12 kB / 1.168 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.595e-05/0.8474, allocations: 11.92 kB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.316e-05/0.8474, allocations: 11.94 kB / 1.168 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.8476, allocations: 39.81 kB / 1.168 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.8476, allocations: 0 / 1.168 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8476, allocations: 0 / 1.168 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.196e-06/0.8476, allocations: 0 / 1.168 GB, free: 1.938 MB / 0.8887 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.000441/0.848, allocations: 343.1 kB / 1.168 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.8481, allocations: 16.62 kB / 1.168 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.846e-05/0.8481, allocations: 30.75 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.651e-05/0.8482, allocations: 4.891 kB / 1.168 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.8483, allocations: 168.4 kB / 1.168 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.8483, allocations: 4.375 kB / 1.168 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.8483, allocations: 384 / 1.168 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.8485, allocations: 54.23 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.8485, allocations: 3.938 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.8485, allocations: 0 / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.8486, allocations: 4 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001855/0.8487, allocations: 47.89 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003446/0.8491, allocations: 264.8 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.8494, allocations: 58.53 kB / 1.169 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.698e-05/0.8495, allocations: 28.91 kB / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.8497, allocations: 85.05 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.8497, allocations: 34.55 kB / 1.169 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.8497, allocations: 0 / 1.169 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003863/0.8501, allocations: 97.58 kB / 1.169 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.8501, allocations: 55.41 kB / 1.169 GB, free: 468 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.737e-05/0.8502, allocations: 105.8 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.8502, allocations: 29.64 kB / 1.169 GB, free: 316 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.826e-05/0.8503, allocations: 80.14 kB / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.8503, allocations: 3.953 kB / 1.169 GB, free: 228 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.8503, allocations: 21.7 kB / 1.169 GB, free: 200 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.8505, allocations: 310.8 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.8506, allocations: 27.92 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.452e-05/0.8507, allocations: 27.91 kB / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.8508, allocations: 48.75 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.8509, allocations: 0 / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002131/0.8511, allocations: 69.66 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.8511, allocations: 4 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.8511, allocations: 4 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.8511, allocations: 4 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.07e-05/0.8512, allocations: 11.98 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.8512, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.658e-05/0.8513, allocations: 11.94 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.8513, allocations: 8 kB / 1.17 GB, free: 15.66 MB / 0.9044 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.733e-05/0.8514, allocations: 113.7 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.8514, allocations: 4 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002563/0.8517, allocations: 81.14 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.8517, allocations: 0 / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.8517, allocations: 0 / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.8517, allocations: 0 / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.8519, allocations: 173.6 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.8519, allocations: 0 / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.965e-05/0.852, allocations: 11.98 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.852, allocations: 0 / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.852, allocations: 4 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.852, allocations: 0 / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.852, allocations: 0 / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.8523, allocations: 175.9 kB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.689e-05/0.8524, allocations: 85.06 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.8524, allocations: 0 / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.25e-05/0.8525, allocations: 15.98 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.8525, allocations: 0 / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.8525, allocations: 4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.037e-05/0.8526, allocations: 87.3 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8526, allocations: 4 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000234/0.8528, allocations: 7.938 kB / 1.171 GB, free: 14.8 MB / 0.9044 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.0005617/0.8534, allocations: 0.7201 MB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002334/0.8536, allocations: 43.89 kB / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.8537, allocations: 0 / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.8538, allocations: 27.97 kB / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.854, allocations: 6.5 kB / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004452/0.8545, allocations: 147 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.8548, allocations: 0.6768 MB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.335e-05/0.8548, allocations: 4 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.8549, allocations: 15.42 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of SimCode: time 3.41e-07/0.8549, allocations: 0 / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.8725, allocations: 1.574 MB / 1.174 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/8.51, allocations: 9.281 kB / 1.174 GB, free: 11.57 MB / 0.9044 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