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.006281/0.006281, allocations: 106.9 kB / 15.74 MB, free: 5.582 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.001241/0.001242, allocations: 197.7 kB / 16.67 MB, free: 5.508 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.198/2.198, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.91 kB / 0.9509 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.865/0.8663, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002579/0.8689, allocations: 1.425 MB / 1.089 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.8702, allocations: 0.7873 MB / 1.09 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.263e-05/0.8703, allocations: 0.875 kB / 1.09 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 7.197e-05/0.8703, allocations: 1.656 kB / 1.09 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.805e-05/0.8704, allocations: 9.656 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006667/0.8711, allocations: 167.2 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.8712, allocations: 55.02 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.752e-05/0.8713, allocations: 11.61 kB / 1.09 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.821e-05/0.8713, allocations: 13.95 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.147e-05/0.8714, allocations: 22.28 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.8714, allocations: 4.219 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003644/0.8718, allocations: 202.8 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.116e-05/0.8719, allocations: 5.062 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.186e-05/0.8719, allocations: 22.62 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.8723, allocations: 189.8 kB / 1.091 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.8723, allocations: 5.031 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.8723, allocations: 4 kB / 1.091 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.8723, allocations: 0 / 1.091 GB, free: 3.77 MB / 0.8575 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.0004309/0.8727, allocations: 428.7 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.8728, allocations: 13.17 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.8728, allocations: 7.719 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.486e-05/0.8729, allocations: 172.8 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.8729, allocations: 2 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.8729, allocations: 10.12 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.8731, allocations: 77.62 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.8732, allocations: 0 / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.8732, allocations: 0.6875 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.8732, allocations: 0.6875 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.8733, allocations: 50.97 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003194/0.8736, allocations: 274.2 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.8738, allocations: 63.84 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.545e-05/0.8739, allocations: 46.05 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.8739, allocations: 0 / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.8739, allocations: 32.2 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 9.81e-07/0.8739, allocations: 1 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003842/0.8743, allocations: 183.7 kB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.8743, allocations: 83.2 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.113e-05/0.8744, allocations: 130.4 kB / 1.092 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.8744, allocations: 26.8 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.072e-05/0.8745, allocations: 87.33 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.8745, allocations: 10.14 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.8745, allocations: 22.47 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.8746, allocations: 318.7 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.8747, allocations: 62.12 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.929e-05/0.8748, allocations: 58.16 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.875, allocations: 202.3 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.875, allocations: 0 / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002859/0.8753, allocations: 213 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.368e-05/0.8754, allocations: 66.14 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.8754, allocations: 1.516 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.8754, allocations: 4.656 kB / 1.093 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.709e-05/0.8755, allocations: 3.484 kB / 1.093 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.8755, allocations: 0.6875 kB / 1.093 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.75e-05/0.8755, allocations: 15.09 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.8755, allocations: 1.906 kB / 1.093 GB, free: 1.559 MB / 0.8575 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 7.772e-05/0.8756, allocations: 155 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.8757, allocations: 6.156 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.353e-05/0.8757, allocations: 7.547 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.8757, allocations: 0 / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.8757, allocations: 1.359 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.8757, allocations: 0.5625 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.8759, allocations: 181.7 kB / 1.094 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.8759, allocations: 4.891 kB / 1.094 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.569e-05/0.8759, allocations: 3.359 kB / 1.094 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.8759, allocations: 1.422 kB / 1.094 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.8759, allocations: 5.5 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.8759, allocations: 0.7969 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8759, allocations: 0.7812 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.8762, allocations: 248.1 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.313e-05/0.8762, allocations: 91.09 kB / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.8763, allocations: 2.297 kB / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.946e-05/0.8763, allocations: 5.156 kB / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.8764, allocations: 9.156 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.8765, allocations: 2.078 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.872e-05/0.8765, allocations: 99.09 kB / 1.094 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8765, allocations: 0 / 1.094 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003862/0.8769, allocations: 62.66 kB / 1.094 GB, free: 0.7812 MB / 0.8575 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.0002911/0.8772, allocations: 151.2 kB / 1.094 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003521/0.8776, allocations: 238.9 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.8776, allocations: 0 / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.8777, allocations: 107.7 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.8779, allocations: 5.531 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003781/0.8783, allocations: 175.3 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.8786, allocations: 0.6887 MB / 1.095 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.73e-05/0.8786, allocations: 0.8438 kB / 1.095 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.722e-05/0.8786, allocations: 12.19 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.8786, allocations: 0.5312 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of Templates: time 0.005973/0.8846, allocations: 1.786 MB / 1.097 GB, free: 15.45 MB / 0.8731 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