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.005563/0.005563, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001348/0.001348, allocations: 189 kB / 16.68 MB, free: 6.367 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.292/1.292, 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.393/2.393, allocations: 437 MB / 0.7105 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 59.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.275, allocations: 151.6 MB / 1.166 GB, free: 7.293 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002523/0.2775, allocations: 1.436 MB / 1.168 GB, free: 5.84 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00124/0.2788, allocations: 0.7762 MB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.632e-05/0.2789, allocations: 0 / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 6.334e-05/0.2789, allocations: 3.938 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.538e-05/0.279, allocations: 0 / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006825/0.2797, allocations: 175.6 kB / 1.169 GB, free: 4.879 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000113/0.2798, allocations: 47.84 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 7.721e-05/0.2799, allocations: 8 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.653e-05/0.2799, allocations: 15.98 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.971e-05/0.28, allocations: 19.92 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.28, allocations: 4 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003411/0.2804, allocations: 207.7 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.703e-05/0.2804, allocations: 11.94 kB / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.693e-05/0.2805, allocations: 15.92 kB / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.2808, allocations: 203.6 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2808, allocations: 0 / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2808, allocations: 0 / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.2808, allocations: 0 / 1.169 GB, free: 4.355 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004875/0.2813, allocations: 434.5 kB / 1.169 GB, free: 3.871 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.2813, allocations: 8.031 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.2814, allocations: 34.75 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.2814, allocations: 8.891 kB / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.2815, allocations: 176.3 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.2816, allocations: 384 / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.2816, allocations: 4.375 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.2818, allocations: 73.8 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.2818, allocations: 0 / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.2818, allocations: 4 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2818, allocations: 7.938 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.2819, allocations: 55.94 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003709/0.2823, allocations: 276.9 kB / 1.17 GB, free: 3.133 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.2824, allocations: 58.55 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8e-05/0.2825, allocations: 44.91 kB / 1.17 GB, free: 3.02 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.2825, allocations: 4 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.2826, allocations: 38.5 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 2.495e-06/0.2826, allocations: 0 / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003693/0.2829, allocations: 187.2 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.283, allocations: 81.11 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.259e-05/0.2831, allocations: 125.8 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.2831, allocations: 25.7 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.506e-05/0.2832, allocations: 92.17 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.2832, allocations: 3.953 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-05/0.2832, allocations: 25.7 kB / 1.171 GB, free: 2.383 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.228e-05/0.2833, allocations: 314.8 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.894e-05/0.2834, allocations: 59.95 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.489e-05/0.2835, allocations: 59.97 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.2838, allocations: 197.8 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2838, allocations: 4 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002642/0.284, allocations: 221 kB / 1.172 GB, free: 1.496 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.847e-05/0.2841, allocations: 63.39 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2841, allocations: 0 / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.2841, allocations: 0 / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.768e-05/0.2842, allocations: 4 kB / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.2842, allocations: 0 / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.914e-05/0.2843, allocations: 11.92 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.2843, allocations: 4 kB / 1.172 GB, free: 1.402 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: 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 0.0001102/0.2844, allocations: 159.4 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.2844, allocations: 3.953 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.56e-05/0.2845, allocations: 11.91 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2845, allocations: 3.938 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2845, allocations: 0 / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2845, allocations: 0 / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.2846, allocations: 169.6 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2846, allocations: 0 / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.913e-05/0.2847, allocations: 4 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2847, allocations: 4 kB / 1.172 GB, free: 0.9805 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2847, allocations: 8 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2847, allocations: 0 / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2847, allocations: 3.938 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.285, allocations: 249.1 kB / 1.172 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.285, allocations: 81.11 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.285, allocations: 0 / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.065e-05/0.2851, allocations: 8.031 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.2852, allocations: 11.98 kB / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.2853, allocations: 0 / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.239e-05/0.2853, allocations: 99.64 kB / 1.172 GB, free: 500 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.573e-06/0.2853, allocations: 0 / 1.172 GB, free: 500 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003125/0.2856, allocations: 63.86 kB / 1.172 GB, free: 436 kB / 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: 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.0006841/0.2863, allocations: 0.835 MB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003024/0.2866, allocations: 239 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2867, allocations: 0 / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.2868, allocations: 107.3 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.287, allocations: 4 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.2887, allocations: 1.768 MB / 1.175 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.2889, allocations: 0.6807 MB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.776e-05/0.2889, allocations: 7.922 kB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.289, allocations: 15.44 kB / 1.176 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of SimCode: time 3.81e-07/0.289, allocations: 0 / 1.176 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01874/0.3077, allocations: 2.821 MB / 1.179 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.146/7.454, allocations: 12.12 kB / 1.179 GB, free: 9.938 MB / 0.9356 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