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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00721/0.007211, allocations: 103.8 kB / 15.73 MB, free: 6.008 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.001593/0.001593, allocations: 197.4 kB / 16.68 MB, free: 5.934 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.283/1.283, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.407/2.407, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 67.91 kB / 1.054 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.757/0.7581, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002336/0.7605, allocations: 1.428 MB / 1.209 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001229/0.7618, allocations: 0.7909 MB / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.708e-05/0.7618, allocations: 3.938 kB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 7.199e-05/0.7619, allocations: 3.938 kB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.818e-05/0.7619, allocations: 0 / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000657/0.7626, allocations: 174.7 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.7628, allocations: 51.91 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.549e-05/0.7628, allocations: 11.97 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.55e-05/0.7629, allocations: 8 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.289e-05/0.7629, allocations: 27.91 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.763, allocations: 4 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.7633, allocations: 195.7 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.172e-05/0.7633, allocations: 19.91 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.436e-05/0.7634, allocations: 15.94 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002711/0.7637, allocations: 189.8 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.7637, allocations: 8 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.208e-06/0.7637, allocations: 0 / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.7637, allocations: 3.938 kB / 1.21 GB, free: 10.63 MB / 0.9356 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.0005114/0.7642, allocations: 426.7 kB / 1.211 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.7643, allocations: 12.03 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.209e-05/0.7643, allocations: 38.73 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.7644, allocations: 4.938 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.7645, allocations: 172.2 kB / 1.211 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.7645, allocations: 384 / 1.211 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.7645, allocations: 4.375 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.7647, allocations: 77.78 kB / 1.211 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.7647, allocations: 0 / 1.211 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.7647, allocations: 4 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.7648, allocations: 0 / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.7649, allocations: 55.84 kB / 1.211 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003881/0.7653, allocations: 276.9 kB / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/0.7654, allocations: 58.55 kB / 1.211 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.011e-05/0.7655, allocations: 44.91 kB / 1.211 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 7.323e-06/0.7655, allocations: 0 / 1.211 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.7655, allocations: 34.56 kB / 1.211 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.7655, allocations: 7.938 kB / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0003768/0.7659, allocations: 187.2 kB / 1.211 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.766, allocations: 77.11 kB / 1.212 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.946e-05/0.7661, allocations: 125.8 kB / 1.212 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.7661, allocations: 25.7 kB / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.835e-05/0.7662, allocations: 92.12 kB / 1.212 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/0.7662, allocations: 3.906 kB / 1.212 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-05/0.7662, allocations: 25.75 kB / 1.212 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.7663, allocations: 318.8 kB / 1.212 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.539e-05/0.7664, allocations: 55.97 kB / 1.212 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.752e-05/0.7665, allocations: 59.97 kB / 1.212 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.7667, allocations: 193.8 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.7667, allocations: 7.984 kB / 1.212 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002653/0.767, allocations: 220.9 kB / 1.213 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.97e-05/0.7671, allocations: 59.41 kB / 1.213 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.7671, allocations: 64 / 1.213 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.7671, allocations: 4 kB / 1.213 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.664e-05/0.7672, allocations: 7.984 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.7672, allocations: 0 / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.36e-05/0.7672, allocations: 7.938 kB / 1.213 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.7672, allocations: 4 kB / 1.213 GB, free: 7.691 MB / 0.9356 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.663e-05/0.7673, allocations: 151.5 kB / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.835e-05/0.7674, allocations: 11.91 kB / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.686e-05/0.7674, allocations: 11.91 kB / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.7674, allocations: 0 / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.7674, allocations: 0 / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.7674, allocations: 3.938 kB / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.7676, allocations: 169.6 kB / 1.213 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.7676, allocations: 240 / 1.213 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.077e-05/0.7676, allocations: 7.984 kB / 1.213 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.7676, allocations: 3.938 kB / 1.213 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.7677, allocations: 8 kB / 1.213 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.7677, allocations: 4 kB / 1.213 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7677, allocations: 3.984 kB / 1.213 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002587/0.7679, allocations: 245 kB / 1.213 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.582e-05/0.768, allocations: 81.11 kB / 1.213 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.768, allocations: 0 / 1.213 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.962e-05/0.7681, allocations: 7.984 kB / 1.213 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.7682, allocations: 8 kB / 1.213 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.7682, allocations: 8.016 kB / 1.213 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.786e-05/0.7683, allocations: 99.64 kB / 1.214 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7683, allocations: 0 / 1.214 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002933/0.7686, allocations: 63.92 kB / 1.214 GB, free: 6.703 MB / 0.9356 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.0006745/0.7693, allocations: 0.8311 MB / 1.214 GB, free: 5.84 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003125/0.7696, allocations: 238.7 kB / 1.215 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7696, allocations: 0 / 1.215 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.7697, allocations: 103.4 kB / 1.215 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.77, allocations: 7.984 kB / 1.215 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.7716, allocations: 1.756 MB / 1.216 GB, free: 3.613 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.7719, allocations: 0.6846 MB / 1.217 GB, free: 2.902 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.705e-05/0.7719, allocations: 8 kB / 1.217 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.037e-05/0.7719, allocations: 11.44 kB / 1.217 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.772, allocations: 0 / 1.217 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.7905, allocations: 2.853 MB / 1.22 GB, free: 212 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/8.222, allocations: 11.06 kB / 1.22 GB, free: 204 kB / 0.9356 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