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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008968/0.0008969, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.00531/0.00531, allocations: 172 kB / 16.26 MB, free: 6.613 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.228/1.228, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.139/2.139, allocations: 390.9 MB / 0.6664 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002844, allocations: 12 kB / 0.8161 GB, free: 13.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5381/0.5384, allocations: 142.4 MB / 0.9552 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.0005646/0.539, allocations: 336.1 kB / 0.9555 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003324/0.5393, allocations: 158.4 kB / 0.9557 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.275e-05/0.5394, allocations: 0 / 0.9557 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.5394, allocations: 5.156 kB / 0.9557 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.041e-05/0.5394, allocations: 0 / 0.9557 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.5396, allocations: 38.3 kB / 0.9557 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.947e-05/0.5397, allocations: 10 kB / 0.9557 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.585e-05/0.5397, allocations: 2.219 kB / 0.9557 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.149e-05/0.5397, allocations: 7.391 kB / 0.9557 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.368e-05/0.5398, allocations: 10.45 kB / 0.9557 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.5398, allocations: 1.562 kB / 0.9557 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.221e-05/0.5399, allocations: 31.47 kB / 0.9558 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.247e-05/0.5399, allocations: 7.984 kB / 0.9558 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.283e-05/0.5399, allocations: 36.58 kB / 0.9558 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.656e-05/0.54, allocations: 29.33 kB / 0.9558 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.54, allocations: 0 / 0.9558 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.334e-06/0.54, allocations: 0 / 0.9558 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.54, allocations: 0 / 0.9558 GB, free: 7.234 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.0002468/0.5403, allocations: 331 kB / 0.9561 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.5403, allocations: 10.09 kB / 0.9562 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.652e-05/0.5404, allocations: 35.58 kB / 0.9562 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.767e-05/0.5404, allocations: 2.344 kB / 0.9562 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.803e-05/0.5405, allocations: 175.9 kB / 0.9564 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.5405, allocations: 1.469 kB / 0.9564 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.5405, allocations: 2.188 kB / 0.9564 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.848e-05/0.5406, allocations: 42.44 kB / 0.9564 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.5406, allocations: 3.938 kB / 0.9564 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.5406, allocations: 0 / 0.9564 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.5407, allocations: 0.8125 kB / 0.9564 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.283e-05/0.5407, allocations: 17.05 kB / 0.9564 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001122/0.5408, allocations: 154.6 kB / 0.9566 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.846e-05/0.5409, allocations: 52.41 kB / 0.9566 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.89e-05/0.5409, allocations: 16.86 kB / 0.9566 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.419e-05/0.541, allocations: 83.88 kB / 0.9567 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.541, allocations: 35.53 kB / 0.9567 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 8.52e-07/0.5411, allocations: 0 / 0.9567 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.001037/0.5421, allocations: 494.2 kB / 0.9572 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.075e-05/0.5421, allocations: 60.38 kB / 0.9573 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.148e-05/0.5422, allocations: 94.91 kB / 0.9574 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.777e-06/0.5422, allocations: 26.77 kB / 0.9574 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.879e-06/0.5422, allocations: 80.14 kB / 0.9575 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.5422, allocations: 23.06 kB / 0.9575 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.008e-05/0.5422, allocations: 15.81 kB / 0.9575 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.4e-05/0.5423, allocations: 316 kB / 0.9578 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.389e-05/0.5423, allocations: 14.56 kB / 0.9578 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.055e-05/0.5423, allocations: 19.98 kB / 0.9578 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.525e-05/0.5424, allocations: 34.19 kB / 0.9579 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.5424, allocations: 0 / 0.9579 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.98e-05/0.5425, allocations: 71.81 kB / 0.9579 GB, free: 5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.5425, allocations: 9.344 kB / 0.9579 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.5425, allocations: 0 / 0.9579 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.5425, allocations: 3.984 kB / 0.958 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.979e-05/0.5426, allocations: 19.83 kB / 0.958 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.5426, allocations: 0 / 0.958 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.093e-05/0.5426, allocations: 5.219 kB / 0.958 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.5427, allocations: 2.375 kB / 0.958 GB, free: 4.98 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.426e-05/0.5427, allocations: 112 kB / 0.9581 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-06/0.5427, allocations: 5 kB / 0.9581 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.5429, allocations: 91.84 kB / 0.9582 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.5429, allocations: 1.094 kB / 0.9582 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.5429, allocations: 0.875 kB / 0.9582 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.5429, allocations: 4 kB / 0.9582 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.71e-05/0.543, allocations: 162.4 kB / 0.9583 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.543, allocations: 256 / 0.9583 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.275e-05/0.543, allocations: 26.42 kB / 0.9584 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.5431, allocations: 1.062 kB / 0.9584 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.5431, allocations: 1.219 kB / 0.9584 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.5431, allocations: 1.219 kB / 0.9584 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.5431, allocations: 0 / 0.9584 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.5432, allocations: 122.4 kB / 0.9585 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.546e-05/0.5432, allocations: 86.36 kB / 0.9586 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.5433, allocations: 1.156 kB / 0.9586 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.06e-05/0.5433, allocations: 2 kB / 0.9586 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.505e-05/0.5433, allocations: 6.578 kB / 0.9586 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.5433, allocations: 2.781 kB / 0.9586 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.358e-05/0.5433, allocations: 75.28 kB / 0.9587 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5434, allocations: 0 / 0.9587 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002009/0.5436, allocations: 32.25 kB / 0.9587 GB, free: 4.277 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.000341/0.5439, allocations: 0.6867 MB / 0.9594 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.692e-05/0.544, allocations: 40.44 kB / 0.9594 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.544, allocations: 1.594 kB / 0.9594 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.918e-05/0.544, allocations: 30.45 kB / 0.9594 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.5442, allocations: 9.5 kB / 0.9594 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006809/0.5449, allocations: 1.199 MB / 0.9606 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.464e-05/0.545, allocations: 0.6809 MB / 0.9613 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.146e-05/0.545, allocations: 4.219 kB / 0.9613 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.545, allocations: 10 kB / 0.9613 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.545, allocations: 1.125 kB / 0.9613 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.5663, allocations: 1.602 MB / 0.9628 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/0.5665, allocations: 246 kB / 0.9631 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/2.09, allocations: 9.562 kB / 0.9631 GB, free: 0.707 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