Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Utilities.Math.Functions.Examples.SmoothInterpolation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|yMonotone|y2|y2Monotone|y1|y1Monotone",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|yMonotone|y2|y2Monotone|y1|y1Monotone",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 100.1 kB / 15.88 MB, free: 12 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.001395/0.001395, allocations: 198.7 kB / 16.79 MB, free: 6.809 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.419/1.419, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.685/2.685, allocations: 461.8 MB / 0.7348 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 64.16 kB / 0.899 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2652, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation): time 0.001856/0.2671, allocations: 0.6697 MB / 1.053 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00193/0.2691, allocations: 1.482 MB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.115e-05/0.2691, allocations: 0 / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.492e-05/0.2692, allocations: 0 / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.032e-05/0.2692, allocations: 7.938 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005921/0.2698, allocations: 162.7 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.282e-05/0.2699, allocations: 27.98 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.663e-05/0.2699, allocations: 7.984 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.076e-05/0.27, allocations: 19.92 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.293e-05/0.2701, allocations: 27.84 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.2701, allocations: 0 / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003766/0.2705, allocations: 239.7 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.986e-05/0.2705, allocations: 8 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.778e-05/0.2705, allocations: 19.86 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.2708, allocations: 143.8 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2708, allocations: 0 / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.021e-06/0.2708, allocations: 4 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.2708, allocations: 0 / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004079/0.2712, allocations: 397.4 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2713, allocations: 11.97 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.2713, allocations: 8.844 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.2714, allocations: 172.3 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.2714, allocations: 384 / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.2715, allocations: 4.375 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.2716, allocations: 73.97 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.2716, allocations: 4 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2716, allocations: 0 / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2717, allocations: 4 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.078e-05/0.2717, allocations: 35.97 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.2719, allocations: 169.5 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.932e-05/0.272, allocations: 66.48 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.284e-05/0.272, allocations: 52.8 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.793e-06/0.2721, allocations: 0 / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.2721, allocations: 42.5 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.324e-06/0.2721, allocations: 7.984 kB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003057/0.2724, allocations: 187.5 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.2725, allocations: 81.11 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.234e-05/0.2726, allocations: 113.8 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.2726, allocations: 25.7 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.468e-05/0.2727, allocations: 88.14 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.2727, allocations: 23.73 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.2727, allocations: 21.66 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.2728, allocations: 322.8 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.434e-05/0.2729, allocations: 35.97 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.714e-05/0.273, allocations: 31.97 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.2731, allocations: 140.2 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2731, allocations: 0 / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001893/0.2733, allocations: 151.2 kB / 1.058 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.2734, allocations: 41.62 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.2734, allocations: 4.062 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.2734, allocations: 0 / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.2734, allocations: 3.938 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2734, allocations: 0 / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.2735, allocations: 15.92 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.2735, allocations: 4 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 prepare postOptimizeDAE: time 0.0001007/0.2737, allocations: 147.5 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.2737, allocations: 11.84 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.299e-05/0.2737, allocations: 8.375 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2737, allocations: 7.984 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2737, allocations: 0 / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.2737, allocations: 0 / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.2738, allocations: 165.7 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2738, allocations: 0 / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.2738, allocations: 0 / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.2739, allocations: 3.938 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.2739, allocations: 4 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2739, allocations: 3.984 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2739, allocations: 3.938 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.2741, allocations: 207.3 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.2742, allocations: 84.98 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.2742, allocations: 4 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.505e-05/0.2742, allocations: 4 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.914e-05/0.2743, allocations: 3.984 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.2743, allocations: 8 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.671e-05/0.2743, allocations: 95.25 kB / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2743, allocations: 0 / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003066/0.2747, allocations: 72.03 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.000311/0.275, allocations: 165.2 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002479/0.2752, allocations: 199.3 kB / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2752, allocations: 0 / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.2754, allocations: 151.3 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.2755, allocations: 4 kB / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003218/0.2759, allocations: 216.2 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.2761, allocations: 0.6887 MB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.041e-05/0.2761, allocations: 11.42 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.2761, allocations: 0 / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of Templates: time 0.003697/0.2798, allocations: 1.697 MB / 1.062 GB, free: 14.73 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothInterpolation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches