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: "" <> 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.001174/0.001174, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007959/0.007959, allocations: 170.2 kB / 16.26 MB, free: 6.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.359/1.359, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.454/2.454, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002786, allocations: 7.312 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.226, allocations: 159.6 MB / 1.059 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.0013/0.2274, allocations: 1.171 MB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001086/0.2285, allocations: 0.8105 MB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.966e-05/0.2285, allocations: 0 / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.148e-05/0.2285, allocations: 4 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.751e-05/0.2286, allocations: 3.938 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004296/0.229, allocations: 130.4 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.96e-05/0.2291, allocations: 31.98 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.407e-05/0.2292, allocations: 7.984 kB / 1.061 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.023e-05/0.2292, allocations: 19.88 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.921e-05/0.2293, allocations: 19.97 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.2293, allocations: 0 / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.2295, allocations: 191.7 kB / 1.061 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.348e-05/0.2296, allocations: 11.92 kB / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.477e-05/0.2296, allocations: 41.58 kB / 1.061 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002202/0.2299, allocations: 187.6 kB / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2299, allocations: 0 / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2299, allocations: 0 / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.216e-06/0.2299, allocations: 0 / 1.061 GB, free: 2.211 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.0003948/0.2303, allocations: 423.1 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2303, allocations: 12.03 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.181e-05/0.2304, allocations: 30.75 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.496e-05/0.2304, allocations: 8.844 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.072e-05/0.2305, allocations: 172.3 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.405e-06/0.2305, allocations: 4.375 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.2305, allocations: 8.312 kB / 1.062 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/0.2307, allocations: 85.72 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.1e-06/0.2307, allocations: 4 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.948e-06/0.2307, allocations: 3.984 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.2307, allocations: 4 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.2308, allocations: 47.97 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003323/0.2312, allocations: 280.8 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.2313, allocations: 62.5 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.319e-05/0.2314, allocations: 52.91 kB / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.2314, allocations: 0 / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.2314, allocations: 30.56 kB / 1.063 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.2314, allocations: 0 / 1.063 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003476/0.2318, allocations: 195.2 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.2318, allocations: 81.11 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.372e-05/0.2319, allocations: 129.7 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.2319, allocations: 29.7 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.232, allocations: 88.05 kB / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.232, allocations: 11.84 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/0.232, allocations: 17.7 kB / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2322, allocations: 322.8 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.772e-05/0.2323, allocations: 63.95 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.894e-05/0.2324, allocations: 55.97 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.2326, allocations: 193.9 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2326, allocations: 4 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002611/0.2328, allocations: 221 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.2329, allocations: 63.39 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.2329, allocations: 0 / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.558e-06/0.2329, allocations: 0 / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.726e-05/0.233, allocations: 7.938 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.233, allocations: 3.984 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.752e-05/0.233, allocations: 15.89 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.2331, allocations: 4 kB / 1.064 GB, free: 15.23 MB / 0.8262 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.967e-05/0.2332, allocations: 151.5 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.2332, allocations: 7.938 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.747e-05/0.2332, allocations: 7.906 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2332, allocations: 0 / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.2332, allocations: 0 / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.2332, allocations: 4 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.2334, allocations: 177.6 kB / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2334, allocations: 0 / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.845e-05/0.2334, allocations: 8 kB / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2334, allocations: 0 / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.2335, allocations: 0 / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2335, allocations: 8.062 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2335, allocations: 0 / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.2337, allocations: 257 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.693e-05/0.2338, allocations: 81.14 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.2338, allocations: 8 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.709e-05/0.2339, allocations: 4 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.397e-05/0.234, allocations: 8.219 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.234, allocations: 0 / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.599e-05/0.234, allocations: 95.27 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.234, allocations: 0 / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002767/0.2343, allocations: 67.89 kB / 1.065 GB, free: 14.25 MB / 0.8262 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.0006075/0.2349, allocations: 0.8351 MB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002851/0.2352, allocations: 250.7 kB / 1.066 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2352, allocations: 0 / 1.066 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.2353, allocations: 103.4 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.2355, allocations: 4.75 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.2371, allocations: 1.767 MB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.2374, allocations: 0.6887 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.332e-05/0.2374, allocations: 0 / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.64e-05/0.2374, allocations: 11.44 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2374, allocations: 0 / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9852/1.223, allocations: 2.529 MB / 1.071 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/1.223, allocations: 255 kB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/3.213, allocations: 0 / 1.071 GB, free: 7.836 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.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