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.001001/0.001001, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.00623/0.00623, allocations: 174.6 kB / 16.27 MB, free: 6.613 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.319/1.319, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.595/2.595, allocations: 462.6 MB / 0.7364 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003144, allocations: 14.81 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2641, allocations: 159.6 MB / 1.059 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.0006292/0.2647, allocations: 354.6 kB / 1.059 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003654/0.2651, allocations: 167.5 kB / 1.059 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.217e-05/0.2651, allocations: 0 / 1.059 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.022e-05/0.2652, allocations: 0 / 1.059 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 1.931e-05/0.2652, allocations: 0 / 1.059 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.2654, allocations: 35.91 kB / 1.059 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.99e-05/0.2655, allocations: 8 kB / 1.059 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.101e-05/0.2655, allocations: 0 / 1.059 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.232e-05/0.2655, allocations: 19.91 kB / 1.059 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.03e-05/0.2656, allocations: 0 / 1.059 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.2656, allocations: 4 kB / 1.059 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.321e-05/0.2657, allocations: 35.97 kB / 1.059 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.312e-05/0.2657, allocations: 3.984 kB / 1.059 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.735e-05/0.2657, allocations: 37.62 kB / 1.059 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.081e-05/0.2658, allocations: 27.91 kB / 1.059 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2658, allocations: 0 / 1.059 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2658, allocations: 0 / 1.059 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.765e-06/0.2658, allocations: 0 / 1.059 GB, free: 4.102 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.0002995/0.2661, allocations: 327.6 kB / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2662, allocations: 8.031 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.003e-05/0.2662, allocations: 34.73 kB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.07e-05/0.2662, allocations: 8.938 kB / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.114e-05/0.2663, allocations: 160.7 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.2664, allocations: 384 / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.003e-05/0.2664, allocations: 8.375 kB / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.165e-05/0.2665, allocations: 46.19 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.2665, allocations: 3.938 kB / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.2665, allocations: 0 / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.2665, allocations: 0 / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.053e-05/0.2666, allocations: 15.98 kB / 1.06 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001402/0.2667, allocations: 169.6 kB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.095e-05/0.2668, allocations: 46.56 kB / 1.06 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.347e-05/0.2668, allocations: 16.98 kB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.804e-05/0.2669, allocations: 85.09 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.2669, allocations: 30.56 kB / 1.06 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 2.334e-06/0.267, allocations: 3.984 kB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.001107/0.2681, allocations: 491.9 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.2681, allocations: 55.41 kB / 1.061 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.607e-05/0.2682, allocations: 93.84 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.2682, allocations: 29.7 kB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.288e-05/0.2682, allocations: 84.08 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.2682, allocations: 23.66 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/0.2683, allocations: 13.72 kB / 1.061 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.214e-05/0.2684, allocations: 323 kB / 1.061 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.604e-05/0.2684, allocations: 15.88 kB / 1.061 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.357e-05/0.2684, allocations: 19.97 kB / 1.061 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.127e-05/0.2685, allocations: 32.86 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.2685, allocations: 0 / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.841e-05/0.2686, allocations: 69.62 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.2686, allocations: 9.719 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.2686, allocations: 0 / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.2686, allocations: 0 / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.68e-05/0.2687, allocations: 23.92 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.2687, allocations: 0 / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.167e-05/0.2688, allocations: 0 / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.2688, allocations: 4 kB / 1.062 GB, free: 1.574 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 5.931e-05/0.2688, allocations: 109.8 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.2689, allocations: 11.84 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.269, allocations: 81.62 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.269, allocations: 0 / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.269, allocations: 8.438 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.269, allocations: 0 / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.859e-05/0.2691, allocations: 165.6 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.2691, allocations: 4 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.2692, allocations: 19.92 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2692, allocations: 0 / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.2692, allocations: 4 kB / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2692, allocations: 0 / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2693, allocations: 0 / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.2694, allocations: 113.5 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.2695, allocations: 84.95 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.2695, allocations: 3.938 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.44e-05/0.2695, allocations: 8 kB / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.2695, allocations: 3.984 kB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.2696, allocations: 4 kB / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.56e-05/0.2696, allocations: 75.28 kB / 1.062 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2696, allocations: 3.938 kB / 1.062 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002092/0.2698, allocations: 36.16 kB / 1.062 GB, free: 0.75 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.0004388/0.2702, allocations: 0.6789 MB / 1.063 GB, free: 44 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9.411e-05/0.2704, allocations: 43.91 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2704, allocations: 112 / 1.063 GB, free: 16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.422e-05/0.2704, allocations: 27.92 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.2706, allocations: 12 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008501/0.2714, allocations: 1.195 MB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.2716, allocations: 0.6809 MB / 1.065 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.256e-05/0.2717, allocations: 4 kB / 1.065 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.118e-05/0.2717, allocations: 15.44 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2717, allocations: 0 / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01055/0.2823, allocations: 1.608 MB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/0.2825, allocations: 248.2 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.121, allocations: 0 / 1.067 GB, free: 12.26 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