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.001215/0.001215, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001295/0.001295, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.324/1.324, allocations: 222.9 MB / 239.8 MB, free: 4.582 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.225/2.225, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 59.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5692/0.5706, allocations: 140.4 MB / 0.9491 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001543/0.5722, allocations: 0.6569 MB / 0.9497 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003587/0.5726, allocations: 168.1 kB / 0.9499 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.288e-05/0.5726, allocations: 0 / 0.9499 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.562e-05/0.5726, allocations: 3.938 kB / 0.9499 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.612e-05/0.5727, allocations: 0 / 0.9499 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.5729, allocations: 33.84 kB / 0.9499 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.722e-05/0.5729, allocations: 14.86 kB / 0.9499 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.504e-05/0.573, allocations: 1.375 kB / 0.9499 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.573, allocations: 6.734 kB / 0.9499 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.945e-05/0.573, allocations: 10.67 kB / 0.9499 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.5731, allocations: 1.375 kB / 0.9499 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.497e-05/0.5731, allocations: 35.09 kB / 0.95 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.5731, allocations: 5.375 kB / 0.95 GB, free: 8.496 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.753e-05/0.5732, allocations: 10.62 kB / 0.95 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.424e-05/0.5732, allocations: 32.19 kB / 0.95 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.5733, allocations: 1.375 kB / 0.95 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.032e-06/0.5733, allocations: 0 / 0.95 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.5733, allocations: 0 / 0.95 GB, free: 8.465 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.0002549/0.5735, allocations: 334.5 kB / 0.9503 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.5736, allocations: 9.625 kB / 0.9503 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.317e-05/0.5736, allocations: 34.69 kB / 0.9504 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.335e-05/0.5736, allocations: 11.69 kB / 0.9504 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.391e-05/0.5737, allocations: 166.6 kB / 0.9505 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.5737, allocations: 1.75 kB / 0.9506 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.5737, allocations: 7.125 kB / 0.9506 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.215e-05/0.5738, allocations: 41.12 kB / 0.9506 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.5738, allocations: 3.938 kB / 0.9506 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/0.5738, allocations: 1.375 kB / 0.9506 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.5738, allocations: 0 / 0.9506 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.863e-05/0.5739, allocations: 20.17 kB / 0.9506 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001013/0.574, allocations: 159.2 kB / 0.9508 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.091e-05/0.5741, allocations: 44.5 kB / 0.9508 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.717e-05/0.5741, allocations: 21.17 kB / 0.9508 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.678e-05/0.5742, allocations: 83.84 kB / 0.9509 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.161e-05/0.5742, allocations: 31.94 kB / 0.9509 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.5742, allocations: 0 / 0.9509 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.001034/0.5752, allocations: 495.8 kB / 0.9514 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.682e-05/0.5753, allocations: 56.72 kB / 0.9515 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.327e-05/0.5753, allocations: 91.23 kB / 0.9516 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.5753, allocations: 31.08 kB / 0.9516 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.247e-05/0.5753, allocations: 80.14 kB / 0.9517 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.5754, allocations: 26.36 kB / 0.9517 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.5754, allocations: 19.25 kB / 0.9517 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.664e-05/0.5754, allocations: 320.2 kB / 0.952 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.639e-05/0.5755, allocations: 12.16 kB / 0.952 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.538e-05/0.5755, allocations: 14.23 kB / 0.952 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.643e-05/0.5756, allocations: 34.22 kB / 0.9521 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.5756, allocations: 5.125 kB / 0.9521 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.247e-05/0.5757, allocations: 70.12 kB / 0.9521 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.5757, allocations: 6.062 kB / 0.9522 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.5757, allocations: 0 / 0.9522 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.5757, allocations: 1.469 kB / 0.9522 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.263e-05/0.5758, allocations: 18.42 kB / 0.9522 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.5758, allocations: 0 / 0.9522 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.219e-05/0.5758, allocations: 5.375 kB / 0.9522 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.5758, allocations: 6.562 kB / 0.9522 GB, free: 6.207 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.282e-05/0.5759, allocations: 111.2 kB / 0.9523 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.5759, allocations: 10.52 kB / 0.9523 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.576, allocations: 83.17 kB / 0.9524 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.576, allocations: 8.953 kB / 0.9524 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.5761, allocations: 1.281 kB / 0.9524 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.5761, allocations: 0 / 0.9524 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.172e-05/0.5761, allocations: 165.2 kB / 0.9525 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5761, allocations: 1.344 kB / 0.9525 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.589e-05/0.5762, allocations: 18.95 kB / 0.9526 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5762, allocations: 0 / 0.9526 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.5762, allocations: 1.5 kB / 0.9526 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5762, allocations: 0 / 0.9526 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.5763, allocations: 5.516 kB / 0.9526 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.5764, allocations: 122 kB / 0.9527 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.711e-05/0.5764, allocations: 82.3 kB / 0.9528 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.5765, allocations: 1.25 kB / 0.9528 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.446e-05/0.5765, allocations: 1.312 kB / 0.9528 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.828e-05/0.5765, allocations: 6.547 kB / 0.9528 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.5765, allocations: 2.562 kB / 0.9528 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.543e-05/0.5766, allocations: 80.66 kB / 0.9529 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5766, allocations: 4.156 kB / 0.9529 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002079/0.5768, allocations: 32.19 kB / 0.9529 GB, free: 5.5 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.0003743/0.5772, allocations: 0.6827 MB / 0.9536 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.715e-05/0.5773, allocations: 43.62 kB / 0.9536 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5773, allocations: 1.75 kB / 0.9536 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.145e-05/0.5773, allocations: 26.11 kB / 0.9536 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.5775, allocations: 7.625 kB / 0.9536 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007143/0.5782, allocations: 1.19 MB / 0.9548 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.246e-05/0.5783, allocations: 0.6811 MB / 0.9555 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.446e-05/0.5783, allocations: 2.875 kB / 0.9555 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.95e-05/0.5783, allocations: 15.64 kB / 0.9555 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5783, allocations: 7.938 kB / 0.9555 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2342/0.8125, allocations: 1.676 MB / 0.9571 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.8128, allocations: 239.1 kB / 0.9573 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/2.481, allocations: 0 / 0.9573 GB, free: 1.852 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