Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.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.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_InputPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_InputPower",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.007302/0.007302, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001914/0.001914, allocations: 197.5 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.361/1.361, 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.697/2.697, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 61.31 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2716, allocations: 162.2 MB / 1.241 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower): time 0.002945/0.2746, allocations: 1.76 MB / 1.243 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0001779/0.2748, allocations: 79.73 kB / 1.243 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.99e-05/0.2748, allocations: 0 / 1.243 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.269e-05/0.2749, allocations: 11.86 kB / 1.243 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.134e-05/0.2749, allocations: 19.81 kB / 1.243 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 9.87e-05/0.2751, allocations: 31.95 kB / 1.243 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.2752, allocations: 111.6 kB / 1.243 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.2754, allocations: 57.36 kB / 1.243 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.997e-05/0.2754, allocations: 39.84 kB / 1.244 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.053e-05/0.2755, allocations: 51.77 kB / 1.244 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.2755, allocations: 12 kB / 1.244 GB, free: 7.07 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.767e-05/0.2756, allocations: 8 kB / 1.244 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.783e-05/0.2756, allocations: 23.92 kB / 1.244 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.413e-05/0.2757, allocations: 47.73 kB / 1.244 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.2758, allocations: 115.5 kB / 1.244 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.2758, allocations: 0 / 1.244 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2758, allocations: 0 / 1.244 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.2758, allocations: 4 kB / 1.244 GB, free: 6.875 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006673/0.2765, allocations: 430.9 kB / 1.244 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2766, allocations: 8.031 kB / 1.244 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.492e-05/0.2766, allocations: 46.67 kB / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.707e-05/0.2766, allocations: 8.891 kB / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.2769, allocations: 208.1 kB / 1.244 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.2769, allocations: 8.375 kB / 1.244 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.2769, allocations: 8.312 kB / 1.244 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003745/0.2773, allocations: 126.1 kB / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2773, allocations: 3.938 kB / 1.245 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.2773, allocations: 12 kB / 1.245 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2773, allocations: 7.922 kB / 1.245 GB, free: 5.922 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004833/0.2778, allocations: 123.9 kB / 1.245 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004797/0.2783, allocations: 376.5 kB / 1.245 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003718/0.2787, allocations: 98.5 kB / 1.245 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/0.2789, allocations: 52.94 kB / 1.245 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.279, allocations: 0 / 1.245 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.279, allocations: 42.5 kB / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 8.91e-07/0.279, allocations: 0 / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0007747/0.2798, allocations: 189.6 kB / 1.245 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.2798, allocations: 59.39 kB / 1.246 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.956e-05/0.2799, allocations: 124.2 kB / 1.246 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.28, allocations: 29.7 kB / 1.246 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.197e-05/0.28, allocations: 108 kB / 1.246 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.2801, allocations: 23.78 kB / 1.246 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.2801, allocations: 17.72 kB / 1.246 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2802, allocations: 318.8 kB / 1.246 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.2805, allocations: 51.95 kB / 1.246 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.2807, allocations: 51.88 kB / 1.246 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.2811, allocations: 108.8 kB / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2812, allocations: 0 / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000492/0.2816, allocations: 137.5 kB / 1.246 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.2817, allocations: 4 kB / 1.246 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.309e-06/0.2817, allocations: 3.984 kB / 1.246 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.2817, allocations: 11.94 kB / 1.246 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.2819, allocations: 27.97 kB / 1.246 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2819, allocations: 0 / 1.246 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.282, allocations: 15.98 kB / 1.246 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.282, allocations: 448 / 1.247 GB, free: 3.855 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 (6): * Single equations (assignments): 6 * 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 8.681e-05/0.2821, allocations: 122.3 kB / 1.247 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.2821, allocations: 11.95 kB / 1.247 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.2822, allocations: 16.31 kB / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2822, allocations: 4 kB / 1.247 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2822, allocations: 0 / 1.247 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2822, allocations: 4 kB / 1.247 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.2824, allocations: 205.5 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2824, allocations: 0 / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.2826, allocations: 31.91 kB / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2826, allocations: 0 / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.2826, allocations: 11.88 kB / 1.247 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2826, allocations: 0 / 1.247 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2826, allocations: 0 / 1.247 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005486/0.2832, allocations: 239.4 kB / 1.247 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.2833, allocations: 85.06 kB / 1.247 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.2833, allocations: 3.938 kB / 1.247 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2834, allocations: 23.97 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.2835, allocations: 7.984 kB / 1.247 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.2835, allocations: 0 / 1.247 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.484e-05/0.2836, allocations: 99.27 kB / 1.247 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2836, allocations: 0 / 1.247 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002325/0.2838, allocations: 15.95 kB / 1.247 GB, free: 2.895 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 (6): * Single equations (assignments): 6 * 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.0008452/0.2847, allocations: 0.7788 MB / 1.248 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005015/0.2852, allocations: 115.8 kB / 1.248 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2852, allocations: 0 / 1.248 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.2854, allocations: 59.94 kB / 1.248 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.2857, allocations: 11.98 kB / 1.248 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.2881, allocations: 1.6 MB / 1.25 GB, free: 232 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.2884, allocations: 0.6924 MB / 1.251 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.282e-05/0.2885, allocations: 11.98 kB / 1.251 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.364e-05/0.2885, allocations: 27.44 kB / 1.251 GB, free: 15.47 MB / 0.9825 GB Notification: Performance of SimCode: time 2.21e-07/0.2886, allocations: 0 / 1.251 GB, free: 15.47 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.3105, allocations: 2.257 MB / 1.253 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.739, allocations: 7.938 kB / 1.253 GB, free: 13.36 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower_res.csv --start-time 0 --stop-time 60 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_InputPower.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_InputPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches