Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",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.007743/0.007744, allocations: 97.78 kB / 15.73 MB, free: 5.961 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.00184/0.00184, allocations: 195.4 kB / 16.67 MB, free: 5.883 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.736/2.736, allocations: 472.7 MB / 0.7453 GB, free: 404 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002289/0.002289, allocations: 63.89 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7743/0.7766, allocations: 159.9 MB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002564/0.7792, allocations: 1.461 MB / 1.227 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0009248/0.7802, allocations: 0.5533 MB / 1.227 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.721e-05/0.7803, allocations: 3.938 kB / 1.227 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.019e-05/0.7803, allocations: 4 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.073e-05/0.7804, allocations: 7.875 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.7806, allocations: 51.81 kB / 1.227 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.008e-05/0.7807, allocations: 27.92 kB / 1.227 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.842e-05/0.7808, allocations: 4 kB / 1.227 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.975e-05/0.7809, allocations: 23.84 kB / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.433e-05/0.781, allocations: 11.94 kB / 1.227 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.781, allocations: 4 kB / 1.227 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.7811, allocations: 55.95 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.157e-05/0.7811, allocations: 0 / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.737e-05/0.7812, allocations: 15.92 kB / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.7813, allocations: 62.53 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.7813, allocations: 0 / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7814, allocations: 0 / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.7814, allocations: 3.938 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003914/0.7818, allocations: 352.2 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.7818, allocations: 16.02 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.564e-05/0.7819, allocations: 38.75 kB / 1.228 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.516e-05/0.7819, allocations: 0.9375 kB / 1.228 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.782, allocations: 176.3 kB / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.664e-06/0.782, allocations: 384 / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.782, allocations: 4.375 kB / 1.228 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.7822, allocations: 53.73 kB / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.7822, allocations: 0 / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-06/0.7822, allocations: 0 / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.7822, allocations: 0 / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.168e-05/0.7823, allocations: 27.97 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003059/0.7826, allocations: 248.9 kB / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.678e-05/0.7827, allocations: 34.5 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.737e-05/0.7828, allocations: 12.92 kB / 1.228 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007676/0.7835, allocations: 477.4 kB / 1.229 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.7836, allocations: 34.56 kB / 1.229 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.7836, allocations: 0 / 1.229 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.000235/0.7838, allocations: 65.62 kB / 1.229 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.7839, allocations: 55.53 kB / 1.229 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.079e-05/0.784, allocations: 113.8 kB / 1.229 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.784, allocations: 29.64 kB / 1.229 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.784, allocations: 84.14 kB / 1.229 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.784, allocations: 11.94 kB / 1.229 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.7841, allocations: 13.72 kB / 1.229 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.655e-05/0.7842, allocations: 314.8 kB / 1.229 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.532e-05/0.7842, allocations: 11.98 kB / 1.23 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.389e-05/0.7843, allocations: 12 kB / 1.23 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.024e-05/0.7844, allocations: 28.84 kB / 1.23 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.7844, allocations: 0 / 1.23 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001205/0.7845, allocations: 49.69 kB / 1.23 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.7845, allocations: 11.98 kB / 1.23 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.7845, allocations: 0 / 1.23 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.7845, allocations: 0 / 1.23 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.837e-05/0.7846, allocations: 12.03 kB / 1.23 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.7846, allocations: 0 / 1.23 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.824e-05/0.7847, allocations: 11.94 kB / 1.23 GB, free: 8.555 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.7847, allocations: 0 / 1.23 GB, free: 8.555 MB / 0.9512 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 (2): * Single equations (assignments): 2 * 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.494e-05/0.7848, allocations: 114.3 kB / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.7848, allocations: 7.953 kB / 1.23 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.785, allocations: 61.2 kB / 1.23 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.785, allocations: 3.969 kB / 1.23 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.785, allocations: 4 kB / 1.23 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.785, allocations: 0 / 1.23 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.7851, allocations: 161.6 kB / 1.23 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.7851, allocations: 0 / 1.23 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.337e-05/0.7852, allocations: 7.984 kB / 1.23 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.7852, allocations: 0 / 1.23 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.7852, allocations: 7.938 kB / 1.23 GB, free: 8.125 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.7852, allocations: 0 / 1.23 GB, free: 8.125 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.7852, allocations: 0 / 1.23 GB, free: 8.125 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/0.7854, allocations: 155.5 kB / 1.23 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.067e-05/0.7854, allocations: 81.06 kB / 1.23 GB, free: 7.859 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.7854, allocations: 0 / 1.23 GB, free: 7.859 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.332e-05/0.7855, allocations: 4 kB / 1.23 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.7856, allocations: 4 kB / 1.23 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.7856, allocations: 3.984 kB / 1.23 GB, free: 7.848 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.753e-05/0.7856, allocations: 83.28 kB / 1.23 GB, free: 7.766 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7856, allocations: 4.031 kB / 1.23 GB, free: 7.762 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000247/0.7859, allocations: 19.94 kB / 1.23 GB, free: 7.742 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.000441/0.7863, allocations: 0.7056 MB / 1.231 GB, free: 7.012 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001465/0.7865, allocations: 24.02 kB / 1.231 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.7865, allocations: 0 / 1.231 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.701e-05/0.7865, allocations: 11.98 kB / 1.231 GB, free: 6.977 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.7868, allocations: 13.03 kB / 1.231 GB, free: 6.965 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004046/0.7872, allocations: 160 kB / 1.231 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.7874, allocations: 0.6768 MB / 1.232 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.474e-05/0.7874, allocations: 8.125 kB / 1.232 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.206e-05/0.7874, allocations: 15.42 kB / 1.232 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.7875, allocations: 0 / 1.232 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.8048, allocations: 1.613 MB / 1.233 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.634/8.438, allocations: 12.69 kB / 1.233 GB, free: 4.504 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches