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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005344/0.005344, allocations: 100.6 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.001308/0.001308, allocations: 189.6 kB / 16.67 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.556/2.556, allocations: 472.6 MB / 0.7453 GB, free: 440 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.91 kB / 1.069 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7443/0.7455, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002254/0.7478, allocations: 1.436 MB / 1.227 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.749, allocations: 0.7997 MB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.747e-05/0.749, allocations: 0 / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.348e-05/0.7491, allocations: 0 / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.33e-05/0.7491, allocations: 7.922 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005674/0.7497, allocations: 167.6 kB / 1.228 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.7498, allocations: 43.98 kB / 1.228 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 7.031e-05/0.7499, allocations: 11.97 kB / 1.228 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.353e-05/0.7499, allocations: 19.92 kB / 1.228 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.8e-05/0.75, allocations: 19.98 kB / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.75, allocations: 7.938 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003233/0.7503, allocations: 195.7 kB / 1.228 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.312e-05/0.7504, allocations: 15.91 kB / 1.228 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.469e-05/0.7504, allocations: 19.88 kB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002664/0.7507, allocations: 192.1 kB / 1.228 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.7507, allocations: 0 / 1.228 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7507, allocations: 0 / 1.228 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.7507, allocations: 0 / 1.228 GB, free: 10.57 MB / 0.9512 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.0004781/0.7512, allocations: 438.5 kB / 1.229 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.7513, allocations: 8.031 kB / 1.229 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.7513, allocations: 12.83 kB / 1.229 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.7514, allocations: 168.3 kB / 1.229 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.7514, allocations: 8.312 kB / 1.229 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.7515, allocations: 384 / 1.229 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.7516, allocations: 85.91 kB / 1.229 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.7517, allocations: 0 / 1.229 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.7517, allocations: 0 / 1.229 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.7517, allocations: 3.984 kB / 1.229 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.7518, allocations: 47.97 kB / 1.229 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000392/0.7522, allocations: 276.9 kB / 1.229 GB, free: 9.391 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.7523, allocations: 62.48 kB / 1.23 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.565e-05/0.7524, allocations: 48.91 kB / 1.23 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.263e-06/0.7524, allocations: 0 / 1.23 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.7525, allocations: 34.56 kB / 1.23 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.7525, allocations: 0 / 1.23 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0003738/0.7528, allocations: 183.3 kB / 1.23 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.7529, allocations: 85.09 kB / 1.23 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.246e-05/0.753, allocations: 121.8 kB / 1.23 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.753, allocations: 25.7 kB / 1.23 GB, free: 8.773 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.7531, allocations: 96 kB / 1.23 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.472e-05/0.7531, allocations: 11.98 kB / 1.23 GB, free: 8.664 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.145e-05/0.7531, allocations: 21.72 kB / 1.23 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.804e-05/0.7533, allocations: 314.8 kB / 1.23 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.7534, allocations: 55.97 kB / 1.231 GB, free: 8.266 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.85e-05/0.7535, allocations: 55.97 kB / 1.231 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.7537, allocations: 201.8 kB / 1.231 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.7537, allocations: 0 / 1.231 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002999/0.754, allocations: 217 kB / 1.231 GB, free: 7.762 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.582e-05/0.7541, allocations: 63.41 kB / 1.231 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.7541, allocations: 0 / 1.231 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.7541, allocations: 4 kB / 1.231 GB, free: 7.684 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.244e-05/0.7542, allocations: 7.922 kB / 1.231 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.7542, allocations: 64 / 1.231 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.681e-05/0.7542, allocations: 12 kB / 1.231 GB, free: 7.664 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.7542, allocations: 7.922 kB / 1.231 GB, free: 7.656 MB / 0.9512 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.0001088/0.7543, allocations: 156 kB / 1.231 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.7544, allocations: 11.95 kB / 1.231 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.83e-05/0.7544, allocations: 3.906 kB / 1.231 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.7544, allocations: 0 / 1.231 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.7544, allocations: 4 kB / 1.231 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.7544, allocations: 0 / 1.231 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.7546, allocations: 177.6 kB / 1.231 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.7546, allocations: 3.938 kB / 1.231 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.914e-05/0.7546, allocations: 7.984 kB / 1.231 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.7546, allocations: 0 / 1.231 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.7547, allocations: 0 / 1.231 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.7547, allocations: 4 kB / 1.231 GB, free: 7.223 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7547, allocations: 4 kB / 1.231 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.7549, allocations: 253 kB / 1.232 GB, free: 6.949 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.131e-05/0.755, allocations: 77.11 kB / 1.232 GB, free: 6.855 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.755, allocations: 4 kB / 1.232 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.245e-05/0.7551, allocations: 7.984 kB / 1.232 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-05/0.7552, allocations: 8 kB / 1.232 GB, free: 6.836 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.7552, allocations: 4.031 kB / 1.232 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.7553, allocations: 99.25 kB / 1.232 GB, free: 6.734 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7553, allocations: 0 / 1.232 GB, free: 6.734 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003043/0.7556, allocations: 59.88 kB / 1.232 GB, free: 6.676 MB / 0.9512 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.0002434/0.7558, allocations: 147.1 kB / 1.232 GB, free: 6.523 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003173/0.7561, allocations: 239 kB / 1.232 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.7562, allocations: 4 kB / 1.232 GB, free: 6.262 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.7563, allocations: 111.3 kB / 1.232 GB, free: 6.141 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.7565, allocations: 9.812 kB / 1.232 GB, free: 6.133 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003243/0.7568, allocations: 193.1 kB / 1.233 GB, free: 5.918 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.7571, allocations: 0.6847 MB / 1.233 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.437e-05/0.7571, allocations: 0 / 1.233 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.572e-05/0.7571, allocations: 7.438 kB / 1.233 GB, free: 5.199 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.7572, allocations: 0 / 1.233 GB, free: 5.199 MB / 0.9512 GB Notification: Performance of Templates: time 0.003982/0.7611, allocations: 1.77 MB / 1.235 GB, free: 3.465 MB / 0.9512 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 -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/jenkins/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