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.001264/0.001264, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001272/0.001272, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.215/1.215, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.128/2.128, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.91 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5182/0.5195, allocations: 140.4 MB / 0.9492 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001588/0.5211, allocations: 0.6643 MB / 0.9499 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000309/0.5214, allocations: 159.5 kB / 0.95 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.784e-05/0.5214, allocations: 0 / 0.95 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.424e-05/0.5215, allocations: 3.938 kB / 0.95 GB, free: 8.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.962e-05/0.5215, allocations: 0 / 0.95 GB, free: 8.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.5218, allocations: 39.06 kB / 0.9501 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.167e-05/0.5218, allocations: 11.73 kB / 0.9501 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.155e-05/0.5219, allocations: 1.656 kB / 0.9501 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.719e-05/0.5219, allocations: 6.531 kB / 0.9501 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.174e-05/0.522, allocations: 19.31 kB / 0.9501 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.115e-05/0.522, allocations: 1.062 kB / 0.9501 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.139e-05/0.5221, allocations: 31.78 kB / 0.9502 GB, free: 8.383 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.324e-05/0.5221, allocations: 5.281 kB / 0.9502 GB, free: 8.379 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.095e-05/0.5221, allocations: 6.062 kB / 0.9502 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.866e-05/0.5222, allocations: 28.66 kB / 0.9502 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.5222, allocations: 0 / 0.9502 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.5222, allocations: 5.125 kB / 0.9502 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.5222, allocations: 0 / 0.9502 GB, free: 8.352 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.0002664/0.5225, allocations: 337.3 kB / 0.9505 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.5225, allocations: 13.94 kB / 0.9505 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.307e-05/0.5225, allocations: 35.88 kB / 0.9506 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.5226, allocations: 2.031 kB / 0.9506 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.448e-05/0.5226, allocations: 163.8 kB / 0.9507 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.5227, allocations: 5.484 kB / 0.9507 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.5227, allocations: 2.594 kB / 0.9507 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.65e-05/0.5228, allocations: 45.69 kB / 0.9508 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.5228, allocations: 3.938 kB / 0.9508 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.5228, allocations: 5.188 kB / 0.9508 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.5228, allocations: 1.125 kB / 0.9508 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4e-05/0.5229, allocations: 15.89 kB / 0.9508 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001087/0.523, allocations: 163 kB / 0.951 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.334e-05/0.5231, allocations: 43.66 kB / 0.951 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.817e-05/0.5231, allocations: 21.83 kB / 0.951 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.237e-05/0.5232, allocations: 83.75 kB / 0.9511 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.353e-05/0.5232, allocations: 35.61 kB / 0.9511 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.5232, allocations: 0 / 0.9511 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.001106/0.5243, allocations: 491.4 kB / 0.9516 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.769e-05/0.5243, allocations: 52.72 kB / 0.9516 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.809e-05/0.5244, allocations: 95.67 kB / 0.9517 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.956e-06/0.5244, allocations: 25.7 kB / 0.9518 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.946e-05/0.5244, allocations: 81.98 kB / 0.9518 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.5244, allocations: 25.02 kB / 0.9519 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/0.5245, allocations: 19.69 kB / 0.9519 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.373e-05/0.5245, allocations: 320 kB / 0.9522 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.671e-05/0.5245, allocations: 11.34 kB / 0.9522 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.184e-05/0.5246, allocations: 11.55 kB / 0.9522 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.524e-05/0.5246, allocations: 37.86 kB / 0.9522 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.5246, allocations: 1.219 kB / 0.9523 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.283e-05/0.5247, allocations: 78.61 kB / 0.9523 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.5248, allocations: 7.156 kB / 0.9523 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.5248, allocations: 1.281 kB / 0.9523 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.5248, allocations: 0 / 0.9523 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.634e-05/0.5249, allocations: 15.08 kB / 0.9523 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5249, allocations: 8.969 kB / 0.9524 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.348e-05/0.5249, allocations: 1.406 kB / 0.9524 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.5249, allocations: 1.625 kB / 0.9524 GB, free: 6.094 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.325e-05/0.525, allocations: 119.5 kB / 0.9525 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.34e-05/0.525, allocations: 6.344 kB / 0.9525 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.5251, allocations: 87.7 kB / 0.9526 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5251, allocations: 0 / 0.9526 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5251, allocations: 1.375 kB / 0.9526 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.5252, allocations: 3.984 kB / 0.9526 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.074e-05/0.5252, allocations: 166 kB / 0.9527 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5252, allocations: 4 kB / 0.9527 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.528e-05/0.5253, allocations: 14.81 kB / 0.9527 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.5253, allocations: 1 kB / 0.9527 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.5253, allocations: 9.109 kB / 0.9528 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.5253, allocations: 1.25 kB / 0.9528 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5253, allocations: 0 / 0.9528 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.5255, allocations: 110.9 kB / 0.9529 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.52e-05/0.5255, allocations: 82.7 kB / 0.9529 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.5255, allocations: 4.062 kB / 0.9529 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.341e-05/0.5256, allocations: 5.469 kB / 0.9529 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.5256, allocations: 6.828 kB / 0.953 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.5256, allocations: 2.656 kB / 0.953 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.385e-05/0.5256, allocations: 76.53 kB / 0.953 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.5256, allocations: 0 / 0.953 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002123/0.5259, allocations: 31.81 kB / 0.9531 GB, free: 5.391 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.0003574/0.5262, allocations: 0.6914 MB / 0.9537 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001068/0.5263, allocations: 40.23 kB / 0.9538 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5263, allocations: 1.219 kB / 0.9538 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.29e-05/0.5264, allocations: 27.03 kB / 0.9538 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.5265, allocations: 5.25 kB / 0.9538 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007329/0.5273, allocations: 1.196 MB / 0.955 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001002/0.5274, allocations: 0.6962 MB / 0.9557 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.505e-05/0.5274, allocations: 4.656 kB / 0.9557 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.962e-05/0.5275, allocations: 10.41 kB / 0.9557 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.5275, allocations: 0 / 0.9557 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01575/0.5432, allocations: 1.719 MB / 0.9573 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001288/0.5434, allocations: 239.2 kB / 0.9576 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.518/2.062, allocations: 1.125 kB / 0.9576 GB, free: 1.719 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