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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.009019/0.009019, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.00165/0.00165, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.469/2.469, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 67.89 kB / 1.018 GB, free: 9.844 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.736/0.7373, allocations: 151.6 MB / 1.166 GB, free: 3.777 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001752/0.7391, allocations: 0.5989 MB / 1.167 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004152/0.7395, allocations: 161.4 kB / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.7396, allocations: 0 / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.7396, allocations: 3.938 kB / 1.167 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.311e-05/0.7396, allocations: 4 kB / 1.167 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.74, allocations: 43.89 kB / 1.167 GB, free: 2.977 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.044e-05/0.74, allocations: 7.984 kB / 1.167 GB, free: 2.969 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.838e-05/0.7401, allocations: 4 kB / 1.167 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.047e-05/0.7401, allocations: 8 kB / 1.167 GB, free: 2.957 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.142e-05/0.7402, allocations: 11.91 kB / 1.167 GB, free: 2.945 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.7402, allocations: 7.938 kB / 1.167 GB, free: 2.938 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.956e-05/0.7403, allocations: 31.97 kB / 1.167 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.7403, allocations: 0 / 1.167 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.709e-05/0.7403, allocations: 7.938 kB / 1.167 GB, free: 2.898 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.7405, allocations: 35.94 kB / 1.167 GB, free: 2.863 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.7405, allocations: 3.938 kB / 1.167 GB, free: 2.859 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7405, allocations: 0 / 1.167 GB, free: 2.859 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.7405, allocations: 0 / 1.167 GB, free: 2.859 MB / 0.8887 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.0003904/0.7409, allocations: 335.5 kB / 1.167 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.7409, allocations: 8.625 kB / 1.167 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.505e-05/0.741, allocations: 34.75 kB / 1.167 GB, free: 2.43 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.741, allocations: 8.844 kB / 1.167 GB, free: 2.422 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.7411, allocations: 166.6 kB / 1.168 GB, free: 2.223 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.7412, allocations: 4.375 kB / 1.168 GB, free: 2.219 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.7412, allocations: 4.375 kB / 1.168 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.7413, allocations: 42.25 kB / 1.168 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.7413, allocations: 3.938 kB / 1.168 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.7413, allocations: 0 / 1.168 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.7413, allocations: 3.938 kB / 1.168 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.32e-05/0.7414, allocations: 15.98 kB / 1.168 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.7416, allocations: 157.7 kB / 1.168 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 9.277e-05/0.7417, allocations: 50.55 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.622e-05/0.7417, allocations: 20.98 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.961e-05/0.7418, allocations: 81.09 kB / 1.168 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.7419, allocations: 34.56 kB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.7419, allocations: 3.938 kB / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.001315/0.7432, allocations: 492.3 kB / 1.169 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.7432, allocations: 55.41 kB / 1.169 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.127e-05/0.7433, allocations: 93.86 kB / 1.169 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.7433, allocations: 29.7 kB / 1.169 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.477e-05/0.7434, allocations: 80.14 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.29e-05/0.7434, allocations: 19.7 kB / 1.169 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.638e-05/0.7434, allocations: 21.72 kB / 1.169 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.778e-05/0.7435, allocations: 318.8 kB / 1.169 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.145e-05/0.7436, allocations: 16.12 kB / 1.169 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.52e-05/0.7436, allocations: 16.05 kB / 1.169 GB, free: 488 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.864e-05/0.7437, allocations: 36.8 kB / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-07/0.7437, allocations: 0 / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001209/0.7438, allocations: 81.52 kB / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.7438, allocations: 6.344 kB / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.7439, allocations: 0 / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.7439, allocations: 3.938 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.159e-05/0.744, allocations: 15.98 kB / 1.169 GB, free: 336 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.744, allocations: 0 / 1.169 GB, free: 336 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.576e-05/0.744, allocations: 4 kB / 1.169 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.744, allocations: 4 kB / 1.169 GB, free: 328 kB / 0.8887 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.163e-05/0.7441, allocations: 113.8 kB / 1.169 GB, free: 204 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.706e-05/0.7441, allocations: 7.938 kB / 1.169 GB, free: 196 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001785/0.7443, allocations: 85.56 kB / 1.169 GB, free: 96 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.7443, allocations: 4 kB / 1.169 GB, free: 92 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.7443, allocations: 0 / 1.169 GB, free: 92 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.7443, allocations: 0 / 1.169 GB, free: 92 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.7445, allocations: 169.6 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.7445, allocations: 0 / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.712e-05/0.7446, allocations: 19.92 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.7446, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.7446, allocations: 7.938 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.7446, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.7446, allocations: 4 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001794/0.7448, allocations: 109 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.7449, allocations: 85.11 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.7449, allocations: 4 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.942e-05/0.7449, allocations: 8.094 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.691e-05/0.745, allocations: 7.984 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-06/0.745, allocations: 0 / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.996e-05/0.745, allocations: 75.28 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.745, allocations: 0 / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002328/0.7453, allocations: 32 kB / 1.17 GB, free: 15.49 MB / 0.9044 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.0005227/0.7458, allocations: 0.6871 MB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001198/0.7459, allocations: 43.98 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.7459, allocations: 0 / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 4.031e-05/0.746, allocations: 27.97 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.7461, allocations: 6.844 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.7472, allocations: 1.186 MB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.7474, allocations: 0.6923 MB / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.104e-05/0.7475, allocations: 7.984 kB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.746e-05/0.7475, allocations: 15.44 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of SimCode: time 4.71e-07/0.7475, allocations: 0 / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.7793, allocations: 1.808 MB / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/8.641, allocations: 11.03 kB / 1.174 GB, free: 11.03 MB / 0.9044 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) "" 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