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.004818/0.004818, allocations: 100.4 kB / 15.73 MB, free: 6.043 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.001127/0.001128, allocations: 196.4 kB / 16.68 MB, free: 5.961 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.191 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.404/2.404, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001176, allocations: 72.45 kB / 0.9504 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2778, allocations: 140.4 MB / 1.088 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.00164/0.2795, allocations: 0.6024 MB / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0005011/0.28, allocations: 155.9 kB / 1.088 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.06e-05/0.28, allocations: 0 / 1.088 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.2801, allocations: 7.938 kB / 1.088 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.932e-05/0.2801, allocations: 0 / 1.088 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.2805, allocations: 43.88 kB / 1.088 GB, free: 1.125 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.116e-05/0.2806, allocations: 15.98 kB / 1.088 GB, free: 1.109 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.2806, allocations: 4 kB / 1.088 GB, free: 1.105 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.919e-05/0.2806, allocations: 3.938 kB / 1.088 GB, free: 1.102 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.144e-05/0.2807, allocations: 15.97 kB / 1.088 GB, free: 1.086 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.2807, allocations: 0 / 1.088 GB, free: 1.086 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.56e-05/0.2808, allocations: 31.97 kB / 1.088 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.752e-05/0.2808, allocations: 11.88 kB / 1.088 GB, free: 1.043 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.2809, allocations: 4 kB / 1.088 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.281, allocations: 39.88 kB / 1.088 GB, free: 1 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.281, allocations: 0 / 1.088 GB, free: 1 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.723e-06/0.281, allocations: 0 / 1.088 GB, free: 1 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.281, allocations: 0 / 1.088 GB, free: 1 MB / 0.8419 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.0004513/0.2815, allocations: 327.6 kB / 1.089 GB, free: 0.6289 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.2815, allocations: 12.03 kB / 1.089 GB, free: 0.6172 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.687e-05/0.2816, allocations: 30.75 kB / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.017e-05/0.2816, allocations: 0.9375 kB / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.2817, allocations: 171.2 kB / 1.089 GB, free: 384 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.2818, allocations: 8.375 kB / 1.089 GB, free: 376 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.332e-05/0.2818, allocations: 4.375 kB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.2819, allocations: 42.19 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2819, allocations: 3.938 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.2819, allocations: 4 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.282, allocations: 0 / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.47e-05/0.282, allocations: 19.92 kB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001749/0.2822, allocations: 157.6 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.2823, allocations: 50.62 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.838e-05/0.2823, allocations: 16.98 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001263/0.2825, allocations: 81.09 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.2825, allocations: 34.56 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.2825, allocations: 0 / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.00138/0.2839, allocations: 492.5 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.284, allocations: 55.41 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.935e-05/0.284, allocations: 97.8 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.284, allocations: 25.7 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.061e-05/0.2841, allocations: 88.12 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.2841, allocations: 19.94 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.2842, allocations: 21.72 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.527e-05/0.2843, allocations: 314.8 kB / 1.09 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.014e-05/0.2843, allocations: 16.12 kB / 1.09 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.862e-05/0.2843, allocations: 15.98 kB / 1.09 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.526e-05/0.2844, allocations: 36.8 kB / 1.09 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.2844, allocations: 0 / 1.09 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001077/0.2845, allocations: 69.61 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2846, allocations: 8 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2846, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2846, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.585e-05/0.2847, allocations: 15.98 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.2847, allocations: 0 / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.664e-05/0.2847, allocations: 8.438 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.2847, allocations: 4 kB / 1.091 GB, free: 14.48 MB / 0.8575 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.386e-05/0.2848, allocations: 109.8 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.2848, allocations: 15.84 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001697/0.285, allocations: 77.62 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.285, allocations: 4 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.285, allocations: 4 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.285, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.2852, allocations: 169.7 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2852, allocations: 0 / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.479e-05/0.2853, allocations: 19.92 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2853, allocations: 0 / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/0.2853, allocations: 3.984 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2853, allocations: 3.938 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2853, allocations: 0 / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001873/0.2855, allocations: 113.5 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.545e-05/0.2855, allocations: 92.95 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.2856, allocations: 0 / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.542e-05/0.2856, allocations: 4.031 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.235e-05/0.2856, allocations: 7.984 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.2857, allocations: 7.938 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.174e-05/0.2857, allocations: 75.28 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2857, allocations: 0 / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002266/0.2859, allocations: 28 kB / 1.091 GB, free: 13.65 MB / 0.8575 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.0005614/0.2865, allocations: 0.6912 MB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001238/0.2866, allocations: 39.92 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2866, allocations: 4 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.506e-05/0.2867, allocations: 19.98 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.2868, allocations: 8.219 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.288, allocations: 1.192 MB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.2882, allocations: 0.6846 MB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.1e-05/0.2883, allocations: 11.73 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.928e-05/0.2883, allocations: 19.38 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.2883, allocations: 0 / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.3072, allocations: 1.819 MB / 1.096 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.411/7.719, allocations: 6.281 kB / 1.096 GB, free: 9.168 MB / 0.8575 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) "" 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