Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001228/0.001227, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.009864/0.009865, allocations: 172.2 kB / 16.27 MB, free: 6.652 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.372/1.372, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.36/2.36, allocations: 390.9 MB / 0.6663 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003609, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6786/0.679, allocations: 142.4 MB / 0.9551 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.001629/0.6807, allocations: 1.156 MB / 0.9562 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.6821, allocations: 0.7979 MB / 0.957 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.458e-05/0.6822, allocations: 1.438 kB / 0.957 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.255e-05/0.6822, allocations: 0 / 0.957 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.226e-05/0.6823, allocations: 5.047 kB / 0.957 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006161/0.6829, allocations: 130.4 kB / 0.9571 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.691e-05/0.683, allocations: 36.75 kB / 0.9571 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.086e-05/0.6831, allocations: 10.66 kB / 0.9571 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.32e-05/0.6832, allocations: 9.703 kB / 0.9571 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.125e-05/0.6832, allocations: 17.83 kB / 0.9572 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.6832, allocations: 2.5 kB / 0.9572 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003392/0.6836, allocations: 190.1 kB / 0.9573 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.96e-05/0.6836, allocations: 15.52 kB / 0.9574 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.528e-05/0.6837, allocations: 39.05 kB / 0.9574 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.684, allocations: 192.5 kB / 0.9576 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.684, allocations: 0 / 0.9576 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.234e-06/0.684, allocations: 4 kB / 0.9576 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.684, allocations: 0 / 0.9576 GB, free: 5.855 MB / 0.7169 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.0004694/0.6845, allocations: 429.3 kB / 0.958 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.6846, allocations: 8.812 kB / 0.958 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/0.6846, allocations: 4.062 kB / 0.958 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.823e-05/0.6847, allocations: 170.9 kB / 0.9582 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.6847, allocations: 2.125 kB / 0.9582 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.6848, allocations: 6.188 kB / 0.9582 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.6849, allocations: 88.16 kB / 0.9583 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.685, allocations: 1.031 kB / 0.9583 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.685, allocations: 0.9375 kB / 0.9583 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.685, allocations: 0 / 0.9583 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001197/0.6851, allocations: 52.53 kB / 0.9583 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000373/0.6855, allocations: 281.4 kB / 0.9586 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.6856, allocations: 59.48 kB / 0.9586 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.854e-05/0.6857, allocations: 47.94 kB / 0.9587 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.6857, allocations: 0 / 0.9587 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.6858, allocations: 31.62 kB / 0.9587 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.6858, allocations: 8.969 kB / 0.9587 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003837/0.6862, allocations: 198.3 kB / 0.9589 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.6862, allocations: 79.61 kB / 0.959 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.534e-05/0.6863, allocations: 123.2 kB / 0.9591 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.038e-05/0.6863, allocations: 27.14 kB / 0.9591 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.027e-05/0.6863, allocations: 89.75 kB / 0.9592 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.6864, allocations: 9.438 kB / 0.9592 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-05/0.6864, allocations: 17.69 kB / 0.9592 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.792e-05/0.6865, allocations: 320 kB / 0.9595 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.6866, allocations: 57.69 kB / 0.9596 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.012e-05/0.6867, allocations: 58.38 kB / 0.9597 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.6869, allocations: 210 kB / 0.9599 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.6869, allocations: 0 / 0.9599 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002577/0.6871, allocations: 221.1 kB / 0.9601 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/0.6872, allocations: 63.66 kB / 0.9601 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.6872, allocations: 0 / 0.9601 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.6872, allocations: 0 / 0.9601 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.14e-05/0.6873, allocations: 8.109 kB / 0.9601 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.6873, allocations: 1.375 kB / 0.9601 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.177e-05/0.6873, allocations: 14.81 kB / 0.9602 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.6874, allocations: 1.375 kB / 0.9602 GB, free: 3.484 MB / 0.7169 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 8.279e-05/0.6874, allocations: 155.7 kB / 0.9603 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.6875, allocations: 6.656 kB / 0.9603 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.278e-05/0.6875, allocations: 5.281 kB / 0.9603 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.6875, allocations: 0 / 0.9603 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.6875, allocations: 1.375 kB / 0.9603 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.6875, allocations: 3.984 kB / 0.9603 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.6877, allocations: 179.2 kB / 0.9605 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.6877, allocations: 4.062 kB / 0.9605 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.235e-05/0.6877, allocations: 8.109 kB / 0.9605 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.6877, allocations: 0 / 0.9605 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.6877, allocations: 1.375 kB / 0.9605 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.6877, allocations: 9.297 kB / 0.9605 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.6878, allocations: 0 / 0.9605 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.688, allocations: 259 kB / 0.9608 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.053e-05/0.688, allocations: 78.48 kB / 0.9608 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.6881, allocations: 1.375 kB / 0.9608 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.686e-05/0.6881, allocations: 9.484 kB / 0.9608 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.6883, allocations: 10.69 kB / 0.9609 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.6883, allocations: 6.734 kB / 0.9609 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.348e-05/0.6883, allocations: 98.31 kB / 0.961 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6883, allocations: 4.031 kB / 0.961 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003549/0.6887, allocations: 56.12 kB / 0.961 GB, free: 2.656 MB / 0.7169 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.000288/0.689, allocations: 157.3 kB / 0.9612 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003375/0.6893, allocations: 240.4 kB / 0.9614 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.6893, allocations: 0 / 0.9614 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.6895, allocations: 109.3 kB / 0.9615 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.6897, allocations: 3.25 kB / 0.9615 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.6901, allocations: 182 kB / 0.9617 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.6902, allocations: 0.6866 MB / 0.9623 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.49e-05/0.6902, allocations: 0.9062 kB / 0.9623 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.6902, allocations: 12.5 kB / 0.9624 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of SimCode: time 1.132e-06/0.6902, allocations: 0 / 0.9624 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of Templates: time 0.004388/0.6946, allocations: 1.65 MB / 0.964 GB, free: 0.5781 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches