Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Utilities.Math.Functions.Examples.SmoothInterpolation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|yMonotone|y2|y2Monotone|y1|y1Monotone",fileNamePrefix="Buildings_9_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_9_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.001142/0.001142, allocations: 97.56 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.01054/0.01054, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.56/1.56, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.618/2.618, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004553/0.0004552, allocations: 15.98 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9226/0.9231, allocations: 142.4 MB / 0.955 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation): time 0.0008111/0.9239, allocations: 354.1 kB / 0.9554 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001995/0.9259, allocations: 1.447 MB / 0.9568 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.307e-05/0.926, allocations: 5.062 kB / 0.9568 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.074e-05/0.9261, allocations: 4 kB / 0.9568 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.457e-05/0.9261, allocations: 9.109 kB / 0.9568 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006814/0.9268, allocations: 156.1 kB / 0.957 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.525e-05/0.9269, allocations: 35.69 kB / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.421e-05/0.927, allocations: 2.312 kB / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.235e-05/0.927, allocations: 11.42 kB / 0.957 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.2e-05/0.9271, allocations: 24.84 kB / 0.957 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.9271, allocations: 6.062 kB / 0.957 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004318/0.9276, allocations: 236.1 kB / 0.9573 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.679e-05/0.9276, allocations: 16.31 kB / 0.9573 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.002e-05/0.9277, allocations: 37.89 kB / 0.9573 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.928, allocations: 210.3 kB / 0.9575 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.928, allocations: 2.188 kB / 0.9575 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.395e-06/0.9281, allocations: 3.938 kB / 0.9575 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.9281, allocations: 0 / 0.9575 GB, free: 5.859 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003802/0.9285, allocations: 397.9 kB / 0.9579 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.9285, allocations: 9.594 kB / 0.9579 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.9285, allocations: 6.781 kB / 0.9579 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.683e-05/0.9286, allocations: 172 kB / 0.9581 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.9287, allocations: 384 / 0.9581 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.9287, allocations: 4.5 kB / 0.9581 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.9289, allocations: 78.2 kB / 0.9582 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.9289, allocations: 0 / 0.9582 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.9289, allocations: 1.469 kB / 0.9582 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.9289, allocations: 0 / 0.9582 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.472e-05/0.929, allocations: 41.52 kB / 0.9582 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.9291, allocations: 167.5 kB / 0.9584 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.851e-05/0.9292, allocations: 64.98 kB / 0.9584 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.603e-05/0.9293, allocations: 48.77 kB / 0.9585 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.9293, allocations: 0 / 0.9585 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.9293, allocations: 36.97 kB / 0.9585 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.9293, allocations: 3.984 kB / 0.9585 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003204/0.9297, allocations: 193.2 kB / 0.9587 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.9297, allocations: 89.11 kB / 0.9588 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.467e-05/0.9298, allocations: 109.3 kB / 0.9589 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.9298, allocations: 27.08 kB / 0.9589 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.972e-05/0.9298, allocations: 89.5 kB / 0.959 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.9299, allocations: 19.78 kB / 0.959 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.9299, allocations: 15.09 kB / 0.959 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.93, allocations: 317.6 kB / 0.9593 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.504e-05/0.93, allocations: 36.72 kB / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.472e-05/0.9301, allocations: 40.75 kB / 0.9594 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.9302, allocations: 146 kB / 0.9595 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.9302, allocations: 0 / 0.9595 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001824/0.9304, allocations: 152.2 kB / 0.9597 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.9305, allocations: 46.06 kB / 0.9597 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.9305, allocations: 0 / 0.9597 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.9305, allocations: 1.375 kB / 0.9597 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.9305, allocations: 0 / 0.9597 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.9305, allocations: 0 / 0.9597 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.9306, allocations: 13.39 kB / 0.9597 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.9307, allocations: 9.562 kB / 0.9598 GB, free: 3.773 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: 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 7.641e-05/0.9307, allocations: 145.2 kB / 0.9599 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.398e-05/0.9308, allocations: 8.062 kB / 0.9599 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.197e-05/0.9308, allocations: 9.75 kB / 0.9599 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.9308, allocations: 1.375 kB / 0.9599 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.9308, allocations: 3.984 kB / 0.9599 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.9308, allocations: 0 / 0.9599 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.417e-05/0.9309, allocations: 169.8 kB / 0.9601 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.9309, allocations: 1.375 kB / 0.9601 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.9309, allocations: 4 kB / 0.9601 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.9309, allocations: 3.938 kB / 0.9601 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.9309, allocations: 4.125 kB / 0.9601 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.9309, allocations: 0 / 0.9601 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9309, allocations: 0 / 0.9601 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.9311, allocations: 195.7 kB / 0.9603 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.262e-05/0.9312, allocations: 90.28 kB / 0.9604 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.9312, allocations: 2.656 kB / 0.9604 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.482e-05/0.9312, allocations: 8.375 kB / 0.9604 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.44e-05/0.9313, allocations: 11.36 kB / 0.9604 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.9313, allocations: 7.812 kB / 0.9604 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.527e-05/0.9313, allocations: 88.39 kB / 0.9605 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9313, allocations: 0 / 0.9605 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003196/0.9317, allocations: 73.72 kB / 0.9605 GB, free: 3.047 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: 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.0003048/0.932, allocations: 156 kB / 0.9607 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000252/0.9322, allocations: 196.9 kB / 0.9609 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9322, allocations: 4.062 kB / 0.9609 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.9324, allocations: 156.5 kB / 0.961 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.9326, allocations: 4.219 kB / 0.961 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002978/0.9329, allocations: 181 kB / 0.9612 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.933, allocations: 0.6835 MB / 0.9619 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.999e-06/0.933, allocations: 0 / 0.9619 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.626e-06/0.933, allocations: 16.81 kB / 0.9619 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.933, allocations: 0 / 0.9619 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of Templates: time 0.005072/0.9381, allocations: 1.977 MB / 0.9638 GB, free: 0.8242 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothInterpolation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothInterpolation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches