Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001154/0.001154, allocations: 195 kB / 16.14 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.322/1.322, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.486/2.486, allocations: 437 MB / 0.7099 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 67.89 kB / 0.8687 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5632/0.5647, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.002104/0.5669, allocations: 0.6701 MB / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004898/0.5674, allocations: 171.4 kB / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.717e-05/0.5674, allocations: 0 / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.084e-05/0.5675, allocations: 4 kB / 1.018 GB, free: 1.914 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.468e-05/0.5675, allocations: 0 / 1.018 GB, free: 1.914 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.5678, allocations: 27.91 kB / 1.018 GB, free: 1.887 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.291e-05/0.5678, allocations: 11.98 kB / 1.018 GB, free: 1.875 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.349e-05/0.5679, allocations: 0 / 1.018 GB, free: 1.875 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.925e-05/0.5679, allocations: 15.94 kB / 1.018 GB, free: 1.859 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.446e-05/0.568, allocations: 7.984 kB / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.568, allocations: 0 / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.987e-05/0.5681, allocations: 31.97 kB / 1.018 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.516e-05/0.5681, allocations: 7.984 kB / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.129e-05/0.5681, allocations: 11.92 kB / 1.018 GB, free: 1.801 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.889e-05/0.5682, allocations: 31.89 kB / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.5682, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.22e-07/0.5682, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.5682, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003259/0.5686, allocations: 335.5 kB / 1.018 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.5686, allocations: 8.031 kB / 1.018 GB, free: 1.383 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.208e-05/0.5686, allocations: 42.73 kB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.5687, allocations: 0.9375 kB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.881e-05/0.5688, allocations: 166.6 kB / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.5688, allocations: 384 / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.5688, allocations: 4.375 kB / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.735e-05/0.5689, allocations: 42.25 kB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.5689, allocations: 3.938 kB / 1.018 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.5689, allocations: 8 kB / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.5689, allocations: 0 / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.397e-05/0.569, allocations: 15.97 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.5691, allocations: 161.7 kB / 1.018 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 8.846e-05/0.5692, allocations: 46.5 kB / 1.018 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.69e-05/0.5693, allocations: 16.98 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 9.691e-05/0.5694, allocations: 85.09 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.5694, allocations: 34.56 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.5694, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of matching and sorting (n=7): time 0.00132/0.5707, allocations: 499.9 kB / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.5708, allocations: 51.41 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.612e-05/0.5709, allocations: 97.84 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.5709, allocations: 25.7 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.858e-05/0.5709, allocations: 92.2 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.571, allocations: 15.72 kB / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.571, allocations: 21.7 kB / 1.019 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.875e-05/0.5711, allocations: 318.8 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.701e-05/0.5711, allocations: 12 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.453e-05/0.5712, allocations: 11.98 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.684e-05/0.5712, allocations: 32.86 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.5712, allocations: 4 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001081/0.5714, allocations: 77.56 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.5714, allocations: 4 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.5714, allocations: 3.984 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.5714, allocations: 0 / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.93e-05/0.5715, allocations: 15.94 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.5715, allocations: 0 / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.606e-05/0.5715, allocations: 4 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.5715, allocations: 448 / 1.02 GB, free: 15.24 MB / 0.7794 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 6.86e-05/0.5716, allocations: 113.8 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.65e-05/0.5716, allocations: 15.83 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.5718, allocations: 93.5 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.5718, allocations: 0 / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.5718, allocations: 4 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.5718, allocations: 0 / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.5719, allocations: 157.7 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.572, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.249e-05/0.572, allocations: 23.92 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.572, allocations: 0 / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.5721, allocations: 0 / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.5721, allocations: 8 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5721, allocations: 400 / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001738/0.5723, allocations: 117 kB / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.986e-05/0.5723, allocations: 84.95 kB / 1.02 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.5723, allocations: 8.031 kB / 1.02 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.513e-05/0.5724, allocations: 0 / 1.02 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.932e-05/0.5724, allocations: 7.984 kB / 1.02 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.5724, allocations: 4.062 kB / 1.02 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.697e-05/0.5724, allocations: 79.28 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5724, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002273/0.5727, allocations: 35.98 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0004909/0.5732, allocations: 0.6789 MB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001045/0.5733, allocations: 43.97 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5733, allocations: 0 / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.777e-05/0.5733, allocations: 23.94 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.5735, allocations: 4.562 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000964/0.5745, allocations: 1.197 MB / 1.022 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.5747, allocations: 0.6809 MB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.827e-05/0.5747, allocations: 8 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.5747, allocations: 15.42 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.5747, allocations: 0 / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0109/0.5857, allocations: 1.664 MB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002819/0.586, allocations: 235.2 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.247, allocations: 2.188 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,y_comp,y,ex,der(y_comp),der(y) Variables in the result:delta,der(x),der(y),der(y_comp),err,ex,time,x,y,y_comp