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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cubSpl.y",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cubSpl.y",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 92.78 kB / 16.02 MB, free: 80 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.001764/0.001764, allocations: 179.5 kB / 16.92 MB, free: 6.652 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.398/1.398, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437.8 MB / 0.7128 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005141/0.0005141, allocations: 8.281 kB / 0.8735 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6601/0.6606, allocations: 153.8 MB / 1.024 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002233/0.6629, allocations: 1.157 MB / 1.025 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001712/0.6647, allocations: 0.8036 MB / 1.026 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.064e-05/0.6648, allocations: 0 / 1.026 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 5.909e-05/0.6648, allocations: 0 / 1.026 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.249e-05/0.6649, allocations: 4 kB / 1.026 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008475/0.6658, allocations: 127.8 kB / 1.026 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.6659, allocations: 43.91 kB / 1.026 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.666, allocations: 4 kB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.113e-05/0.6661, allocations: 19.92 kB / 1.026 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.874e-05/0.6661, allocations: 11.98 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.518e-05/0.6662, allocations: 0 / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004307/0.6666, allocations: 191.7 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.013e-05/0.6667, allocations: 7.938 kB / 1.026 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.428e-05/0.6668, allocations: 45.56 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.6671, allocations: 127.8 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.6671, allocations: 0 / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.605e-06/0.6671, allocations: 4 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.6671, allocations: 0 / 1.026 GB, free: 13.42 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.0007199/0.6678, allocations: 432.7 kB / 1.027 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.6679, allocations: 8.031 kB / 1.027 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.431e-05/0.668, allocations: 4.938 kB / 1.027 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.6682, allocations: 180.2 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.6682, allocations: 384 / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.6682, allocations: 4.375 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.6685, allocations: 89.97 kB / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.6685, allocations: 3.984 kB / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.6685, allocations: 0 / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.6685, allocations: 0 / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.6687, allocations: 47.97 kB / 1.027 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005247/0.6692, allocations: 280.9 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.6693, allocations: 58.55 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.424e-05/0.6694, allocations: 48.86 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.188e-06/0.6695, allocations: 0 / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.6695, allocations: 34.56 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.6695, allocations: 4 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004713/0.67, allocations: 195.2 kB / 1.028 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.6701, allocations: 84.98 kB / 1.028 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.6702, allocations: 121.8 kB / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.6702, allocations: 29.7 kB / 1.028 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.6703, allocations: 84.14 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.6703, allocations: 15.84 kB / 1.028 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.6704, allocations: 21.64 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.6705, allocations: 314.8 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.6706, allocations: 59.95 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.627e-05/0.6707, allocations: 59.97 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002586/0.671, allocations: 201.8 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.671, allocations: 0 / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003203/0.6713, allocations: 221 kB / 1.029 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.399e-05/0.6714, allocations: 67.39 kB / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.6714, allocations: 0 / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.6715, allocations: 0 / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.821e-05/0.6715, allocations: 4 kB / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.6715, allocations: 0 / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.054e-05/0.6716, allocations: 19.92 kB / 1.029 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.6716, allocations: 4 kB / 1.029 GB, free: 10.48 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 0.0001391/0.6718, allocations: 152 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.6718, allocations: 7.906 kB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.673e-05/0.6718, allocations: 7.906 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.6718, allocations: 64 / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.6719, allocations: 4 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6719, allocations: 0 / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.6721, allocations: 177.6 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.6721, allocations: 0 / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.041e-05/0.6721, allocations: 4 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.6721, allocations: 0 / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.6721, allocations: 4 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.6721, allocations: 0 / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.6722, allocations: 0 / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.6725, allocations: 268.9 kB / 1.029 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.579e-05/0.6725, allocations: 81.11 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.6726, allocations: 0 / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.29e-05/0.6726, allocations: 8 kB / 1.029 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.6728, allocations: 7.984 kB / 1.029 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.6728, allocations: 4 kB / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.848e-05/0.6729, allocations: 95.7 kB / 1.03 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6729, allocations: 32 / 1.03 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003679/0.6732, allocations: 63.98 kB / 1.03 GB, free: 9.508 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.0003117/0.6736, allocations: 147.2 kB / 1.03 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000373/0.6739, allocations: 247 kB / 1.03 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.674, allocations: 0 / 1.03 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.6741, allocations: 111.3 kB / 1.03 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.6744, allocations: 7.938 kB / 1.03 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003932/0.6748, allocations: 216.3 kB / 1.03 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.6751, allocations: 0.6887 MB / 1.031 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.499e-05/0.6751, allocations: 7.438 kB / 1.031 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of SimCode: time 2.054e-06/0.6751, allocations: 0 / 1.031 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of Templates: time 0.003558/0.6786, allocations: 1.487 MB / 1.032 GB, free: 6.512 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.makefile (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 & ./Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat","/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