Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_latest_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.004931/0.004931, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.001082/0.001082, allocations: 198.6 kB / 16.68 MB, free: 5.969 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.545/2.545, allocations: 469.4 MB / 0.7421 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 68.08 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2613, allocations: 159.1 MB / 1.22 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.00253/0.2639, allocations: 1.441 MB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001213/0.2651, allocations: 0.7831 MB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.239e-05/0.2652, allocations: 0 / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 6.259e-05/0.2653, allocations: 3.938 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.393e-05/0.2653, allocations: 7.938 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006357/0.266, allocations: 171.6 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.2661, allocations: 39.97 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.547e-05/0.2662, allocations: 11.98 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.957e-05/0.2662, allocations: 15.94 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.233e-05/0.2662, allocations: 11.98 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.2663, allocations: 4 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003257/0.2666, allocations: 215.6 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.068e-05/0.2667, allocations: 11.98 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.602e-05/0.2667, allocations: 15.88 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.267, allocations: 191.5 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.267, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.172e-06/0.267, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.267, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 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.0004683/0.2675, allocations: 430.5 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.2675, allocations: 8.031 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.01e-05/0.2676, allocations: 38.73 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.2676, allocations: 12.89 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.2677, allocations: 172.3 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.2677, allocations: 384 / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.2678, allocations: 4.375 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.2679, allocations: 85.7 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.022e-06/0.268, allocations: 0 / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.268, allocations: 0 / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.268, allocations: 7.938 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.2681, allocations: 47.97 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003587/0.2685, allocations: 280.8 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.2686, allocations: 62.48 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.439e-05/0.2687, allocations: 48.91 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.2687, allocations: 4 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.2687, allocations: 34.56 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2688, allocations: 0 / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003598/0.2691, allocations: 179.3 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.2692, allocations: 85.11 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.704e-05/0.2693, allocations: 125.8 kB / 1.224 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.2693, allocations: 29.64 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.4e-05/0.2693, allocations: 92.12 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.391e-05/0.2694, allocations: 3.953 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.431e-05/0.2694, allocations: 25.75 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.673e-05/0.2695, allocations: 322.8 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.937e-05/0.2696, allocations: 55.97 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.863e-05/0.2697, allocations: 55.97 kB / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.2699, allocations: 193.9 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2699, allocations: 0 / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002749/0.2702, allocations: 217 kB / 1.225 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.2703, allocations: 67.41 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2703, allocations: 0 / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.2703, allocations: 0 / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.331e-05/0.2704, allocations: 11.92 kB / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.2704, allocations: 4 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.917e-05/0.2704, allocations: 8 kB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.2705, allocations: 4 kB / 1.225 GB, free: 8.762 MB / 0.9825 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.903e-05/0.2706, allocations: 155.5 kB / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.2706, allocations: 3.953 kB / 1.225 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.156e-05/0.2706, allocations: 11.91 kB / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2706, allocations: 0 / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2706, allocations: 0 / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2706, allocations: 0 / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.2708, allocations: 177.6 kB / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2708, allocations: 0 / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.946e-05/0.2708, allocations: 3.984 kB / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2709, allocations: 0 / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.2709, allocations: 4 kB / 1.226 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2709, allocations: 0 / 1.226 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2709, allocations: 7.984 kB / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000267/0.2712, allocations: 257 kB / 1.226 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.2712, allocations: 84.98 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.2712, allocations: 0 / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.968e-05/0.2713, allocations: 7.984 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.2714, allocations: 8.234 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.2714, allocations: 4 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.257e-05/0.2715, allocations: 95.3 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2715, allocations: 0 / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003251/0.2718, allocations: 63.92 kB / 1.226 GB, free: 7.781 MB / 0.9825 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.0006975/0.2725, allocations: 0.8388 MB / 1.227 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.2729, allocations: 242.7 kB / 1.227 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2729, allocations: 0 / 1.227 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.273, allocations: 103.4 kB / 1.227 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.2732, allocations: 15.86 kB / 1.227 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.2749, allocations: 1.754 MB / 1.229 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.2751, allocations: 0.6846 MB / 1.23 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.02e-05/0.2752, allocations: 4 kB / 1.23 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.2752, allocations: 15.44 kB / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.2752, allocations: 0 / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.2943, allocations: 2.814 MB / 1.232 GB, free: 1.312 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.171/7.465, allocations: 12.31 kB / 1.232 GB, free: 1.305 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches