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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cubSpl.y",fileNamePrefix="Buildings_latest_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_latest_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.001528/0.001528, allocations: 111.1 kB / 16.37 MB, free: 6.012 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.00173/0.00173, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.585/2.585, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.38 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2922, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002591/0.2948, allocations: 1.436 MB / 1.028 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.2961, allocations: 0.7877 MB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.969e-05/0.2962, allocations: 0 / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.026e-05/0.2963, allocations: 8 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.839e-05/0.2963, allocations: 7.922 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006266/0.297, allocations: 166.7 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.2971, allocations: 59.72 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.237e-05/0.2972, allocations: 8 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.597e-05/0.2972, allocations: 11.98 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.909e-05/0.2973, allocations: 23.91 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.2973, allocations: 0 / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003271/0.2976, allocations: 203.7 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.854e-05/0.2977, allocations: 12 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.726e-05/0.2977, allocations: 19.86 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.298, allocations: 191.6 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.298, allocations: 0 / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.164e-06/0.298, allocations: 0 / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.298, allocations: 0 / 1.03 GB, free: 15.09 MB / 0.8106 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.0005079/0.2985, allocations: 430.8 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.2986, allocations: 8.031 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.276e-05/0.2986, allocations: 12.84 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.2988, allocations: 176.2 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.2988, allocations: 4.375 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.2988, allocations: 8.359 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.299, allocations: 73.98 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.299, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.299, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.299, allocations: 4 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.2991, allocations: 47.95 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003962/0.2995, allocations: 272.9 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.2997, allocations: 62.48 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.125e-05/0.2998, allocations: 48.91 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.2998, allocations: 4 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.2998, allocations: 30.56 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.2998, allocations: 4 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.000384/0.3002, allocations: 183.2 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.3003, allocations: 85.05 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.379e-05/0.3004, allocations: 125.8 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.3004, allocations: 29.7 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.211e-05/0.3005, allocations: 88.08 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.3005, allocations: 11.84 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.226e-05/0.3005, allocations: 21.7 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3007, allocations: 326.8 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.3008, allocations: 55.97 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.861e-05/0.3009, allocations: 59.95 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.3011, allocations: 197.9 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3011, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002801/0.3014, allocations: 220.9 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.282e-05/0.3015, allocations: 67.39 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3015, allocations: 4 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.3015, allocations: 0 / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.852e-05/0.3016, allocations: 4 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.3016, allocations: 0 / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.676e-05/0.3016, allocations: 7.984 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.3016, allocations: 4 kB / 1.032 GB, free: 12.17 MB / 0.8106 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.0001064/0.3017, allocations: 147.5 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/0.3018, allocations: 7.906 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.312e-05/0.3018, allocations: 11.89 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.3018, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3018, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3018, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.302, allocations: 177.6 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.302, allocations: 0 / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.589e-05/0.302, allocations: 0 / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3021, allocations: 4.234 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.3021, allocations: 0 / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3021, allocations: 0 / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3021, allocations: 0 / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.3024, allocations: 261.1 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.72e-05/0.3024, allocations: 85 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.3024, allocations: 0 / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.959e-05/0.3025, allocations: 8 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3026, allocations: 7.984 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.3026, allocations: 8 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.484e-05/0.3027, allocations: 99.23 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3027, allocations: 0 / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003229/0.303, allocations: 56 kB / 1.033 GB, free: 11.21 MB / 0.8106 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.0003075/0.3033, allocations: 151.2 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003224/0.3037, allocations: 234.7 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3037, allocations: 4 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.3038, allocations: 103.3 kB / 1.033 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.3041, allocations: 16 kB / 1.033 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003726/0.3044, allocations: 173.5 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.3047, allocations: 0.6923 MB / 1.034 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.595e-05/0.3047, allocations: 0 / 1.034 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.562e-05/0.3048, allocations: 7.438 kB / 1.034 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.3048, allocations: 0 / 1.034 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of Templates: time 0.004539/0.3093, allocations: 1.754 MB / 1.036 GB, free: 8.016 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.makefile (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 & ./Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat","/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