Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial",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.001212/0.001212, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.528/2.528, allocations: 437.1 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 67.89 kB / 0.8693 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6028/0.6041, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002709/0.6068, allocations: 1.546 MB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003377/0.6072, allocations: 132.5 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.627e-05/0.6072, allocations: 4 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.748e-05/0.6073, allocations: 7.938 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.549e-05/0.6073, allocations: 3.938 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.6076, allocations: 31.89 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.648e-05/0.6077, allocations: 35.92 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.279e-05/0.6078, allocations: 11.98 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.015e-05/0.6078, allocations: 15.94 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.986e-05/0.6078, allocations: 23.89 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.384e-05/0.6079, allocations: 8 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.58e-05/0.6079, allocations: 12 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.6079, allocations: 11.98 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.634e-05/0.608, allocations: 15.88 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.6081, allocations: 47.86 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.6081, allocations: 0 / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.273e-06/0.6081, allocations: 0 / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.6081, allocations: 4 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000401/0.6085, allocations: 341.7 kB / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.6086, allocations: 12.03 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.379e-05/0.6086, allocations: 42.73 kB / 1.02 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.597e-05/0.6087, allocations: 4.844 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.6088, allocations: 168.3 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.6088, allocations: 4.312 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.6088, allocations: 4.375 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.609, allocations: 66.16 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.609, allocations: 3.938 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.609, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.609, allocations: 4 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.6092, allocations: 47.95 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003332/0.6096, allocations: 276.7 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003034/0.6099, allocations: 66.47 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.61, allocations: 24.91 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002429/0.6103, allocations: 405.5 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.6103, allocations: 34.56 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 2.454e-06/0.6103, allocations: 3.984 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003773/0.6107, allocations: 93.56 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.6107, allocations: 55.41 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.685e-05/0.6108, allocations: 117.8 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.6108, allocations: 25.7 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.713e-05/0.6109, allocations: 80.14 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.6109, allocations: 11.91 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.6109, allocations: 13.72 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.803e-05/0.611, allocations: 322.8 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.457e-05/0.6111, allocations: 19.98 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.408e-05/0.6112, allocations: 19.97 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.6114, allocations: 44.83 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.6114, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002207/0.6116, allocations: 81.58 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.6116, allocations: 4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.6117, allocations: 4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.6117, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-05/0.6118, allocations: 11.98 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.6118, allocations: 0 / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.93e-05/0.6118, allocations: 7.938 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.383e-06/0.6119, allocations: 4 kB / 1.022 GB, free: 13.89 MB / 0.7794 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 (falFac.y,rea2Int.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 6.891e-05/0.6119, allocations: 117.8 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.612, allocations: 7.906 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002585/0.6122, allocations: 81.55 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.6122, allocations: 3.938 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.6123, allocations: 4 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6123, allocations: 0 / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.6124, allocations: 169.6 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.6124, allocations: 4 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.577e-05/0.6125, allocations: 7.984 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.6125, allocations: 11.94 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.6125, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.6126, allocations: 3.938 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6126, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002613/0.6128, allocations: 171.4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.654e-05/0.6129, allocations: 81.44 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.6129, allocations: 4 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.922e-05/0.613, allocations: 15.98 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.613, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.613, allocations: 7.984 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.363e-05/0.6131, allocations: 87.22 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6131, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002405/0.6133, allocations: 12 kB / 1.022 GB, free: 13.01 MB / 0.7794 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 (rea2Int.y,falFac.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.000559/0.6139, allocations: 0.7163 MB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002297/0.6142, allocations: 47.89 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6142, allocations: 0 / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.6143, allocations: 27.97 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.6146, allocations: 8 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.6159, allocations: 1.268 MB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001884/0.6161, allocations: 0.6807 MB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.945e-05/0.6161, allocations: 12.53 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.723e-05/0.6162, allocations: 15.44 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.6162, allocations: 0 / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.6326, allocations: 1.67 MB / 1.027 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.007/7.64, allocations: 15.34 kB / 1.027 GB, free: 8.488 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches