Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_9_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.001192/0.001192, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001204, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.243/1.243, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.148/2.148, allocations: 390.3 MB / 0.6647 GB, free: 328 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.91 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5718/0.573, allocations: 140.4 MB / 0.9497 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001568/0.5746, allocations: 0.5949 MB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003118/0.5749, allocations: 159.7 kB / 0.9505 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.988e-05/0.5749, allocations: 0 / 0.9505 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.01e-05/0.5749, allocations: 4 kB / 0.9505 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.705e-05/0.575, allocations: 0 / 0.9505 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.5752, allocations: 39.16 kB / 0.9505 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.032e-05/0.5753, allocations: 22.16 kB / 0.9505 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.56e-05/0.5753, allocations: 2.688 kB / 0.9505 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.532e-05/0.5753, allocations: 3.625 kB / 0.9505 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.922e-05/0.5754, allocations: 10.3 kB / 0.9505 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.5754, allocations: 1.812 kB / 0.9505 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.939e-05/0.5755, allocations: 31.19 kB / 0.9506 GB, free: 8.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.287e-05/0.5755, allocations: 9.266 kB / 0.9506 GB, free: 8.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.635e-05/0.5755, allocations: 13.28 kB / 0.9506 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.007e-05/0.5756, allocations: 32.81 kB / 0.9506 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.5756, allocations: 1.531 kB / 0.9506 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5756, allocations: 0 / 0.9506 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.808e-06/0.5756, allocations: 0 / 0.9506 GB, free: 8.441 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002625/0.5759, allocations: 333.2 kB / 0.9509 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.5759, allocations: 10.78 kB / 0.951 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.109e-05/0.576, allocations: 34.69 kB / 0.951 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.273e-05/0.576, allocations: 2.375 kB / 0.951 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.534e-05/0.5761, allocations: 172.1 kB / 0.9512 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.5761, allocations: 1.75 kB / 0.9512 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.5761, allocations: 2.094 kB / 0.9512 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.606e-05/0.5762, allocations: 49.5 kB / 0.9512 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.5762, allocations: 5.094 kB / 0.9512 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.5762, allocations: 0 / 0.9512 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.5762, allocations: 0.9688 kB / 0.9512 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.112e-05/0.5763, allocations: 12.48 kB / 0.9512 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001094/0.5764, allocations: 158.5 kB / 0.9514 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.919e-05/0.5765, allocations: 49.31 kB / 0.9514 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.793e-05/0.5765, allocations: 17.36 kB / 0.9514 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.483e-05/0.5766, allocations: 82.47 kB / 0.9515 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.162e-05/0.5766, allocations: 36.28 kB / 0.9516 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 8.62e-07/0.5766, allocations: 0 / 0.9516 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.001027/0.5776, allocations: 495.6 kB / 0.952 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.66e-05/0.5776, allocations: 56.75 kB / 0.9521 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.21e-05/0.5777, allocations: 91.27 kB / 0.9522 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.206e-06/0.5777, allocations: 29.7 kB / 0.9522 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.016e-05/0.5777, allocations: 81.52 kB / 0.9523 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.5777, allocations: 26.45 kB / 0.9523 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.903e-05/0.5778, allocations: 19.28 kB / 0.9523 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.18e-05/0.5778, allocations: 316.3 kB / 0.9526 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.403e-05/0.5778, allocations: 15.41 kB / 0.9526 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.111e-05/0.5779, allocations: 14.48 kB / 0.9526 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.416e-05/0.5779, allocations: 38.86 kB / 0.9527 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-07/0.5779, allocations: 0 / 0.9527 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.857e-05/0.578, allocations: 70.84 kB / 0.9528 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.578, allocations: 5.344 kB / 0.9528 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.578, allocations: 1.156 kB / 0.9528 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.5781, allocations: 0 / 0.9528 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.097e-05/0.5781, allocations: 15.2 kB / 0.9528 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.5781, allocations: 1.094 kB / 0.9528 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.171e-05/0.5782, allocations: 9.125 kB / 0.9528 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.5782, allocations: 5.625 kB / 0.9528 GB, free: 6.188 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 (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 4.016e-05/0.5782, allocations: 111.7 kB / 0.9529 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.13e-05/0.5782, allocations: 6 kB / 0.9529 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.5784, allocations: 91.55 kB / 0.953 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.5784, allocations: 1.062 kB / 0.953 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.5784, allocations: 9.344 kB / 0.953 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.5784, allocations: 4 kB / 0.953 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.487e-05/0.5785, allocations: 165.9 kB / 0.9532 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.5785, allocations: 0 / 0.9532 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.5786, allocations: 23.33 kB / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.5786, allocations: 0 / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.5786, allocations: 1.156 kB / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.5786, allocations: 1.031 kB / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5786, allocations: 0 / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001421/0.5787, allocations: 122.9 kB / 0.9533 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.497e-05/0.5788, allocations: 82.02 kB / 0.9534 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.5788, allocations: 1.094 kB / 0.9534 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.078e-05/0.5788, allocations: 2.344 kB / 0.9534 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.784e-05/0.5788, allocations: 6.109 kB / 0.9534 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.5789, allocations: 2.188 kB / 0.9534 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.531e-05/0.5789, allocations: 84.38 kB / 0.9535 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5789, allocations: 0 / 0.9535 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002034/0.5791, allocations: 28.28 kB / 0.9535 GB, free: 5.477 MB / 0.7169 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.0003523/0.5794, allocations: 0.6837 MB / 0.9542 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001082/0.5796, allocations: 40.64 kB / 0.9542 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5796, allocations: 4 kB / 0.9542 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.12e-05/0.5796, allocations: 22.8 kB / 0.9542 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.5797, allocations: 10.44 kB / 0.9542 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006803/0.5804, allocations: 1.2 MB / 0.9554 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.103e-05/0.5805, allocations: 0.6839 MB / 0.9561 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.15e-05/0.5806, allocations: 8.531 kB / 0.9561 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.842e-05/0.5806, allocations: 19.48 kB / 0.9561 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5806, allocations: 0 / 0.9561 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02711/0.6077, allocations: 1.778 MB / 0.9578 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.299/7.907, allocations: 13.61 kB / 0.9579 GB, free: 1.949 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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