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.001653/0.001653, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.443/1.443, allocations: 222.9 MB / 240.2 MB, free: 4.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.913/2.913, allocations: 482.6 MB / 0.7548 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 73.28 kB / 0.9241 GB, free: 29.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3406, allocations: 162.3 MB / 1.083 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.003748/0.3444, allocations: 1.424 MB / 1.084 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.3458, allocations: 0.787 MB / 1.085 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.779e-05/0.3459, allocations: 4 kB / 1.085 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 6.622e-05/0.346, allocations: 3.938 kB / 1.085 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.902e-05/0.346, allocations: 3.938 kB / 1.085 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006999/0.3467, allocations: 174.2 kB / 1.085 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.3469, allocations: 47.97 kB / 1.085 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.529e-05/0.3469, allocations: 8 kB / 1.085 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.157e-05/0.347, allocations: 15.92 kB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.277e-05/0.3471, allocations: 15.98 kB / 1.085 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.3471, allocations: 4 kB / 1.085 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003622/0.3475, allocations: 207.7 kB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.3475, allocations: 11.88 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.245e-05/0.3476, allocations: 31.8 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.3479, allocations: 183.9 kB / 1.085 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3479, allocations: 0 / 1.085 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3479, allocations: 0 / 1.085 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.3479, allocations: 0 / 1.085 GB, free: 10.05 MB / 0.8419 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.0005908/0.3485, allocations: 434.7 kB / 1.086 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3486, allocations: 8.031 kB / 1.086 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.3486, allocations: 4.938 kB / 1.086 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.3488, allocations: 168.3 kB / 1.086 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.3488, allocations: 4.375 kB / 1.086 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.3488, allocations: 4.375 kB / 1.086 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.349, allocations: 81.97 kB / 1.086 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3491, allocations: 7.875 kB / 1.086 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3491, allocations: 0 / 1.086 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3491, allocations: 0 / 1.086 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.3492, allocations: 51.95 kB / 1.086 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004484/0.3497, allocations: 276.9 kB / 1.086 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.3498, allocations: 58.55 kB / 1.086 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.942e-05/0.3499, allocations: 44.91 kB / 1.087 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.3499, allocations: 0 / 1.087 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.3499, allocations: 38.5 kB / 1.087 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.35, allocations: 0 / 1.087 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0003987/0.3504, allocations: 191.2 kB / 1.087 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3504, allocations: 81.11 kB / 1.087 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.3505, allocations: 117.8 kB / 1.087 GB, free: 8.297 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.3506, allocations: 29.69 kB / 1.087 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.3506, allocations: 88.14 kB / 1.087 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.3507, allocations: 11.83 kB / 1.087 GB, free: 8.16 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.3507, allocations: 21.72 kB / 1.087 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3509, allocations: 322.9 kB / 1.087 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.351, allocations: 55.97 kB / 1.087 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.3511, allocations: 63.89 kB / 1.087 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.3514, allocations: 197.8 kB / 1.088 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3514, allocations: 0 / 1.088 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000295/0.3517, allocations: 216.9 kB / 1.088 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.671e-05/0.3517, allocations: 63.39 kB / 1.088 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.3517, allocations: 0 / 1.088 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3518, allocations: 4 kB / 1.088 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.388e-05/0.3518, allocations: 4 kB / 1.088 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3518, allocations: 3.984 kB / 1.088 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.679e-05/0.3519, allocations: 8.062 kB / 1.088 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.3519, allocations: 7.938 kB / 1.088 GB, free: 7.145 MB / 0.8419 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.0001207/0.352, allocations: 155.4 kB / 1.088 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.3521, allocations: 3.906 kB / 1.088 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.67e-05/0.3521, allocations: 19.83 kB / 1.088 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3521, allocations: 0 / 1.088 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.3521, allocations: 4 kB / 1.088 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3521, allocations: 0 / 1.088 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/0.3523, allocations: 173.6 kB / 1.088 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3523, allocations: 4 kB / 1.088 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.513e-05/0.3524, allocations: 0 / 1.088 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3524, allocations: 0 / 1.088 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.3524, allocations: 4 kB / 1.088 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3524, allocations: 0 / 1.088 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3524, allocations: 0 / 1.088 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.3527, allocations: 253 kB / 1.089 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.3528, allocations: 81.09 kB / 1.089 GB, free: 6.352 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.3528, allocations: 0 / 1.089 GB, free: 6.352 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.007e-05/0.3529, allocations: 8 kB / 1.089 GB, free: 6.344 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.353, allocations: 7.984 kB / 1.089 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.158e-06/0.353, allocations: 0 / 1.089 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.313e-05/0.3531, allocations: 99.2 kB / 1.089 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3531, allocations: 0 / 1.089 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003178/0.3534, allocations: 64.03 kB / 1.089 GB, free: 6.176 MB / 0.8419 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.000278/0.3537, allocations: 151.2 kB / 1.089 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003588/0.3541, allocations: 234.7 kB / 1.089 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3541, allocations: 0 / 1.089 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.3542, allocations: 103.4 kB / 1.089 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.3544, allocations: 12.69 kB / 1.089 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004128/0.3549, allocations: 185.3 kB / 1.089 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.3552, allocations: 0.6927 MB / 1.09 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.74e-05/0.3552, allocations: 0 / 1.09 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.583e-05/0.3553, allocations: 11.38 kB / 1.09 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3553, allocations: 0 / 1.09 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of Templates: time 0.004804/0.3601, allocations: 1.768 MB / 1.092 GB, free: 2.969 MB / 0.8419 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=400 -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