Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",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.001693/0.001693, 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.001904/0.001904, allocations: 195.5 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.345/1.345, 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.555/2.555, allocations: 437.1 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63.89 kB / 0.8694 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4968/0.4981, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.00254/0.5007, allocations: 1.433 MB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001168/0.5019, allocations: 0.7878 MB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.924e-05/0.502, allocations: 0 / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 6.043e-05/0.502, allocations: 3.938 kB / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.191e-05/0.5021, allocations: 4 kB / 1.02 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006362/0.5027, allocations: 175.5 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.106e-05/0.5028, allocations: 39.98 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.982e-05/0.5029, allocations: 15.98 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.516e-05/0.503, allocations: 15.92 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.384e-05/0.503, allocations: 15.98 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.961e-05/0.503, allocations: 4.047 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003224/0.5034, allocations: 207.6 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.817e-05/0.5034, allocations: 7.938 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.122e-05/0.5035, allocations: 27.84 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.5037, allocations: 185.8 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.5038, allocations: 0 / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.032e-06/0.5038, allocations: 0 / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.5038, allocations: 4 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004489/0.5042, allocations: 426.8 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.5043, allocations: 12.03 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.5043, allocations: 30.75 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.105e-05/0.5043, allocations: 8.844 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.5045, allocations: 172.3 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.5045, allocations: 4.375 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.5045, allocations: 4.375 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.5047, allocations: 77.8 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.5047, allocations: 7.938 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-06/0.5047, allocations: 0 / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.5047, allocations: 0 / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.5049, allocations: 51.89 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003534/0.5052, allocations: 280.8 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/0.5053, allocations: 54.56 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.614e-05/0.5054, allocations: 48.91 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.5055, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.5055, allocations: 38.5 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.5055, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003667/0.5059, allocations: 183.3 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.5059, allocations: 77.11 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.506, allocations: 133.8 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.506, allocations: 25.7 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.5061, allocations: 84.14 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/0.5061, allocations: 11.91 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.5062, allocations: 21.7 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.796e-05/0.5063, allocations: 318.8 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.5064, allocations: 59.95 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.977e-05/0.5065, allocations: 56.11 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.5067, allocations: 197.8 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5067, allocations: 0 / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002691/0.507, allocations: 217.2 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.755e-05/0.507, allocations: 63.39 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.507, allocations: 3.984 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.5071, allocations: 4 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.246e-05/0.5071, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.5071, allocations: 3.938 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.378e-05/0.5072, allocations: 27.83 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.5072, allocations: 0 / 1.023 GB, free: 12.62 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: 1 (cubSpl.i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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.932e-05/0.5073, allocations: 153 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.5073, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.754e-05/0.5074, allocations: 7.844 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.5074, allocations: 0 / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.5074, allocations: 7.938 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.5074, allocations: 0 / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.5075, allocations: 173.6 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5076, allocations: 4 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.959e-05/0.5076, allocations: 4 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5076, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.5076, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5076, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.5076, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.5079, allocations: 257 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.19e-05/0.5079, allocations: 85.05 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.508, allocations: 4 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.09e-05/0.508, allocations: 4 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-05/0.5081, allocations: 3.984 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.5081, allocations: 4 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.728e-05/0.5082, allocations: 99.27 kB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5082, allocations: 0 / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003103/0.5085, allocations: 59.98 kB / 1.024 GB, free: 11.66 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: 1 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0006438/0.5092, allocations: 0.8312 MB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003036/0.5095, allocations: 238.7 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5095, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.5096, allocations: 107.3 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.5099, allocations: 18.25 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.5115, allocations: 1.748 MB / 1.027 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.5118, allocations: 0.6884 MB / 1.027 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.285e-05/0.5118, allocations: 0 / 1.027 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.055e-05/0.5118, allocations: 15.42 kB / 1.027 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of SimCode: time 4e-07/0.5118, allocations: 0 / 1.027 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.5291, allocations: 2.801 MB / 1.03 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.098/7.627, allocations: 12.2 kB / 1.03 GB, free: 5.184 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches