Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Functions.Examples.Interpolate,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Interpolate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Interpolate,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Interpolate",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.005049/0.005049, allocations: 101.2 kB / 15.73 MB, free: 6.027 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.001504/0.001504, allocations: 186.6 kB / 16.67 MB, free: 5.957 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.737/2.737, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 70.05 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2733, allocations: 162.2 MB / 1.241 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Interpolate): time 0.002483/0.2758, allocations: 1.504 MB / 1.243 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2769, allocations: 0.7298 MB / 1.244 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.907e-05/0.277, allocations: 0 / 1.244 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.2772, allocations: 127.8 kB / 1.244 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.819e-05/0.2773, allocations: 75.83 kB / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00055/0.2779, allocations: 179.5 kB / 1.244 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.278, allocations: 67.8 kB / 1.244 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.029e-05/0.278, allocations: 7.938 kB / 1.244 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.493e-05/0.2781, allocations: 47.88 kB / 1.244 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.2782, allocations: 79.84 kB / 1.244 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.2782, allocations: 0 / 1.244 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003804/0.2786, allocations: 223.7 kB / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.986e-05/0.2787, allocations: 59.83 kB / 1.245 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.2788, allocations: 55.48 kB / 1.245 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003565/0.2791, allocations: 279.2 kB / 1.245 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2792, allocations: 0 / 1.245 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2792, allocations: 3.938 kB / 1.245 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.2792, allocations: 0 / 1.245 GB, free: 5.836 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006421/0.2798, allocations: 0.5135 MB / 1.245 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.2799, allocations: 8.031 kB / 1.245 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.2799, allocations: 34.75 kB / 1.245 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.42e-05/0.2799, allocations: 20.8 kB / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.2802, allocations: 263.8 kB / 1.246 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.2802, allocations: 384 / 1.246 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.2802, allocations: 4.375 kB / 1.246 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.2804, allocations: 77.78 kB / 1.246 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/0.2804, allocations: 4 kB / 1.246 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.2804, allocations: 0 / 1.246 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2805, allocations: 4 kB / 1.246 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.2807, allocations: 87.86 kB / 1.246 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005115/0.2812, allocations: 396.8 kB / 1.246 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.2814, allocations: 94.52 kB / 1.246 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.2815, allocations: 44.89 kB / 1.246 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.2816, allocations: 19.97 kB / 1.246 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.2816, allocations: 38.56 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.2816, allocations: 0 / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0004415/0.282, allocations: 181.4 kB / 1.247 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.2821, allocations: 51.41 kB / 1.247 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.2825, allocations: 359.2 kB / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.2825, allocations: 29.7 kB / 1.247 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.698e-05/0.2826, allocations: 136.1 kB / 1.247 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.615e-06/0.2826, allocations: 0 / 1.247 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.2826, allocations: 29.7 kB / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2828, allocations: 338.9 kB / 1.247 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.283, allocations: 95.94 kB / 1.248 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.2831, allocations: 99.92 kB / 1.248 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.2835, allocations: 211.2 kB / 1.248 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2835, allocations: 0 / 1.248 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003862/0.2839, allocations: 265.3 kB / 1.248 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.2839, allocations: 5.562 kB / 1.248 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.2839, allocations: 4 kB / 1.248 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.2839, allocations: 0 / 1.248 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.607e-05/0.284, allocations: 7.984 kB / 1.248 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.284, allocations: 0 / 1.248 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.619e-05/0.2841, allocations: 15.89 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.2841, allocations: 0 / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * Array equations: 1 * 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.0001226/0.2842, allocations: 154.3 kB / 1.248 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.2843, allocations: 19.86 kB / 1.248 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.2846, allocations: 146.5 kB / 1.248 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.2846, allocations: 4 kB / 1.248 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2846, allocations: 0 / 1.248 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.2846, allocations: 0 / 1.248 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.2848, allocations: 241.5 kB / 1.249 GB, free: 1.609 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2849, allocations: 0 / 1.249 GB, free: 1.609 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.877e-05/0.2849, allocations: 12.03 kB / 1.249 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2849, allocations: 3.984 kB / 1.249 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-06/0.2849, allocations: 0 / 1.249 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2849, allocations: 0 / 1.249 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2849, allocations: 0 / 1.249 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003205/0.2853, allocations: 239.2 kB / 1.249 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.449e-05/0.2854, allocations: 105 kB / 1.249 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.2854, allocations: 0 / 1.249 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.188e-05/0.2855, allocations: 11.98 kB / 1.249 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/0.2855, allocations: 4 kB / 1.249 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.2855, allocations: 0 / 1.249 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002544/0.2858, allocations: 253.9 kB / 1.249 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2858, allocations: 4 kB / 1.249 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003066/0.2861, allocations: 63.88 kB / 1.249 GB, free: 0.8945 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0007749/0.2869, allocations: 0.8176 MB / 1.25 GB, free: 52 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003437/0.2872, allocations: 167.8 kB / 1.25 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2872, allocations: 4.031 kB / 1.25 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.2874, allocations: 39.97 kB / 1.25 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.2876, allocations: 12.66 kB / 1.25 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.2907, allocations: 2.722 MB / 1.253 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.2911, allocations: 0.743 MB / 1.254 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.876e-05/0.2911, allocations: 16.55 kB / 1.254 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.35e-05/0.2912, allocations: 47.42 kB / 1.254 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of SimCode: time 2.174e-06/0.2912, allocations: 0 / 1.254 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.3157, allocations: 4.284 MB / 1.258 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/7.956, allocations: 11.47 kB / 1.258 GB, free: 8.023 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate_res.csv --start-time 0 --stop-time 500 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Interpolate.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Interpolate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Interpolate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches