Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_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.005414/0.005414, allocations: 101.8 kB / 15.73 MB, free: 6.047 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.001316/0.001316, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.863/2.863, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.84 kB / 1.065 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8112/0.8131, allocations: 159.1 MB / 1.22 GB, free: 1.996 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002987/0.8162, allocations: 1.517 MB / 1.222 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003837/0.8166, allocations: 127.6 kB / 1.222 GB, free: 356 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.377e-05/0.8167, allocations: 0 / 1.222 GB, free: 356 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.244e-05/0.8167, allocations: 3.938 kB / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.684e-05/0.8168, allocations: 3.938 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.817, allocations: 23.97 kB / 1.222 GB, free: 324 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.741e-05/0.8171, allocations: 27.92 kB / 1.222 GB, free: 296 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.8172, allocations: 7.984 kB / 1.222 GB, free: 288 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.067e-05/0.8173, allocations: 19.92 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.261e-05/0.8173, allocations: 11.98 kB / 1.222 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.8174, allocations: 4 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.513e-05/0.8174, allocations: 12 kB / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.944e-05/0.8175, allocations: 15.92 kB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.57e-05/0.8175, allocations: 7.938 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.8176, allocations: 39.88 kB / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.8176, allocations: 0 / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.673e-06/0.8177, allocations: 0 / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.133e-05/0.8177, allocations: 0 / 1.222 GB, free: 176 kB / 0.9356 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.0005383/0.8182, allocations: 351 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.8183, allocations: 8.031 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.745e-05/0.8183, allocations: 34.75 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.602e-05/0.8183, allocations: 12.83 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.8185, allocations: 164.4 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.8185, allocations: 4.375 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.8185, allocations: 384 / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.8187, allocations: 58.23 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.8188, allocations: 7.938 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.707e-06/0.8188, allocations: 0 / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.8188, allocations: 0 / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.819, allocations: 43.89 kB / 1.223 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004078/0.8194, allocations: 272.8 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.8197, allocations: 54.55 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.8198, allocations: 28.89 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/0.82, allocations: 77.11 kB / 1.223 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.82, allocations: 38.56 kB / 1.223 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 3.186e-06/0.82, allocations: 0 / 1.223 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0004138/0.8204, allocations: 97.56 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.8205, allocations: 51.41 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.569e-05/0.8206, allocations: 101.8 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.8206, allocations: 25.7 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/0.8207, allocations: 92.06 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.8207, allocations: 7.953 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.8208, allocations: 17.7 kB / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.8209, allocations: 318.8 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.385e-05/0.821, allocations: 15.98 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.515e-05/0.8211, allocations: 23.97 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.8213, allocations: 49.17 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.8213, allocations: 0 / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002291/0.8216, allocations: 85.62 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.8216, allocations: 4 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.8216, allocations: 0 / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.8216, allocations: 0 / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.432e-05/0.8217, allocations: 19.98 kB / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.8217, allocations: 0 / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.574e-05/0.8218, allocations: 4 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.8218, allocations: 3.984 kB / 1.224 GB, free: 13.89 MB / 0.9512 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 0.0001049/0.8219, allocations: 113.8 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.8219, allocations: 4 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002784/0.8222, allocations: 89.08 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.8222, allocations: 0 / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.8222, allocations: 0 / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.8222, allocations: 0 / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.8224, allocations: 165.6 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.8225, allocations: 3.938 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/0.8225, allocations: 11.98 kB / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.8225, allocations: 4 kB / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.8226, allocations: 0 / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.8226, allocations: 0 / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.8226, allocations: 0 / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.8229, allocations: 179.4 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.776e-05/0.8229, allocations: 81.06 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.823, allocations: 8 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.885e-05/0.823, allocations: 0 / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.8231, allocations: 7.984 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.8231, allocations: 0 / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.067e-05/0.8232, allocations: 91.2 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.8232, allocations: 0 / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000221/0.8234, allocations: 11.94 kB / 1.225 GB, free: 13.03 MB / 0.9512 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.0007189/0.8241, allocations: 0.7129 MB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002582/0.8244, allocations: 43.95 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.8244, allocations: 0 / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.8245, allocations: 24.36 kB / 1.225 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.8248, allocations: 14.17 kB / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004599/0.8253, allocations: 131.1 kB / 1.226 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.8257, allocations: 0.6883 MB / 1.226 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.943e-05/0.8258, allocations: 0 / 1.226 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.8258, allocations: 19.42 kB / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of SimCode: time 2.61e-07/0.8258, allocations: 4 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.8497, allocations: 1.574 MB / 1.228 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.975, allocations: 12.7 kB / 1.228 GB, free: 9.785 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches