Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009009/0.009009, allocations: 101.5 kB / 15.73 MB, free: 5.586 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.001792/0.001793, allocations: 188.7 kB / 16.67 MB, free: 5.523 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.18/2.18, allocations: 390.2 MB / 0.6648 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 71.89 kB / 0.9509 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7914/0.7934, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002435/0.7959, allocations: 1.429 MB / 1.089 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001191/0.7971, allocations: 0.7791 MB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.014e-05/0.7971, allocations: 1.188 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.45e-05/0.7972, allocations: 0.7969 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.649e-05/0.7973, allocations: 6.734 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000675/0.7979, allocations: 170.5 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.7981, allocations: 51.3 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.48e-05/0.7982, allocations: 12.94 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.768e-05/0.7982, allocations: 13.75 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.031e-05/0.7983, allocations: 22.03 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.7983, allocations: 3.375 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000381/0.7987, allocations: 203.2 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.734e-05/0.7987, allocations: 9.594 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.836e-05/0.7988, allocations: 18.44 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.7991, allocations: 188.7 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.7991, allocations: 9.828 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.183e-06/0.7991, allocations: 0 / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.7991, allocations: 0 / 1.091 GB, free: 3.766 MB / 0.8575 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.0004441/0.7996, allocations: 432.1 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.7996, allocations: 9.219 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.7997, allocations: 7.875 kB / 1.091 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.714e-05/0.7998, allocations: 177.2 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.7998, allocations: 1.812 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.7998, allocations: 10.28 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.8, allocations: 73.17 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.8, allocations: 0.7188 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.8, allocations: 4.547 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8001, allocations: 4.594 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.8002, allocations: 45.86 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/0.8005, allocations: 274.5 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.8007, allocations: 60.02 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.592e-05/0.8008, allocations: 46.45 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.8008, allocations: 0 / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.8008, allocations: 40.66 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.8008, allocations: 0 / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003991/0.8012, allocations: 187.1 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.8013, allocations: 79.94 kB / 1.092 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.335e-05/0.8014, allocations: 126 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.8014, allocations: 27.23 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.557e-05/0.8014, allocations: 91.5 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.8014, allocations: 18.7 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.8015, allocations: 17.72 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.482e-05/0.8015, allocations: 322.9 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.8017, allocations: 57.56 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.325e-05/0.8018, allocations: 58.25 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.802, allocations: 194.2 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.802, allocations: 1.062 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002994/0.8023, allocations: 224.5 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.8023, allocations: 62.97 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.8024, allocations: 0 / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.8024, allocations: 0.75 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.067e-05/0.8024, allocations: 4.344 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.8025, allocations: 0.75 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.685e-05/0.8025, allocations: 11.05 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.8025, allocations: 6.188 kB / 1.093 GB, free: 1.547 MB / 0.8575 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 8.11e-05/0.8026, allocations: 158.1 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.8026, allocations: 6.438 kB / 1.093 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.293e-05/0.8027, allocations: 10.64 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.8027, allocations: 1.562 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.8027, allocations: 0 / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.8027, allocations: 1.062 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.8028, allocations: 174.7 kB / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.8028, allocations: 0 / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.848e-05/0.8029, allocations: 4.188 kB / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.8029, allocations: 0.5312 kB / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.8029, allocations: 5.75 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.8029, allocations: 0.75 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.8029, allocations: 0.75 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.8032, allocations: 251.8 kB / 1.094 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.015e-05/0.8032, allocations: 83.12 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.8032, allocations: 1.75 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.828e-05/0.8033, allocations: 5.156 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.8034, allocations: 9.344 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.8034, allocations: 3.016 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.764e-05/0.8035, allocations: 101.9 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8035, allocations: 0.8438 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003924/0.8039, allocations: 58.23 kB / 1.094 GB, free: 0.7773 MB / 0.8575 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.0002748/0.8042, allocations: 151.4 kB / 1.094 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000337/0.8045, allocations: 243 kB / 1.095 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.8045, allocations: 4.5 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.8047, allocations: 99.62 kB / 1.095 GB, free: 456 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.8049, allocations: 9.047 kB / 1.095 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003598/0.8053, allocations: 175.3 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.8055, allocations: 0.6893 MB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.734e-05/0.8056, allocations: 0 / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.373e-05/0.8056, allocations: 9.031 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.8056, allocations: 4 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of Templates: time 0.005338/0.8109, allocations: 1.755 MB / 1.097 GB, free: 15.45 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches