Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_11_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.001638/0.001638, 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.001794/0.001794, allocations: 194 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.334/1.334, 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 11.1.0-maint.11.x/package.mo): time 2.683/2.683, allocations: 469.8 MB / 0.7424 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 71.55 kB / 0.9087 GB, free: 34.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2483, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001639/0.25, allocations: 0.6111 MB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003594/0.2504, allocations: 159.5 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.065e-05/0.2504, allocations: 0 / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.465e-05/0.2504, allocations: 3.938 kB / 1.065 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 1.399e-05/0.2505, allocations: 0 / 1.065 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.2507, allocations: 43.83 kB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.196e-05/0.2508, allocations: 11.98 kB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.661e-05/0.2508, allocations: 8 kB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.925e-05/0.2508, allocations: 11.92 kB / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.746e-05/0.2509, allocations: 4 kB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.2509, allocations: 0 / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.98e-05/0.251, allocations: 31.97 kB / 1.065 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.613e-05/0.251, allocations: 11.97 kB / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.251, allocations: 7.938 kB / 1.065 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.593e-05/0.2511, allocations: 35.89 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.2511, allocations: 0 / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2511, allocations: 0 / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.2511, allocations: 0 / 1.065 GB, free: 13.28 MB / 0.8262 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.0003521/0.2515, allocations: 331.6 kB / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2515, allocations: 15.97 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.346e-05/0.2516, allocations: 30.75 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.322e-05/0.2516, allocations: 0.9375 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.2517, allocations: 164.7 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.2517, allocations: 4.375 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.2518, allocations: 8.281 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.09e-05/0.2519, allocations: 38.25 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.2519, allocations: 7.938 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.2519, allocations: 4 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-06/0.2519, allocations: 0 / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.27e-05/0.2519, allocations: 19.92 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.2521, allocations: 157.6 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.493e-05/0.2522, allocations: 46.62 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.169e-05/0.2522, allocations: 20.97 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.943e-05/0.2523, allocations: 81.11 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.2524, allocations: 42.56 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/0.2524, allocations: 0 / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.001142/0.2535, allocations: 484 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.2536, allocations: 51.41 kB / 1.066 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.174e-05/0.2536, allocations: 93.86 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.2537, allocations: 29.83 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.553e-05/0.2537, allocations: 84.14 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.2537, allocations: 27.58 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/0.2538, allocations: 25.7 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2539, allocations: 314.8 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.747e-05/0.2539, allocations: 11.98 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.278e-05/0.2539, allocations: 12 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.359e-05/0.254, allocations: 36.84 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.254, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001079/0.2541, allocations: 77.47 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.2542, allocations: 8 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2542, allocations: 0 / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.2542, allocations: 0 / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.174e-05/0.2543, allocations: 20.38 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2543, allocations: 0 / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.053e-05/0.2543, allocations: 0 / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.2543, allocations: 11.98 kB / 1.067 GB, free: 10.74 MB / 0.8262 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 6.979e-05/0.2544, allocations: 109.8 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.2544, allocations: 11.94 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.2546, allocations: 81.88 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2546, allocations: 0 / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2546, allocations: 4 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2546, allocations: 0 / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.2547, allocations: 165.7 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2547, allocations: 0 / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.243e-05/0.2548, allocations: 15.94 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2548, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.2548, allocations: 4 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2548, allocations: 80 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.2548, allocations: 7.969 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001715/0.255, allocations: 121 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.2551, allocations: 84.95 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.2551, allocations: 3.984 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.503e-05/0.2551, allocations: 8.031 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.2552, allocations: 64 / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.2552, allocations: 8 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.229e-05/0.2552, allocations: 75.28 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.703e-06/0.2552, allocations: 0 / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002139/0.2554, allocations: 39.92 kB / 1.068 GB, free: 9.914 MB / 0.8262 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.0005057/0.2559, allocations: 0.6833 MB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001022/0.256, allocations: 43.92 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.2561, allocations: 0 / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.578e-05/0.2561, allocations: 19.98 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.2562, allocations: 8 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009804/0.2572, allocations: 1.192 MB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.2575, allocations: 0.6768 MB / 1.07 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.598e-05/0.2575, allocations: 12.05 kB / 1.07 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.2576, allocations: 19.38 kB / 1.07 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.2576, allocations: 0 / 1.07 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.605/1.863, allocations: 1.782 MB / 1.072 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/15.07, allocations: 6.047 kB / 1.072 GB, free: 5.465 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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