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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001102/0.001102, 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.001874/0.001874, allocations: 193.3 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.651/2.651, allocations: 469.4 MB / 0.742 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 69.8 kB / 0.9083 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3058, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003003/0.3088, allocations: 1.461 MB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.3098, allocations: 0.5665 MB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.875e-05/0.3098, allocations: 0 / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.772e-05/0.3099, allocations: 0 / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.732e-05/0.31, allocations: 11.88 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.3102, allocations: 39.89 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.73e-05/0.3103, allocations: 31.86 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3104, allocations: 8 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.115e-05/0.3105, allocations: 11.92 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.222e-05/0.3106, allocations: 15.92 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.3106, allocations: 7.984 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.3107, allocations: 51.95 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.609e-05/0.3108, allocations: 12 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.649e-05/0.3108, allocations: 7.938 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.311, allocations: 63.86 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.311, allocations: 0 / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.133e-06/0.311, allocations: 0 / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.311, allocations: 0 / 1.066 GB, free: 12.24 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004591/0.3114, allocations: 351.6 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3115, allocations: 12.03 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.405e-05/0.3115, allocations: 30.75 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.3116, allocations: 8.844 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3117, allocations: 172.3 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.3117, allocations: 4.359 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-06/0.3117, allocations: 4.375 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/0.3119, allocations: 45.81 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.3119, allocations: 0 / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-06/0.3119, allocations: 0 / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.3119, allocations: 0 / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.025e-05/0.312, allocations: 19.98 kB / 1.067 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003204/0.3123, allocations: 268.7 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.521e-05/0.3124, allocations: 34.52 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.811e-05/0.3125, allocations: 12.91 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008303/0.3133, allocations: 481.4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.3134, allocations: 30.56 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.253e-06/0.3134, allocations: 0 / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002352/0.3136, allocations: 69.61 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.3137, allocations: 51.41 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.794e-05/0.3138, allocations: 110 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.3138, allocations: 29.7 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.3138, allocations: 84.14 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.3139, allocations: 3.906 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.215e-05/0.3139, allocations: 13.72 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.314, allocations: 322.8 kB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.331e-05/0.3141, allocations: 8 kB / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.645e-05/0.3141, allocations: 15.98 kB / 1.068 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.907e-05/0.3142, allocations: 24.84 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3142, allocations: 0 / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001292/0.3143, allocations: 57.61 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.3144, allocations: 8 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3144, allocations: 3.938 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.3144, allocations: 0 / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.549e-05/0.3145, allocations: 4 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.3145, allocations: 8.078 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.474e-05/0.3145, allocations: 4 kB / 1.068 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-06/0.3145, allocations: 320 / 1.068 GB, free: 9.672 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 (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 7.516e-05/0.3146, allocations: 113.8 kB / 1.068 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.723e-05/0.3146, allocations: 7.906 kB / 1.068 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001915/0.3148, allocations: 57.2 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3149, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3149, allocations: 11.97 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3149, allocations: 0 / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.3151, allocations: 169.6 kB / 1.068 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3151, allocations: 0 / 1.068 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.313e-05/0.3151, allocations: 4 kB / 1.068 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.3152, allocations: 0 / 1.068 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.3152, allocations: 0 / 1.068 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.3152, allocations: 3.984 kB / 1.068 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3152, allocations: 0 / 1.068 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.3154, allocations: 155.5 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.604e-05/0.3154, allocations: 81.02 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.3154, allocations: 0 / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.304e-05/0.3155, allocations: 11.92 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.219e-05/0.3156, allocations: 0 / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.3156, allocations: 0 / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.697e-05/0.3156, allocations: 95.25 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.144e-06/0.3156, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002511/0.3159, allocations: 19.97 kB / 1.069 GB, free: 8.855 MB / 0.8262 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.0005479/0.3164, allocations: 0.6973 MB / 1.069 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001476/0.3166, allocations: 19.98 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3166, allocations: 4.094 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.943e-05/0.3167, allocations: 19.92 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.3169, allocations: 9.656 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005044/0.3174, allocations: 164.1 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.3177, allocations: 0.6768 MB / 1.07 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.398e-05/0.3177, allocations: 8.062 kB / 1.07 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.353e-05/0.3178, allocations: 11.44 kB / 1.07 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.3178, allocations: 0 / 1.07 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.3366, allocations: 1.591 MB / 1.072 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.421/7.757, allocations: 4.062 kB / 1.072 GB, free: 5.633 MB / 0.8262 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