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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.274/2.274, allocations: 387.1 MB / 399.7 MB, free: 9.488 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001089, allocations: 176.1 kB / 492.3 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.674/1.674, allocations: 221.3 MB / 0.7871 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 94.7 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.423e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.29, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.036/1.326, allocations: 150.7 MB / 1.36 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.327, allocations: 91.23 kB / 1.36 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01019/1.337, allocations: 3.252 MB / 1.363 GB, free: 34.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.493e-06/1.337, allocations: 3.938 kB / 1.363 GB, free: 34.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.004e-05/1.337, allocations: 0 / 1.363 GB, free: 34.66 MB / 0.8386 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.0004743/1.337, allocations: 426 kB / 1.363 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/1.338, allocations: 7.688 kB / 1.363 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/1.338, allocations: 7.781 kB / 1.363 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.663e-05/1.338, allocations: 168 kB / 1.363 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/1.338, allocations: 3.062 kB / 1.363 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/1.338, allocations: 3.875 kB / 1.363 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/1.338, allocations: 71.22 kB / 1.363 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/1.338, allocations: 0 / 1.363 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/1.338, allocations: 0 / 1.363 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/1.338, allocations: 7.938 kB / 1.363 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.036e-05/1.338, allocations: 41.83 kB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003978/1.338, allocations: 284.2 kB / 1.364 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.009e-05/1.338, allocations: 53.48 kB / 1.364 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.42e-05/1.339, allocations: 42.86 kB / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/1.339, allocations: 4 kB / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/1.339, allocations: 40.91 kB / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/1.339, allocations: 0 / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0002362/1.339, allocations: 125.7 kB / 1.364 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/1.339, allocations: 84.3 kB / 1.364 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.542e-05/1.339, allocations: 117.7 kB / 1.364 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/1.339, allocations: 25.7 kB / 1.364 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.712e-05/1.339, allocations: 91.61 kB / 1.364 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.382e-05/1.339, allocations: 7.938 kB / 1.364 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/1.339, allocations: 3.875 kB / 1.364 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001092/1.339, allocations: 320.3 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.951e-05/1.339, allocations: 52.3 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-05/1.339, allocations: 50.34 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.216e-05/1.339, allocations: 107.2 kB / 1.365 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/1.339, allocations: 0 / 1.365 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001875/1.34, allocations: 203.4 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/1.34, allocations: 66.09 kB / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/1.34, allocations: 3.812 kB / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/1.34, allocations: 4 kB / 1.365 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.125e-05/1.34, allocations: 3.969 kB / 1.365 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/1.34, allocations: 0 / 1.365 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.707e-05/1.34, allocations: 14.19 kB / 1.365 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/1.34, allocations: 0 / 1.365 GB, free: 32.71 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.871e-05/1.34, allocations: 141.5 kB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.535e-05/1.34, allocations: 6.828 kB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.796e-05/1.34, allocations: 11.97 kB / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/1.34, allocations: 0 / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/1.34, allocations: 0 / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/1.34, allocations: 0 / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/1.34, allocations: 176 kB / 1.365 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/1.34, allocations: 0 / 1.365 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.729e-05/1.34, allocations: 6.438 kB / 1.365 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/1.34, allocations: 0 / 1.365 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/1.34, allocations: 3.312 kB / 1.365 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/1.34, allocations: 8 kB / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.34, allocations: 3.688 kB / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001929/1.34, allocations: 242.5 kB / 1.366 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.163e-05/1.341, allocations: 84.86 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/1.341, allocations: 3.188 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.86e-05/1.341, allocations: 10.53 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/1.341, allocations: 6.656 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/1.341, allocations: 0 / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.089e-05/1.341, allocations: 100.9 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.341, allocations: 0 / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003851/1.341, allocations: 75.78 kB / 1.366 GB, free: 31.98 MB / 0.8386 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002671/1.341, allocations: 156.8 kB / 1.366 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002355/1.342, allocations: 231.5 kB / 1.366 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.342, allocations: 0 / 1.366 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.086e-05/1.342, allocations: 97.39 kB / 1.366 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/1.342, allocations: 12.22 kB / 1.366 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002585/1.342, allocations: 123.9 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/1.342, allocations: 0.6892 MB / 1.367 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.541e-05/1.342, allocations: 0 / 1.367 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.372e-05/1.343, allocations: 11.38 kB / 1.367 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of SimCode: time 2.9e-07/1.343, allocations: 0 / 1.367 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of Templates: time 0.003705/1.346, allocations: 1.61 MB / 1.369 GB, free: 30.77 MB / 0.8386 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","../files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches