Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_latest_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.001234/0.001234, 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.001243/0.001243, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.321/1.321, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.599/2.599, allocations: 461.8 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 65.3 kB / 0.8985 GB, free: 36.9 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2669, allocations: 157.4 MB / 1.052 GB, free: 8.164 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.002075/0.269, allocations: 0.6774 MB / 1.053 GB, free: 7.48 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004367/0.2695, allocations: 167.5 kB / 1.053 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.662e-05/0.2695, allocations: 0 / 1.053 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.443e-05/0.2696, allocations: 0 / 1.053 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 1.935e-05/0.2696, allocations: 0 / 1.053 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.2699, allocations: 39.91 kB / 1.053 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.468e-05/0.2699, allocations: 7.984 kB / 1.053 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.71e-05/0.27, allocations: 4 kB / 1.053 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.889e-05/0.27, allocations: 11.94 kB / 1.053 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.114e-05/0.2701, allocations: 3.984 kB / 1.053 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.2701, allocations: 4 kB / 1.053 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.375e-05/0.2702, allocations: 35.95 kB / 1.053 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.746e-05/0.2702, allocations: 7.938 kB / 1.053 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.039e-05/0.2702, allocations: 4 kB / 1.053 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.381e-05/0.2703, allocations: 31.88 kB / 1.053 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2703, allocations: 4 kB / 1.053 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.72e-07/0.2703, allocations: 0 / 1.053 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.2704, allocations: 0 / 1.053 GB, free: 7.164 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003822/0.2707, allocations: 331.6 kB / 1.053 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.2708, allocations: 11.97 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.577e-05/0.2708, allocations: 34.75 kB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.2709, allocations: 4.938 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.271, allocations: 168.6 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.271, allocations: 384 / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.271, allocations: 8.375 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.2711, allocations: 42.25 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2712, allocations: 3.938 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.2712, allocations: 4 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.2712, allocations: 4 kB / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.766e-05/0.2712, allocations: 11.98 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.2714, allocations: 165.6 kB / 1.054 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.482e-05/0.2715, allocations: 54.5 kB / 1.054 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.416e-05/0.2716, allocations: 16.98 kB / 1.054 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.2717, allocations: 81.09 kB / 1.054 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.2717, allocations: 34.56 kB / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.332e-06/0.2717, allocations: 0 / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.001275/0.273, allocations: 484 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.273, allocations: 55.34 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.378e-05/0.2731, allocations: 97.8 kB / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.2731, allocations: 29.7 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.583e-05/0.2732, allocations: 80.14 kB / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.2732, allocations: 23.64 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.2733, allocations: 21.72 kB / 1.055 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2734, allocations: 318.8 kB / 1.055 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.023e-05/0.2734, allocations: 12 kB / 1.055 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.368e-05/0.2734, allocations: 12.11 kB / 1.055 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.334e-05/0.2735, allocations: 37.3 kB / 1.055 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.2735, allocations: 0 / 1.055 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001189/0.2736, allocations: 77.84 kB / 1.055 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2737, allocations: 4 kB / 1.055 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.2737, allocations: 7.938 kB / 1.055 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.2737, allocations: 0 / 1.055 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.017e-05/0.2738, allocations: 15.98 kB / 1.055 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2738, allocations: 4.062 kB / 1.055 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.405e-05/0.2738, allocations: 0 / 1.055 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.2738, allocations: 8 kB / 1.055 GB, free: 4.625 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 (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 7.402e-05/0.2739, allocations: 109.8 kB / 1.055 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/0.2739, allocations: 11.84 kB / 1.055 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.2741, allocations: 85.56 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.2741, allocations: 7.984 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.2741, allocations: 0 / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.2741, allocations: 0 / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.2743, allocations: 157.7 kB / 1.056 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2743, allocations: 4 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.458e-05/0.2744, allocations: 19.92 kB / 1.056 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2744, allocations: 0 / 1.056 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.2744, allocations: 7.938 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2744, allocations: 0 / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2744, allocations: 0 / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001805/0.2746, allocations: 117 kB / 1.056 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.976e-05/0.2747, allocations: 84.95 kB / 1.056 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.2747, allocations: 4.062 kB / 1.056 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.653e-05/0.2747, allocations: 8.031 kB / 1.056 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.2748, allocations: 3.984 kB / 1.056 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.2748, allocations: 7.938 kB / 1.056 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.763e-05/0.2748, allocations: 75.28 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2748, allocations: 0 / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000223/0.275, allocations: 32 kB / 1.056 GB, free: 3.801 MB / 0.8106 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.0005873/0.2756, allocations: 0.6828 MB / 1.057 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001187/0.2758, allocations: 35.98 kB / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2758, allocations: 4 kB / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.761e-05/0.2758, allocations: 23.92 kB / 1.057 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001719/0.276, allocations: 8 kB / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.2772, allocations: 1.194 MB / 1.058 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.2774, allocations: 0.6849 MB / 1.059 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.736e-05/0.2775, allocations: 8.062 kB / 1.059 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.2775, allocations: 19.42 kB / 1.059 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.2775, allocations: 96 / 1.059 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01155/0.2891, allocations: 1.66 MB / 1.06 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.2893, allocations: 246.4 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/1.961, allocations: 6.812 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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