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.005335/0.005335, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.001309/0.001309, allocations: 190.9 kB / 16.67 MB, free: 5.934 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.825/2.825, allocations: 437 MB / 0.7105 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 67.84 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.302, allocations: 151.6 MB / 1.166 GB, free: 7.281 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002719/0.3048, allocations: 1.533 MB / 1.168 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003646/0.3052, allocations: 128.5 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.481e-05/0.3052, allocations: 0 / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.296e-05/0.3053, allocations: 7.922 kB / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.849e-05/0.3053, allocations: 3.938 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.3056, allocations: 31.91 kB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.832e-05/0.3057, allocations: 35.91 kB / 1.168 GB, free: 5.523 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3058, allocations: 16 kB / 1.168 GB, free: 5.508 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.895e-05/0.3058, allocations: 15.97 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.11e-05/0.3059, allocations: 27.8 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.3059, allocations: 0 / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.584e-05/0.306, allocations: 23.98 kB / 1.168 GB, free: 5.441 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.306, allocations: 4 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.27e-05/0.3061, allocations: 19.92 kB / 1.168 GB, free: 5.418 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.3062, allocations: 48.03 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3062, allocations: 0 / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3062, allocations: 0 / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.167e-06/0.3062, allocations: 0 / 1.168 GB, free: 5.371 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005135/0.3067, allocations: 359.3 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3068, allocations: 8.031 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.3068, allocations: 34.75 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.3069, allocations: 4.938 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.307, allocations: 172.3 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.307, allocations: 384 / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.3071, allocations: 8.312 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.3073, allocations: 62.17 kB / 1.169 GB, free: 4.633 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3073, allocations: 7.938 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3073, allocations: 4 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3073, allocations: 0 / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.3075, allocations: 43.95 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004135/0.3079, allocations: 284.8 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.3083, allocations: 62.47 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.3084, allocations: 24.91 kB / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003327/0.3087, allocations: 397.5 kB / 1.169 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.3088, allocations: 34.56 kB / 1.169 GB, free: 3.629 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.3088, allocations: 0 / 1.169 GB, free: 3.629 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003943/0.3092, allocations: 101.5 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.3092, allocations: 55.41 kB / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.782e-05/0.3093, allocations: 109.8 kB / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.3094, allocations: 25.7 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.3094, allocations: 84.14 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.3094, allocations: 11.88 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.3095, allocations: 17.72 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3096, allocations: 322.8 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.696e-05/0.3097, allocations: 19.97 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.3099, allocations: 19.98 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.31, allocations: 45.09 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3101, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002331/0.3103, allocations: 85.53 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.3103, allocations: 8 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.3103, allocations: 0 / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.3103, allocations: 0 / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.308e-05/0.3104, allocations: 11.98 kB / 1.17 GB, free: 2.668 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.3104, allocations: 0 / 1.17 GB, free: 2.668 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.902e-05/0.3105, allocations: 7.984 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.3105, allocations: 0 / 1.17 GB, free: 2.66 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 (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 9.528e-05/0.3106, allocations: 125.7 kB / 1.17 GB, free: 2.527 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.3106, allocations: 0 / 1.17 GB, free: 2.527 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/0.3109, allocations: 81.55 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3109, allocations: 3.938 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.311, allocations: 0 / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.311, allocations: 3.984 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.3112, allocations: 169.6 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3112, allocations: 4 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.004e-05/0.3113, allocations: 15.98 kB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3113, allocations: 0 / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.3113, allocations: 7.938 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3113, allocations: 0 / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3113, allocations: 0 / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002775/0.3116, allocations: 175.4 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-05/0.3116, allocations: 81.09 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.3117, allocations: 4 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.715e-05/0.3117, allocations: 4 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.3118, allocations: 11.98 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.3118, allocations: 0 / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.28e-05/0.3119, allocations: 91.2 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.994e-06/0.3119, allocations: 0 / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002425/0.3121, allocations: 15.94 kB / 1.171 GB, free: 1.777 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 (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.0006333/0.3128, allocations: 0.7124 MB / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002358/0.313, allocations: 43.95 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.313, allocations: 0 / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.3131, allocations: 36.19 kB / 1.172 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3134, allocations: 1.719 kB / 1.172 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.315, allocations: 1.284 MB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.3153, allocations: 0.6807 MB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.638e-05/0.3154, allocations: 12.53 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.3154, allocations: 11.44 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.3154, allocations: 0 / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.338, allocations: 1.703 MB / 1.175 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.01/8.348, allocations: 8.016 kB / 1.175 GB, free: 13.25 MB / 0.9356 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