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.00128/0.00128, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001293/0.001293, allocations: 198.9 kB / 16.14 MB, free: 6.645 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.263/1.263, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.391/2.391, allocations: 461.9 MB / 0.7342 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 69.58 kB / 0.8985 GB, free: 36.8 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2139, allocations: 157.4 MB / 1.052 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002428/0.2164, allocations: 1.499 MB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.2175, allocations: 0.8221 MB / 1.054 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.437e-05/0.2176, allocations: 0 / 1.054 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.478e-05/0.2176, allocations: 0 / 1.054 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.173e-05/0.2177, allocations: 15.92 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004591/0.2181, allocations: 119.8 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.083e-05/0.2182, allocations: 35.97 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.201e-05/0.2183, allocations: 4 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.543e-05/0.2183, allocations: 19.92 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.718e-05/0.2184, allocations: 11.98 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.2184, allocations: 7.938 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000273/0.2187, allocations: 195.7 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.789e-05/0.2187, allocations: 19.92 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.038e-05/0.2188, allocations: 15.88 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.219, allocations: 187.6 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.219, allocations: 0 / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.31e-07/0.219, allocations: 0 / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.126e-06/0.219, allocations: 0 / 1.055 GB, free: 5.195 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.0004284/0.2195, allocations: 431.1 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.2195, allocations: 8.031 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.453e-05/0.2195, allocations: 38.75 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.835e-05/0.2196, allocations: 4.844 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.869e-05/0.2197, allocations: 176.2 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.2197, allocations: 8.312 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.2197, allocations: 4.375 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.2199, allocations: 81.72 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.2199, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2199, allocations: 4 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.2199, allocations: 0 / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.22, allocations: 47.97 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003316/0.2204, allocations: 276.9 kB / 1.056 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.2205, allocations: 54.55 kB / 1.056 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.699e-05/0.2206, allocations: 56.84 kB / 1.056 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.2206, allocations: 0 / 1.056 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.2206, allocations: 34.56 kB / 1.056 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.2206, allocations: 0 / 1.056 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003432/0.221, allocations: 179.2 kB / 1.056 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.221, allocations: 85.09 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.755e-05/0.2211, allocations: 121.8 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.2211, allocations: 29.7 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.676e-05/0.2212, allocations: 84.12 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.2212, allocations: 15.88 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.2212, allocations: 17.72 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.2213, allocations: 326.8 kB / 1.057 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.178e-05/0.2214, allocations: 59.91 kB / 1.057 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.912e-05/0.2215, allocations: 55.97 kB / 1.057 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.2217, allocations: 193.9 kB / 1.057 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2217, allocations: 0 / 1.057 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002568/0.222, allocations: 221.1 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.903e-05/0.2221, allocations: 63.41 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.2221, allocations: 0 / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.2221, allocations: 4.031 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.097e-05/0.2221, allocations: 12.05 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2221, allocations: 0 / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.414e-05/0.2222, allocations: 4 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.2222, allocations: 11.88 kB / 1.058 GB, free: 2.242 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 9.451e-05/0.2223, allocations: 159.4 kB / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.2223, allocations: 11.91 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.702e-05/0.2224, allocations: 3.906 kB / 1.058 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.2224, allocations: 0 / 1.058 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2224, allocations: 0 / 1.058 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2224, allocations: 3.984 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.2225, allocations: 173.6 kB / 1.058 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2225, allocations: 0 / 1.058 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.74e-05/0.2226, allocations: 7.984 kB / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2226, allocations: 0 / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-06/0.2226, allocations: 0 / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2226, allocations: 4 kB / 1.058 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2226, allocations: 0 / 1.058 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.2228, allocations: 249.1 kB / 1.058 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.191e-05/0.2229, allocations: 81.02 kB / 1.058 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.2229, allocations: 4 kB / 1.058 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.64e-05/0.223, allocations: 11.92 kB / 1.058 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.568e-05/0.2231, allocations: 0 / 1.058 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.2231, allocations: 12.02 kB / 1.058 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.377e-05/0.2231, allocations: 99.27 kB / 1.058 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/0.2232, allocations: 0 / 1.058 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002785/0.2234, allocations: 52 kB / 1.059 GB, free: 1.277 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.0006167/0.2241, allocations: 0.8325 MB / 1.059 GB, free: 424 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000276/0.2243, allocations: 234.7 kB / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2244, allocations: 0 / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.2245, allocations: 107.4 kB / 1.06 GB, free: 44 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.2247, allocations: 11.61 kB / 1.06 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.2262, allocations: 1.759 MB / 1.061 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.2264, allocations: 0.6887 MB / 1.062 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.305e-05/0.2265, allocations: 0 / 1.062 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.615e-05/0.2265, allocations: 11.44 kB / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2265, allocations: 0 / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2959/0.5225, allocations: 2.584 MB / 1.065 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/0.5227, allocations: 258.2 kB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/2.118, allocations: 0 / 1.065 GB, free: 10.79 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